@@ -4,23 +4,6 @@ repositories {
4
4
mavenCentral()
5
5
}
6
6
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
-
24
7
android {
25
8
namespace " com.descent3.droid"
26
9
compileSdk 34
@@ -31,7 +14,7 @@ android {
31
14
versionName " 1.0"
32
15
externalNativeBuild {
33
16
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"
35
18
// abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
36
19
abiFilters ' arm64-v8a'
37
20
}
0 commit comments