Simplify olm-sdk/build.gradle by using defaults

This doesn't change the output.

Signed-off-by: Lukas Lihotzki <lukas@lihotzki.de>
This commit is contained in:
Lukas Lihotzki 2021-04-30 14:51:47 +02:00 committed by Hubert Chathi
parent 2949811917
commit 1e55032377

View file

@ -15,18 +15,12 @@ android {
externalNativeBuild { externalNativeBuild {
cmake { cmake {
arguments '-DANDROID_STL=c++_static', arguments '-DCMAKE_C_FLAGS=-fstack-protector-all -Wall',
'-DCMAKE_C_FLAGS=-fstack-protector-all -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Wall', '-DCMAKE_CXX_FLAGS=-fstack-protector-all -Wall',
'-DCMAKE_CXX_FLAGS=-fstack-protector-all -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Wall',
'-DCMAKE_SHARED_LINKER_FLAGS=-z relro -z now',
'-DOLM_ANDROID_JNI=on', '-DOLM_ANDROID_JNI=on',
'-DOLM_TESTS=off' '-DOLM_TESTS=off'
} }
} }
ndk {
abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86_64', 'x86'
}
} }
buildTypes { buildTypes {
debug { debug {