Move qt binding java code to a separate module
This commit is contained in:
parent
4e5f2f44b6
commit
2fde47a86f
3 changed files with 31 additions and 3 deletions
25
client/android/qt/build.gradle.kts
Normal file
25
client/android/qt/build.gradle.kts
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
plugins {
|
||||
id(libs.plugins.android.library.get().pluginId)
|
||||
id("property-delegate")
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
|
||||
}
|
||||
|
||||
val qtAndroidDir: String by gradleProperties
|
||||
|
||||
android {
|
||||
namespace = "org.qtproject.qt.android.binding"
|
||||
|
||||
sourceSets {
|
||||
getByName("main") {
|
||||
java.setSrcDirs(listOf("$qtAndroidDir/src"))
|
||||
res.setSrcDirs(listOf("$qtAndroidDir/res"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(fileTree(mapOf("dir" to "../libs", "include" to listOf("*.jar", "*.aar"))))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue