Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: libadblockplus-android/build.gradle

Issue 29349720: Issue 4324 - Add Gradle build config (Closed)
Patch Set: fixes in README Created Nov. 21, 2016, 8:14 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « libadblockplus-android-tests/build.gradle ('k') | settings.gradle » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 apply plugin: 'com.android.model.library'
2
3 model {
4
5 repositories {
6 libs(PrebuiltLibraries) {
7 libadblockplus {
8 headers.srcDir 'jni/libadblockplus-binaries/include/'
9 binaries.withType(SharedLibraryBinary) {
10 sharedLibraryFile = file("jni/libadblockplus-binaries/android_${target Platform.getName()}/libadblockplus.a")
11 }
12 }
13
14 v8_base {
15 headers.srcDir 'jni/libadblockplus-binaries/include/'
16 binaries.withType(SharedLibraryBinary) {
17 sharedLibraryFile = file("jni/libadblockplus-binaries/android_${target Platform.getName()}/libv8_base.a")
18 }
19 }
20
21 v8_snapshot {
22 headers.srcDir 'jni/libadblockplus-binaries/include/'
23 binaries.withType(SharedLibraryBinary) {
24 sharedLibraryFile = file("jni/libadblockplus-binaries/android_${target Platform.getName()}/libv8_snapshot.a")
25 }
26 }
27 }
28 }
29
30 android {
31 compileSdkVersion 16
32 buildToolsVersion "22.0.1"
33
34 ndk {
35 moduleName = "adblockplus-jni"
36 cppFlags.add("-std=c++11")
37 cppFlags.add("-fexceptions")
38 stl = "c++_static"
39
40 abiFilters.addAll(['armeabi-v7a', 'x86']) // supported abis only
41 }
42
43 defaultConfig {
44 minSdkVersion.apiLevel 9
45 targetSdkVersion.apiLevel 16
46 versionCode 359
47 versionName "1.3"
48 }
49
50 sources {
51 main {
52 manifest {
53 source {
54 srcDir '.'
55 include 'AndroidManifest.xml'
56 }
57 }
58 java { source { srcDirs = ['src'] } }
59 resources { source { srcDirs = ['src'] } }
60 res { source { srcDirs = ['res'] } }
61 jni {
62 source { srcDirs = ['jni'] }
63 dependencies {
64 library "libadblockplus"
65 library "v8_base"
66 library "v8_snapshot"
67 }
68 }
69 }
70 }
71 }
72 }
OLDNEW
« no previous file with comments | « libadblockplus-android-tests/build.gradle ('k') | settings.gradle » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld