diff options
author | Arne Schwabe <arne@rfc2549.org> | 2014-03-06 17:56:42 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2014-03-06 17:56:42 +0100 |
commit | 183fa39cb87ae3d31ee07ef81049cbb7611a4683 (patch) | |
tree | 98f95fc2738e41563855c713048ffc1b175b28e3 /main/build.gradle | |
parent | 679fb75a33d32ebe86696d6d29073c947fced6d7 (diff) |
Add gradle code to build variants for different abis
Diffstat (limited to 'main/build.gradle')
-rw-r--r-- | main/build.gradle | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/main/build.gradle b/main/build.gradle index e927e12c..1cd8b384 100644 --- a/main/build.gradle +++ b/main/build.gradle @@ -30,12 +30,12 @@ android { sourceSets { main { - assets.srcDirs = ['src/main/assets', 'ovpnlibs/assets'] + assets.srcDirs = ['src/main/assets', 'ovpnlibs/assets'] jniLibs.srcDirs = ['ovpnlibs/jniLibs'] jni.srcDirs = [] //disable automatic ndk-build } } - + /* compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 @@ -56,6 +56,40 @@ android { signingConfig signingConfigs.release } } + + + productFlavors { + x86 { + versionCode Integer.parseInt("6" + defaultConfig.versionCode) + ndk { + abiFilter "x86" + } + } + + mips { + versionCode Integer.parseInt("4" + defaultConfig.versionCode) + ndk { + abiFilter "mips" + } + } + + armv7 { + versionCode Integer.parseInt("2" + defaultConfig.versionCode) + ndk { + abiFilter "armeabi-v7a" + } + } + + arm { + versionCode Integer.parseInt("1" + defaultConfig.versionCode) + ndk { + abiFilter "armeabi" + } + } + + fat + } + } // ~/.gradle/gradle.properties |