-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
64 lines (48 loc) · 2.45 KB
/
build.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
plugins {
id("com.utopia-rise.godot-kotlin-jvm") version "0.13.1-4.4.1"
// godot-kotlin-jvm uses Kotlin 2.0.21
kotlin("plugin.serialization") version "2.0.21"
}
repositories {
mavenCentral()
}
kotlin {
jvmToolchain(17)
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.0")
}
godot {
// ---------Setup-----------------
// the script registration which you'll attach to nodes are generated into this directory
registrationFileBaseDir.set(projectDir.resolve("gdj"))
// Create .gdj files from all JVM scripts
isRegistrationFileGenerationEnabled.set(true)
// enable coroutine support to allow for godot's async functions to be used with kotlin coroutines
isGodotCoroutinesEnabled.set(true)
// defines whether the script registration files should be generated hierarchically according to the classes package path or flattened into `registrationFileBaseDir`
//isRegistrationFileHierarchyEnabled.set(true)
// defines whether your scripts should be registered with their fqName or their simple name (can help with resolving script name conflicts)
//isFqNameRegistrationEnabled.set(false)
// ---------Android----------------
// NOTE: Make sure you read: https://godot-kotl.in/en/stable/user-guide/exporting/#android as not all jvm libraries are compatible with android!
// IMPORTANT: Android export should to be considered from the start of development!
//isAndroidExportEnabled.set(false)
//d8ToolPath.set(File("${System.getenv("ANDROID_SDK_ROOT")}/build-tools/35.0.0/d8"))
//androidCompileSdkDir.set(File("${System.getenv("ANDROID_SDK_ROOT")}/platforms/android-35"))
// --------IOS and Graal------------
// NOTE: this is an advanced feature! Read: https://godot-kotl.in/en/stable/user-guide/advanced/graal-vm-native-image/
// IMPORTANT: Graal Native Image needs to be considered from the start of development!
//isGraalNativeImageExportEnabled.set(false)
//graalVmDirectory.set(File("${System.getenv("GRAALVM_HOME")}"))
//windowsDeveloperVCVarsPath.set(File("${System.getenv("VC_VARS_PATH")}"))
//isIOSExportEnabled.set(false)
// --------Library authors------------
// library setup. See: https://godot-kotl.in/en/stable/develop-libraries/
//classPrefix.set("MyCustomClassPrefix")
//projectName.set("LibraryProjectName")
//projectName.set("LibraryProjectName")
}
kotlin.sourceSets.main {
kotlin.srcDirs("src/main/kuiper")
}