Index: README.md |
diff --git a/README.md b/README.md |
index cf21b99d9c7be72277f67f48983f1dac9bf2042f..5a64e886929ba3c18839b55633a1669ad6390d04 100644 |
--- a/README.md |
+++ b/README.md |
@@ -25,6 +25,20 @@ You can find it in the 'libadblockplus-android' directory. |
Edit 'buildToolsVersion' in 'build.gradle' files if necessary. |
+#### Building of libadblockplus |
+ |
+First, we need to build `V8` required for `libadblockplus`. |
+See `libadblockplus/README` or V8 documentation on how to build V8 or |
+fetch precompiled one. Run in 'libadblockplus' directory: |
+ |
+ make TARGET_OS=android TARGET_ARCH=arm Configuration=release get-prebuilt-v8 |
+ make TARGET_OS=android TARGET_ARCH=ia32 Configuration=release get-prebuilt-v8 |
+ |
+Then we can build `libadblockplus`: |
+ |
+ make TARGET_OS=android TARGET_ARCH=arm SUB_ACTION=libadblockplus Configuration=release |
+ make TARGET_OS=android TARGET_ARCH=ia32 SUB_ACTION=libadblockplus Configuration=release |
+ |
#### Building from command-line |
In the project root directory create the file _local.properties_ and set |
@@ -65,16 +79,17 @@ output while building |
This can be desired to use product's V8 (let's say Chromium) instead of built-in V8. |
Put prebuilt shared V8 library file(s) in ARCH directories and set `SHARED_V8_LIB_FILENAMES` |
-environment variable before building. You can pass multiple filenames, separated with space. |
+environment variable and `SHARED_V8_LIB_DIR` before building. |
+You can pass multiple filenames in `SHARED_V8_LIB_FILENAMES`, separated with space. |
Libadblockplus is required to be linked with that library file(s). |
For example: |
- SHARED_V8_LIB_FILENAMES=libv8.cr.so ./gradlew clean assemble |
+ SHARED_V8_LIB_FILENAMES=libv8.cr.so SHARED_V8_LIB_DIR="/tmp/shared_v8" ./gradlew clean assembleAbi_arm |
or |
- SHARED_V8_LIB_FILENAMES="libv8.cr.so libfoo.so" ./gradlew clean assemble |
+ SHARED_V8_LIB_FILENAMES="libv8.cr.so libv8_libbase.cr.so libv8_libplatform.cr.so" SHARED_V8_LIB_DIR="/tmp/shared_v8" ./gradlew clean assembleAbi_arm |
for multiple library files. |
@@ -82,14 +97,11 @@ Note |
[Configuration] Excluding shared v8 library libv8.cr.so from AAR |
... |
- [Configuration] Linking dynamically with shared v8 library ./libadblockplus-binaries/android_armeabi-v7a/libv8.cr.so |
+ [Configuration] Linking dynamically with shared v8 library /tmp/shared_v8/release/libv8.cr.so |
... |
output while building. |
-Set `SHARED_V8_LIB_DIR` environment variable as full absolute path to pass |
-specific directory instead of default one (`libadblockplus-android/jni/libadblockplus-binaries`). |
- |
### Building for single ARCH |
By default libadblockplus-android is built for both ARM and x86 and it can be filtered when |