Browse Source

Modify LOVE build.gradle

Again, two changes. First change is to add "arm64-v8a" to NDK abiFilters.
This is needed to really generate ARM64 binaries inside the APK.

The second change is to exclude libSDL2.so from the resulting APK. Since
LOVE statically links with SDL2, then there's no reason to have libSDL2.so
lying around inside the APK. It's also save the APK size a little bit.
Tae Hanazono 7 years ago
parent
commit
e203f7ae4c
1 changed files with 5 additions and 1 deletions
  1. 5 1
      love/build.gradle

+ 5 - 1
love/build.gradle

@@ -21,7 +21,7 @@ android {
         ndk {
         ndk {
             // Specifies the ABI configurations of your native
             // Specifies the ABI configurations of your native
             // libraries Gradle should build and package with your APK.
             // libraries Gradle should build and package with your APK.
-            abiFilters 'armeabi-v7a'
+            abiFilters 'armeabi-v7a', 'arm64-v8a'
         }
         }
     }
     }
     buildTypes {
     buildTypes {
@@ -45,6 +45,10 @@ android {
     lintOptions {
     lintOptions {
         abortOnError false
         abortOnError false
     }
     }
+    packagingOptions {
+        exclude 'lib/arm64-v8a/libSDL2.so'
+        exclude 'lib/armeabi-v7a/libSDL2.so'
+    }
 }
 }
 
 
 dependencies {
 dependencies {