mirror of
https://github.com/chiteroman/TrickyStore.git
synced 2025-07-17 15:29:32 +00:00
release
This commit is contained in:
@@ -14,6 +14,12 @@ val verName: String by rootProject.extra
|
||||
val commitHash: String by rootProject.extra
|
||||
val abiList: List<String> by rootProject.extra
|
||||
|
||||
val releaseFlags = arrayOf(
|
||||
"-Oz", "-flto",
|
||||
"-Wno-unused", "-Wno-unused-parameter",
|
||||
"-Wl,--exclude-libs,ALL", "-Wl,--gc-sections",
|
||||
)
|
||||
|
||||
android {
|
||||
defaultConfig {
|
||||
ndk {
|
||||
@@ -34,6 +40,14 @@ android {
|
||||
path("src/main/cpp/CMakeLists.txt")
|
||||
}
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
externalNativeBuild.cmake {
|
||||
cFlags += releaseFlags
|
||||
cppFlags += releaseFlags
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
androidComponents.onVariants { variant ->
|
||||
|
||||
Reference in New Issue
Block a user