Add gradle build setup

Signed-off-by: Martmists <martmists@gmail.com>
This commit is contained in:
Martmists
2021-10-26 04:36:34 +02:00
parent b8f2a30dbe
commit 7701f9f87b
96 changed files with 1111 additions and 3234 deletions

36
build.gradle.kts Normal file
View File

@ -0,0 +1,36 @@
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")
}
}
}