diff options
| author | guanghuafan <gfan@google.com> | 2016-03-31 07:49:00 -0700 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-04-07 15:00:38 -0600 |
| commit | 19f9f0ba5a42677fc1e32d48c8f0d6fc27574f34 (patch) | |
| tree | d5f8804fc7bceaa606841d46443f3d65234f468f | |
| parent | cdee642d5707178533c0d71a2f6080293120c980 (diff) | |
| download | usermoji-19f9f0ba5a42677fc1e32d48c8f0d6fc27574f34.tar.xz | |
android: set hard float for arm7 correctly and minor cleanup
tested: Mac X
| -rw-r--r-- | build-android/gradle-templates/common.gradle | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/build-android/gradle-templates/common.gradle b/build-android/gradle-templates/common.gradle index 9bb3e0d8..f39578f6 100644 --- a/build-android/gradle-templates/common.gradle +++ b/build-android/gradle-templates/common.gradle @@ -32,6 +32,15 @@ model { "-I${file("../../../../../glslang")}".toString()]) } + // Turn on hard float support in armeabi-v7a + android.abis { + create("armeabi-v7a") { + cppFlags.addAll(["-mhard-float", "-D_NDK_MATH_NO_SOFTFP=1", "-mfloat-abi=hard"]) + ldLibs.add("m_hard") + ldFlags.add("-Wl,--no-warn-mismatch") + } + } + android.sources { main { jni { @@ -53,15 +62,6 @@ model { } } android.productFlavors { - create ("x86") { - ndk.abiFilters.add("x86") - } - create ("arm7") { - ndk.abiFilters.add("armeabi-v7a") - ndk.cppFlags.addAll(["-mhard-float", "-D_NDK_MATH_NO_SOFTFP=1", "-mfloat-abi=hard"]) - ndk.ldLibs.add("m_hard") - ndk.ldFlags.add("-Wl,--no-warn-mismatch") - } create ("all") { ndk.abiFilters.addAll(["armeabi-v7a", 'arm64-v8a', 'x86', 'x86_64']) @@ -69,4 +69,3 @@ model { } } -// buildDir = new File("../../build/layers"); |
