| OLD | NEW |
| 1 Adblock Plus core | 1 Adblock Plus core |
| 2 ================= | 2 ================= |
| 3 | 3 |
| 4 This repository contains the generic Adblock Plus code that's shared between | 4 This repository contains the generic Adblock Plus code that's shared between |
| 5 platforms. This repository is not designed to be used directly, but instead to | 5 platforms. This repository is not designed to be used directly, but instead to |
| 6 serve as a dependency for `adblockplus`, `adblockpluschrome` and | 6 serve as a dependency for `adblockplus`, `adblockpluschrome` and |
| 7 `libadblockplus`. | 7 `libadblockplus`. |
| 8 | 8 |
| 9 Compiling C++ code | 9 Compiling C++ code |
| 10 ------------------ | 10 ------------------ |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 Make sure that meson and ninja are in your PATH. | 25 Make sure that meson and ninja are in your PATH. |
| 26 | 26 |
| 27 ### Running Emscripten | 27 ### Running Emscripten |
| 28 | 28 |
| 29 After installing and configuring Emscripten you can setup the build | 29 After installing and configuring Emscripten you can setup the build |
| 30 with the following commands: | 30 with the following commands: |
| 31 | 31 |
| 32 meson build | 32 meson build |
| 33 | 33 |
| 34 To build natively use: |
| 35 |
| 36 meson -Dnative=true build |
| 37 |
| 34 By default it will create a debug build. Pass `--buildtype release` to | 38 By default it will create a debug build. Pass `--buildtype release` to |
| 35 create a release build. | 39 create a release build. |
| 36 | 40 |
| 37 Then to build just do: | 41 Then to build just do: |
| 38 | 42 |
| 39 ninja -C build | 43 ninja -C build |
| 40 | 44 |
| 41 This will regenerate the build files as needed. | 45 This will regenerate the build files as needed. |
| 42 | 46 |
| 43 This will produce a `lib/compiled.js` exporting the classes defined in C++ code. | 47 This will produce a `lib/compiled.js` exporting the classes defined in C++ code. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 Linting | 103 Linting |
| 100 ------- | 104 ------- |
| 101 | 105 |
| 102 You can lint the code using [ESLint](http://eslint.org). | 106 You can lint the code using [ESLint](http://eslint.org). |
| 103 | 107 |
| 104 eslint *.js chrome lib test | 108 eslint *.js chrome lib test |
| 105 | 109 |
| 106 You will need to set up ESLint and our configuration first, see | 110 You will need to set up ESLint and our configuration first, see |
| 107 [eslint-config-eyeo](https://hg.adblockplus.org/codingtools/file/tip/eslint-conf
ig-eyeo) | 111 [eslint-config-eyeo](https://hg.adblockplus.org/codingtools/file/tip/eslint-conf
ig-eyeo) |
| 108 for more information. | 112 for more information. |
| OLD | NEW |