Index: libadblockplus-android/build.gradle |
diff --git a/libadblockplus-android/build.gradle b/libadblockplus-android/build.gradle |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9cfcb2d04d18c4efd2519c12f83b9b9147a157c3 |
--- /dev/null |
+++ b/libadblockplus-android/build.gradle |
@@ -0,0 +1,72 @@ |
+apply plugin: 'com.android.model.library' |
anton
2016/08/11 13:28:52
actually we're using experimental (1 year of being
|
+ |
+model { |
+ |
+ repositories { |
+ libs(PrebuiltLibraries) { |
anton
2016/08/11 13:28:52
In general it's overhead - i had to rewrite `Andro
|
+ libadblockplus { |
+ headers.srcDir 'jni/libadblockplus-binaries/include/' |
+ binaries.withType(SharedLibraryBinary) { |
+ sharedLibraryFile = file("jni/libadblockplus-binaries/android_${targetPlatform.getName()}/libadblockplus.a") |
+ } |
+ } |
+ |
+ v8_base { |
+ headers.srcDir 'jni/libadblockplus-binaries/include/' |
+ binaries.withType(SharedLibraryBinary) { |
+ sharedLibraryFile = file("jni/libadblockplus-binaries/android_${targetPlatform.getName()}/libv8_base.a") |
+ } |
+ } |
+ |
+ v8_snapshot { |
+ headers.srcDir 'jni/libadblockplus-binaries/include/' |
+ binaries.withType(SharedLibraryBinary) { |
+ sharedLibraryFile = file("jni/libadblockplus-binaries/android_${targetPlatform.getName()}/libv8_snapshot.a") |
+ } |
+ } |
+ } |
+ } |
+ |
+ android { |
+ compileSdkVersion 16 |
+ buildToolsVersion "22.0.1" |
+ |
+ ndk { |
anton
2016/08/11 13:28:52
native module definition for Gradle (see overhead
|
+ moduleName = "adblockplus-jni" |
+ cppFlags.add("-std=c++11") |
+ cppFlags.add("-fexceptions") |
+ stl = "c++_static" |
+ |
+ abiFilters.addAll(['armeabi-v7a', 'x86']) // supported abis only |
+ } |
+ |
+ defaultConfig { |
+ minSdkVersion.apiLevel 9 |
+ targetSdkVersion.apiLevel 16 |
+ versionCode 359 |
+ versionName "1.3" |
+ } |
+ |
+ sources { |
+ main { |
+ manifest { |
+ source { |
+ srcDir '.' |
+ include 'AndroidManifest.xml' |
+ } |
+ } |
+ java { source { srcDirs = ['src'] } } |
+ resources { source { srcDirs = ['src'] } } |
+ res { source { srcDirs = ['res'] } } |
+ jni { |
+ source { srcDirs = ['jni'] } |
+ dependencies { |
+ library "libadblockplus" |
+ library "v8_base" |
+ library "v8_snapshot" |
+ } |
+ } |
+ } |
+ } |
+ } |
+} |