Skip to content

Commit a5dc732

Browse files
committed
eliminate gradle horror show now that hogmaker is self-contained
1 parent c0e3f87 commit a5dc732

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

android/build.gradle

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
247
android {
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

Comments
 (0)