| OLD | NEW |
| 1 # PDFium | 1 # PDFium |
| 2 | 2 |
| 3 ## News | 3 ## News |
| 4 | 4 |
| 5 As of 2016-05-04, GN is used to generate build files replacing GYP. GYP | 5 As of 2016-05-04, GN is used to generate build files replacing GYP. GYP |
| 6 support will remain until it is disabled in Chromium and then will be removed | 6 support will remain until it is disabled in Chromium and then will be removed |
| 7 from PDFium. | 7 from PDFium. |
| 8 | 8 |
| 9 As of 2016-04-28, the Visual Studio toolchain from depot_tools is used as the | 9 As of 2016-04-28, the Visual Studio toolchain from depot_tools is used as the |
| 10 default Windows toolchain for Googlers. Please set DEPOT_TOOLS_WIN_TOOLCHAIN=0 | 10 default Windows toolchain for Googlers. Please set DEPOT_TOOLS_WIN_TOOLCHAIN=0 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 Configuration is done by executing `gn args <directory>` to configure the build. | 87 Configuration is done by executing `gn args <directory>` to configure the build. |
| 88 This will launch an editor in which you can set the following arguments. | 88 This will launch an editor in which you can set the following arguments. |
| 89 | 89 |
| 90 ``` | 90 ``` |
| 91 use_goma = true # Googlers only. | 91 use_goma = true # Googlers only. |
| 92 is_debug = true # Enable debugging features. | 92 is_debug = true # Enable debugging features. |
| 93 | 93 |
| 94 pdf_use_skia = false # Set true to enable experimental skia backend. | 94 pdf_use_skia = false # Set true to enable experimental skia backend. |
| 95 | 95 |
| 96 pdf_enable_xfa = true # Set false to remove XFA support (implies JS support). | 96 pdf_enable_xfa = true # Set false to remove XFA support (implies JS support). |
| 97 pdf_enable_v8 = true # Set false to remove Javascript support. | 97 pdf_enable_v8 = true # Set false to remove Javascript support. |
| 98 pdf_is_standalone = true # Set for a non-embedded build. | 98 pdf_is_standalone = true # Set for a non-embedded build. |
| 99 is_component_build = false # Disable component build (must be false) | 99 is_component_build = false # Disable component build (must be false) |
| 100 | 100 |
| 101 clang_use_chrome_plugins = false # Currently must be false. |
| 102 use_sysroot = false # Currently must be false on Linux. |
| 101 ``` | 103 ``` |
| 102 | 104 |
| 103 Note, you must set `pdf_is_standalone = true` if you want the sample | 105 Note, you must set `pdf_is_standalone = true` if you want the sample |
| 104 applications like `pdfium_test` to build. | 106 applications like `pdfium_test` to build. |
| 105 | 107 |
| 106 When complete the arguments will be stored in `<directory>/args.gn`. | 108 When complete the arguments will be stored in `<directory>/args.gn`. |
| 107 | 109 |
| 108 ## Building the code | 110 ## Building the code |
| 109 | 111 |
| 110 If you used Ninja, you can build the sample program by: | 112 If you used Ninja, you can build the sample program by: |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 and add the "Cr-Internals-Plugins-PDF" label. | 160 and add the "Cr-Internals-Plugins-PDF" label. |
| 159 | 161 |
| 160 ## Contributing code | 162 ## Contributing code |
| 161 | 163 |
| 162 For contributing code, we will follow | 164 For contributing code, we will follow |
| 163 [Chromium's process](http://dev.chromium.org/developers/contributing-code) | 165 [Chromium's process](http://dev.chromium.org/developers/contributing-code) |
| 164 as much as possible. The main exceptions is: | 166 as much as possible. The main exceptions is: |
| 165 | 167 |
| 166 1. Code has to conform to the existing style and not Chromium/Google style. | 168 1. Code has to conform to the existing style and not Chromium/Google style. |
| 167 | 169 |
| OLD | NEW |