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

Side by Side Diff: README.md

Issue 29345636: Issue 1414 - Document how to build libadblockplus for Android (Closed)
Patch Set: Created June 20, 2016, 2:49 p.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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 libadblockplus 1 libadblockplus
2 ============== 2 ==============
3 3
4 A C++ library offering the core functionality of Adblock Plus. 4 A C++ library offering the core functionality of Adblock Plus.
5 5
6 Getting/updating the dependencies 6 Getting/updating the dependencies
7 --------------------------------- 7 ---------------------------------
8 8
9 libadblockplus has dependencies that aren't part of this repository. They are 9 libadblockplus has dependencies that aren't part of this repository. They are
10 retrieved and updated during the build process, but you can also manually update 10 retrieved and updated during the build process, but you can also manually update
11 them by running the following: 11 them by running the following:
12 12
13 ./ensure_dependencies.py 13 ./ensure_dependencies.py
14 14
15 Building 15 Building
16 -------- 16 --------
17 17
18 ### Supported compilers
sergei 2016/06/20 15:11:25 I think it would be better to call it now as "Supp
19
20 You need a C++11 compatible compiler to build libadblockplus.
21
22 Win32:
23 * Microsoft Visual Studio 2010, 2012
24
25 Linux:
26 * g++ 5.2
27
28 Mac:
29 * clang 3.6 for OS X
30
31 Android:
32 * the host system should be linux or OS X
33 * 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)
34 * g++ multilib
35
36 If you have a compilation issue with another compiler please [create an issue](h ttps://issues.adblockplus.org/).
37
18 ### Unix 38 ### Unix
19 39
20 All you need is Python 2.7 and Make: 40 All you need is Python 2.7 and Make:
21 41
22 make 42 make
23 43
24 The default target architecture is x64. On a 32 bit system, run: 44 The default target architecture is x64. On a 32 bit system, run:
25 45
26 make ARCH=ia32 46 make ARCH=ia32
27 47
(...skipping 16 matching lines...) Expand all
44 64
45 * Execute `createsolution.bat` to generate project files, this will create 65 * Execute `createsolution.bat` to generate project files, this will create
46 `build\ia32\libadblockplus.sln` (solution for the 32 bit build) and 66 `build\ia32\libadblockplus.sln` (solution for the 32 bit build) and
47 `build\x64\libadblockplus.sln` (solution for the 64 bit build). Unfortunately, 67 `build\x64\libadblockplus.sln` (solution for the 64 bit build). Unfortunately,
48 V8 doesn't support creating both from the same project files. 68 V8 doesn't support creating both from the same project files.
49 * Open `build\ia32\libadblockplus.sln` or `build\x64\libadblockplus.sln` in 69 * Open `build\ia32\libadblockplus.sln` or `build\x64\libadblockplus.sln` in
50 Visual Studio and build the solution there. Alternatively you can use the 70 Visual Studio and build the solution there. Alternatively you can use the
51 `msbuild` command line tool, e.g. run `msbuild /m build\ia32\libadblockplus.sln` 71 `msbuild` command line tool, e.g. run `msbuild /m build\ia32\libadblockplus.sln`
52 from the Visual Studio Developer Command Prompt to create a 32 bit debug build. 72 from the Visual Studio Developer Command Prompt to create a 32 bit debug build.
53 73
54 ### Supported compilers 74 ### Building for Android
55 75
56 You need a C++11 compatible compiler to build libadblockplus. 76 First set ANDROID_NDK_ROOT environment variable to your Android NDK directory.
57 77
58 The compilation was tested with the following compilers: 78 To build for *x86* arch run:
59 * g++ 4.8
60 * Microsoft Visual Studio 2010, 2012
61 * clang 3.4 for Android (from android-ndk-r9)
62 * clang 3.6 for OS X
63 79
64 If you have a question about another compiler please [create an issue](https://i ssues.adblockplus.org/). 80 make android_x86
81
82 To build for *arm* arch run:
83
84 make android_arm
65 85
66 Usage 86 Usage
67 ----- 87 -----
68 88
69 You can use libadblockplus to build an ad blocker. Or, strictly speaking, a web 89 You can use libadblockplus to build an ad blocker. Or, strictly speaking, a web
70 content filter. Just like Adblock Plus, it can detect resources that should be 90 content filter. Just like Adblock Plus, it can detect resources that should be
71 blocked based on their URL and context information, and generate CSS selectors 91 blocked based on their URL and context information, and generate CSS selectors
72 to hide DOM elements. 92 to hide DOM elements.
73 93
74 The basic usage is explained below, see the 94 The basic usage is explained below, see the
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 229
210 ### Unix 230 ### Unix
211 231
212 The shell is automatically built by `make`, you can run it as follows: 232 The shell is automatically built by `make`, you can run it as follows:
213 233
214 build/out/abpshell 234 build/out/abpshell
215 235
216 ### Windows 236 ### Windows
217 237
218 Just run the project *abpshell*. 238 Just run the project *abpshell*.
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld