| OLD | NEW |
| 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 30 matching lines...) Expand all Loading... |
| 41 [OS X](https://dl.google.com/android/repository/android-ndk-r16b-darwin-x86_64
.zip), | 41 [OS X](https://dl.google.com/android/repository/android-ndk-r16b-darwin-x86_64
.zip), |
| 42 [Linux 64](https://dl.google.com/android/repository/android-ndk-r16b-linux-x86
_64.zip). | 42 [Linux 64](https://dl.google.com/android/repository/android-ndk-r16b-linux-x86
_64.zip). |
| 43 * g++ multilib | 43 * g++ multilib |
| 44 | 44 |
| 45 If you have a compilation issue with another compiler please [create an issue](h
ttps://issues.adblockplus.org/). | 45 If you have a compilation issue with another compiler please [create an issue](h
ttps://issues.adblockplus.org/). |
| 46 | 46 |
| 47 You also need Python 2.7 and ensure that `python.exe` is in your `PATH`. | 47 You also need Python 2.7 and ensure that `python.exe` is in your `PATH`. |
| 48 | 48 |
| 49 ### Unix | 49 ### Unix |
| 50 | 50 |
| 51 You need V8 prior to building. Two options: |
| 52 |
| 53 * Use the default prebuild V8 by invoking the make target |
| 54 `get-prebuilt-v8`. This will download and extract the prebuilt V8 for |
| 55 your setup. The default environment will be set by the Makefile at |
| 56 build time. If you are cross compiling use the same options as below |
| 57 to invoke make. |
| 58 |
| 59 If you switch target platform using the same source tree, you should |
| 60 manually remove the `third_party/prebuilt-v8` directory and redownload |
| 61 again with the right options. |
| 62 |
| 63 Or |
| 64 |
| 51 * Prepare V8 and set environment variables LIBV8_LIB_DIR and LIBV8_INCLUDE_DIR. | 65 * Prepare V8 and set environment variables LIBV8_LIB_DIR and LIBV8_INCLUDE_DIR. |
| 52 LIBV8_INCLUDE_DIR should point to the include directory of V8, e.g. | 66 LIBV8_INCLUDE_DIR should point to the include directory of V8, e.g. |
| 53 `.../v8/include` and there should be `libv8_monolith.a` in the directory | 67 `.../v8/include` and there should be `libv8_monolith.a` in the directory |
| 54 LIBV8_LIB_DIR. | 68 LIBV8_LIB_DIR. |
| 55 | 69 |
| 70 To build: |
| 71 |
| 56 Using Make: | 72 Using Make: |
| 57 | 73 |
| 58 make | 74 make |
| 59 | 75 |
| 60 The default target architecture is the architecture of a host. In order to build
for a different architecture pass `TARGET_ARCH` to `make`, e.g. run: | 76 The default target architecture is the architecture of a host. In order to build
for a different architecture pass `TARGET_ARCH` to `make`, e.g. run: |
| 61 | 77 |
| 62 make TARGET_ARCH=ia32 | 78 make TARGET_ARCH=ia32 |
| 63 | 79 |
| 64 supported values are `ia32` and `x64`. | 80 supported values are `ia32` and `x64`. |
| 65 | |
| 66 | 81 |
| 67 To build and run the tests: | 82 To build and run the tests: |
| 68 | 83 |
| 69 make test | 84 make test |
| 70 | 85 |
| 71 Likewise, use the following with `TARGET_ARCH`: | 86 Likewise, use the following with `TARGET_ARCH`: |
| 72 | 87 |
| 73 make test TARGET_ARCH=ia32 | 88 make test TARGET_ARCH=ia32 |
| 74 | 89 |
| 75 To run specific tests, you can specify a filter: | 90 To run specific tests, you can specify a filter: |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 Linting | 298 Linting |
| 284 ------- | 299 ------- |
| 285 | 300 |
| 286 You can lint the code using [ESLint](http://eslint.org). | 301 You can lint the code using [ESLint](http://eslint.org). |
| 287 | 302 |
| 288 npm run eslint | 303 npm run eslint |
| 289 | 304 |
| 290 In order to set up ESLint and | 305 In order to set up ESLint and |
| 291 [configuration eslint-config-eyeo](https://hg.adblockplus.org/codingtools/file/t
ip/eslint-config-eyeo) you need [Node.js 7 or higher](https://nodejs.org/) and o
nce it is installed please run `npm install` in the repository directory. | 306 [configuration eslint-config-eyeo](https://hg.adblockplus.org/codingtools/file/t
ip/eslint-config-eyeo) you need [Node.js 7 or higher](https://nodejs.org/) and o
nce it is installed please run `npm install` in the repository directory. |
| 292 | 307 |
| OLD | NEW |