-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.gradle.kts
45 lines (37 loc) · 1.26 KB
/
settings.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import groovy.lang.MissingPropertyException
import org.gradle.internal.os.OperatingSystem
pluginManagement {
repositories {
mavenLocal()
gradlePluginPortal()
mavenCentral()
maven("https://maven.deftu.dev/releases/")
maven("https://maven.deftu.dev/snapshots/")
maven("https://jitpack.io/")
maven("https://maven.fabricmc.net/")
maven("https://maven.minecraftforge.net/")
maven("https://maven.architectury.dev/")
maven("https://repo.essential.gg/repository/maven-public/")
}
}
rootProject.name = extra["project.name"]?.toString() ?: throw MissingPropertyException("The project name was not configured!")
// Native code
include("rust")
val osName = OperatingSystem.current().familyName.lowercase().replace(" ", "")
mapOf(
"windows" to listOf("x64", "x86"),
"linux" to listOf("x64", "x86", "arm", "arm64"),
"osx" to listOf("x64", "arm64")
)[osName]?.forEach { arch ->
val target = "$osName-$arch"
include("natives-$target")
project(":natives-$target").apply {
projectDir = file("natives/targets/$target").apply {
if (!exists()) {
mkdirs()
}
}
buildFileName = "../../build.gradle.kts"
}
}
include("image-awt")