Index: README.md |
diff --git a/README.md b/README.md |
index cf21b99d9c7be72277f67f48983f1dac9bf2042f..faeb8d2dd9b2663079a3747f1df038eac44f4848 100644 |
--- a/README.md |
+++ b/README.md |
@@ -25,6 +25,18 @@ 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 |
+ |
+Then we can build `libadblockplus`: |
+ |
+ make TARGET_OS=android TARGET_ARCH=arm Configuration=release |
+ |
#### Building from command-line |
In the project root directory create the file _local.properties_ and set |
@@ -65,16 +77,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 +95,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 |