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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 ### Unix | 49 ### Unix |
50 | 50 |
51 You need V8 prior to building. Two options: | 51 You need V8 prior to building. Two options: |
52 | 52 |
53 * Use the default prebuild V8 by invoking the make target | 53 * Use the default prebuild V8 by invoking the make target |
54 `get-prebuilt-v8`. This will download and extract the prebuilt V8 for | 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 | 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 | 56 build time. If you are cross compiling use the same options as below |
57 to invoke make. | 57 to invoke make. |
58 | 58 |
59 If you switch target platform using the same source tree, you should | 59 If you switch the version of V8 using the same source tree, you should |
60 manually remove the `third_party/prebuilt-v8` directory and redownload | 60 manually remove the `third_party/prebuilt-v8` directory and redownload |
61 again with the right options. | 61 again with the right options. |
62 | 62 |
63 Or | 63 Or |
64 | 64 |
65 * 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. |
66 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. |
67 `.../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 |
68 LIBV8_LIB_DIR. | 68 LIBV8_LIB_DIR. |
69 | 69 |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 Linting | 298 Linting |
299 ------- | 299 ------- |
300 | 300 |
301 You can lint the code using [ESLint](http://eslint.org). | 301 You can lint the code using [ESLint](http://eslint.org). |
302 | 302 |
303 npm run eslint | 303 npm run eslint |
304 | 304 |
305 In order to set up ESLint and | 305 In order to set up ESLint and |
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. | 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. |
307 | 307 |
OLD | NEW |