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

Unified Diff: README.md

Issue 29345636: Issue 1414 - Document how to build libadblockplus for Android (Closed)
Patch Set: Created June 20, 2016, 3: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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: README.md
===================================================================
--- a/README.md
+++ b/README.md
@@ -10,16 +10,36 @@
retrieved and updated during the build process, but you can also manually update
them by running the following:
./ensure_dependencies.py
Building
--------
+### Supported target platforms and prerequisites
+
+You need a C++11 compatible compiler to build libadblockplus.
+
+Win32:
+* Microsoft Visual Studio 2010, 2012
+
+Linux:
+* g++ 5.2
+
+Mac:
+* clang 3.6 for OS X
+
+Android:
+* The host system should be Linux or OS X
+* android-ndk-r9, android-ndk-r10c. You can download the latter for [OS X](http://dl.google.com/android/ndk/android-ndk-r10c-darwin-x86_64.bin), [Linux 32](http://dl.google.com/android/ndk/android-ndk-r10c-linux-x86.bin), [Linux 64](http://dl.google.com/android/ndk/android-ndk-r10c-linux-x86_64.bin).
+* g++ multilib
+
+If you have a compilation issue with another compiler please [create an issue](https://issues.adblockplus.org/).
+
### Unix
All you need is Python 2.7 and Make:
make
The default target architecture is x64. On a 32 bit system, run:
@@ -46,27 +66,27 @@
`build\ia32\libadblockplus.sln` (solution for the 32 bit build) and
`build\x64\libadblockplus.sln` (solution for the 64 bit build). Unfortunately,
V8 doesn't support creating both from the same project files.
* Open `build\ia32\libadblockplus.sln` or `build\x64\libadblockplus.sln` in
Visual Studio and build the solution there. Alternatively you can use the
`msbuild` command line tool, e.g. run `msbuild /m build\ia32\libadblockplus.sln`
from the Visual Studio Developer Command Prompt to create a 32 bit debug build.
-### Supported compilers
+### Building for Android
-You need a C++11 compatible compiler to build libadblockplus.
+First set ANDROID_NDK_ROOT environment variable to your Android NDK directory.
-The compilation was tested with the following compilers:
-* g++ 4.8
-* Microsoft Visual Studio 2010, 2012
-* clang 3.4 for Android (from android-ndk-r9)
-* clang 3.6 for OS X
+To build for *x86* arch run:
-If you have a question about another compiler please [create an issue](https://issues.adblockplus.org/).
+ make android_x86
+
+To build for *arm* arch run:
+
+ make android_arm
Usage
-----
You can use libadblockplus to build an ad blocker. Or, strictly speaking, a web
content filter. Just like Adblock Plus, it can detect resources that should be
blocked based on their URL and context information, and generate CSS selectors
to hide DOM elements.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld