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

Unified Diff: libadblockplus-android/build.gradle

Issue 29557565: Issue 5800 - Add option to specify a list of V8 libraries (Closed)
Patch Set: Excluding v8 shared libs from AAR (Gradle) Created Oct. 12, 2017, 12:27 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « README.md ('k') | libadblockplus-android/jni/Android.mk » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libadblockplus-android/build.gradle
diff --git a/libadblockplus-android/build.gradle b/libadblockplus-android/build.gradle
index 069c44cf739f2aac8e3843c5d92bd7b4f7ee2e61..0ed290cc805777a94968ef8666cac8ba8f6a5b85 100644
--- a/libadblockplus-android/build.gradle
+++ b/libadblockplus-android/build.gradle
@@ -29,4 +29,20 @@ android {
jni.srcDirs = ['jni']
}
}
+
+ def sharedV8LibFilesSet = []
+ def sharedV8LibFiles = System.getenv('SHARED_V8_LIB_FILENAMES')
+ if (sharedV8LibFiles != null) {
+ def sharedV8LibFilesArray = sharedV8LibFiles.split(' ')
+ sharedV8LibFilesArray.each { eachFileName ->
+ sharedV8LibFilesSet.add("**/" + eachFileName)
+ println "[Configuration] Excluding shared v8 library " + eachFileName + " from AAR"
+ }
+ } else {
+ println "[Configuration] No shared v8 libraries excluded from AAR"
+ }
+
+ packagingOptions {
+ excludes = sharedV8LibFilesSet
diegocarloslima 2017/10/16 10:04:28 I just think that instead of using the sharedV8Lib
+ }
}
« no previous file with comments | « README.md ('k') | libadblockplus-android/jni/Android.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld