diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2023-04-05 13:50:48 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2023-04-05 13:50:57 +0200 |
commit | 33aded09c620de48dede6a8d086d3739a6b03f05 (patch) | |
tree | 96552844c6598f46b324542904bb4006f820833f /tunnel/build.gradle | |
parent | f360034f29be498b7a790fde77b7ec161fde8ef8 (diff) |
tools: deduplicate cmake arguments
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tunnel/build.gradle')
-rw-r--r-- | tunnel/build.gradle | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tunnel/build.gradle b/tunnel/build.gradle index 023bc9ef..894762c9 100644 --- a/tunnel/build.gradle +++ b/tunnel/build.gradle @@ -29,19 +29,25 @@ android { } } buildTypes { - release { + all { externalNativeBuild { cmake { targets 'libwg-go.so', 'libwg.so', 'libwg-quick.so' - arguments "-DANDROID_PACKAGE_NAME=${groupName}", "-DGRADLE_USER_HOME=${project.gradle.gradleUserHomeDir}" + arguments "-DGRADLE_USER_HOME=${project.gradle.gradleUserHomeDir}" + } + } + } + release { + externalNativeBuild { + cmake { + arguments "-DANDROID_PACKAGE_NAME=${groupName}" } } } debug { externalNativeBuild { cmake { - targets 'libwg-go.so', 'libwg.so', 'libwg-quick.so' - arguments "-DANDROID_PACKAGE_NAME=${groupName}.debug", "-DGRADLE_USER_HOME=${project.gradle.gradleUserHomeDir}" + arguments "-DANDROID_PACKAGE_NAME=${groupName}.debug" } } } |