LEFT | RIGHT |
(no file at all) | |
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 * Execute `createsolution.bat` to generate project files, this will create | 45 * Execute `createsolution.bat` to generate project files, this will create |
46 `build\ia32\libadblockplus.sln` (solution for the 32 bit build) and | 46 `build\ia32\libadblockplus.sln` (solution for the 32 bit build) and |
47 `build\x64\libadblockplus.sln` (solution for the 64 bit build). Unfortunately, | 47 `build\x64\libadblockplus.sln` (solution for the 64 bit build). Unfortunately, |
48 V8 doesn't support creating both from the same project files. | 48 V8 doesn't support creating both from the same project files. |
49 * Open `build\ia32\libadblockplus.sln` or `build\x64\libadblockplus.sln` in | 49 * Open `build\ia32\libadblockplus.sln` or `build\x64\libadblockplus.sln` in |
50 Visual Studio and build the solution there. Alternatively you can use the | 50 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` | 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 |
| 55 |
| 56 You need a C++11 compatible compiler to build libadblockplus. |
| 57 |
| 58 The compilation was tested with the following compilers: |
| 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 |
| 64 If you have a question about another compiler please [create an issue](https://i
ssues.adblockplus.org/). |
| 65 |
54 Usage | 66 Usage |
55 ----- | 67 ----- |
56 | 68 |
57 You can use libadblockplus to build an ad blocker. Or, strictly speaking, a web | 69 You can use libadblockplus to build an ad blocker. Or, strictly speaking, a web |
58 content filter. Just like Adblock Plus, it can detect resources that should be | 70 content filter. Just like Adblock Plus, it can detect resources that should be |
59 blocked based on their URL and context information, and generate CSS selectors | 71 blocked based on their URL and context information, and generate CSS selectors |
60 to hide DOM elements. | 72 to hide DOM elements. |
61 | 73 |
62 The basic usage is explained below, see the | 74 The basic usage is explained below, see the |
63 [API documentation](https://adblockplus.org/docs/libadblockplus) for more | 75 [API documentation](https://adblockplus.org/docs/libadblockplus) for more |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 | 209 |
198 ### Unix | 210 ### Unix |
199 | 211 |
200 The shell is automatically built by `make`, you can run it as follows: | 212 The shell is automatically built by `make`, you can run it as follows: |
201 | 213 |
202 build/out/abpshell | 214 build/out/abpshell |
203 | 215 |
204 ### Windows | 216 ### Windows |
205 | 217 |
206 Just run the project *abpshell*. | 218 Just run the project *abpshell*. |
LEFT | RIGHT |