@@ -4,23 +4,6 @@ repositories {
44 mavenCentral()
55}
66
7- def hostBuildDir = rootProject. layout. buildDirectory. file(" host" ). get(). asFile
8- tasks. register(' configureHostTools' , Exec ) {
9- workingDir " .."
10- commandLine " cmake" , " -B" , hostBuildDir, " -G" , " Ninja Multi-Config"
11- inputs. files fileTree(project. rootDir). matching { include " **/CMakeLists" , " **/*.cmake" }
12- outputs. file new File (hostBuildDir, " HogMakerConfig.cmake" )
13- }
14- [" Debug" , " RelWithDebInfo" ]. each { buildConfig ->
15- def buildHostToolsTask = tasks. register(' buildHostTools' + buildConfig, Exec ) {
16- workingDir " .."
17- commandLine " cmake" , " --build" , hostBuildDir, " --target" , " HogMaker" , " --config" , buildConfig
18- outputs. file new File (new File (new File (hostBuildDir, " tools" ), buildConfig), " HogMaker" )
19- dependsOn configureHostTools
20- }
21- preBuild. dependsOn buildHostToolsTask
22- }
23-
247android {
258 namespace " com.descent3.droid"
269 compileSdk 34
@@ -31,7 +14,7 @@ android {
3114 versionName " 1.0"
3215 externalNativeBuild {
3316 cmake {
34- arguments " -DANDROID_APP_PLATFORM=android-19" , " -DANDROID_STL=c++_static" , " -DHogMaker_DIR= " + hostBuildDir, " - DENABLE_LOGGER=ON"
17+ arguments " -DANDROID_APP_PLATFORM=android-19" , " -DANDROID_STL=c++_static" , " -DENABLE_LOGGER=ON"
3518 // abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
3619 abiFilters ' arm64-v8a'
3720 }
0 commit comments