ViPERFX_RE/build.gradle.kts
Martmists 7701f9f87b
Add gradle build setup
Signed-off-by: Martmists <martmists@gmail.com>
2021-10-26 04:36:34 +02:00

37 lines
868 B
Plaintext

plugins {
id("com.android.application") version "7.0.3"
}
repositories {
google()
mavenCentral()
}
android {
compileSdk = 23
ndkVersion = "23.1.7779620"
externalNativeBuild {
cmake {
version = "3.21.3"
path = file("CMakeLists.txt")
}
}
defaultConfig {
externalNativeBuild {
cmake {
arguments += listOf("-DANDROID_ARM_NEON=ON", "-DANDROID_TOOLCHAIN=clang")
cFlags += listOf("-D__STDC_FORMAT_MACROS")
cppFlags += listOf("-fexceptions", "-frtti")
}
}
ndk {
abiFilters += listOf("armeabi-v7a","arm64-v8a","x86","x86_64")
// abiFilters += listOf("x86", "armeabi-v7a")
// abiFilters += listOf("x86", "x86_64", "armeabi", "armeabi-v7a", "arm64-v8a")
}
}
}