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 8, 2016, 1:26 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
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 `msbuild` command line tool, e.g. run `msbuild /m build\ia32\libadblockplus.sln` 51 `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. 52 from the Visual Studio Developer Command Prompt to create a 32 bit debug build.
53 53
54 ### Supported compilers 54 ### Supported compilers
55 55
56 You need a C++11 compatible compiler to build libadblockplus. 56 You need a C++11 compatible compiler to build libadblockplus.
57 57
58 The compilation was tested with the following compilers: 58 The compilation was tested with the following compilers:
59 * g++ 4.8 59 * g++ 4.8
60 * Microsoft Visual Studio 2010, 2012 60 * Microsoft Visual Studio 2010, 2012
61 * clang 3.4 for Android (from android-ndk-r9) 61 * clang 3.4 for Android (from android-ndk-r9, r10c)
sergei 2016/06/08 15:32:35 It's actually can be quite tricky to find the link
sergei 2016/06/08 15:32:35 It also makes sense to say may be after the list o
sergei 2016/06/10 11:36:01 Yeah, but unfortunately we cannot achieve it right
sergei 2016/06/10 11:36:01 Honestly I personally have not tried to compile it
anton 2016/06/14 07:16:46 i've tried to compile with gcc-4.9 from r11c symli
62 * clang 3.6 for OS X 62 * clang 3.6 for OS X
63 63
64 If you have a question about another compiler please [create an issue](https://i ssues.adblockplus.org/). 64 If you have a question about another compiler please [create an issue](https://i ssues.adblockplus.org/).
65 65
66 ### Building for Android
sergei 2016/06/08 15:32:35 I think it should be before "Supported compilers"
anton 2016/06/14 07:16:46 Done.
anton 2016/06/14 07:16:46 Done.
67
68 First set ANDROID_NDK_ROOT environment variable to your Android NDK directory.
sergei 2016/06/08 15:32:35 It would be better if you could include an example
sergei 2016/06/08 15:32:35 There is additional space character between NDK an
sergei 2016/06/10 11:36:01 Fair enough, albeit I guess nobody is trying to co
anton 2016/06/14 07:16:46 Done.
anton 2016/06/14 07:16:46 Not sure it's needed as i assume people trying to
69
70 To build for *x86* arch run:
71
72 make android_x86
73
74 To build for *arm* arch run:
75
76 make android_arm
77
66 Usage 78 Usage
67 ----- 79 -----
68 80
69 You can use libadblockplus to build an ad blocker. Or, strictly speaking, a web 81 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 82 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 83 blocked based on their URL and context information, and generate CSS selectors
72 to hide DOM elements. 84 to hide DOM elements.
73 85
74 The basic usage is explained below, see the 86 The basic usage is explained below, see the
75 [API documentation](https://adblockplus.org/docs/libadblockplus) for more 87 [API documentation](https://adblockplus.org/docs/libadblockplus) for more
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 221
210 ### Unix 222 ### Unix
211 223
212 The shell is automatically built by `make`, you can run it as follows: 224 The shell is automatically built by `make`, you can run it as follows:
213 225
214 build/out/abpshell 226 build/out/abpshell
215 227
216 ### Windows 228 ### Windows
217 229
218 Just run the project *abpshell*. 230 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