diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-04-12 16:06:25 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-12 23:20:15 +0000 |
commit | d20e3880234a35a558237316cac5d70fff4224bc (patch) | |
tree | 6974205419fbdd0820e96ef8cecdbb1028601da9 /README.md | |
parent | 5eb58cd552c184998ed24634db4b2e6e770f39bd (diff) | |
download | pdfium-d20e3880234a35a558237316cac5d70fff4224bc.tar.xz |
Tidy build instructions
Removes a suggestion to run "gn gen" before that step can succeed.
Also removes some stray HTML preventing a heading from rendering.
Wordsmith a few other sections.
Change-Id: I77630e683a24a793a96ecbbd53ba13525cf79e64
Reviewed-on: https://pdfium-review.googlesource.com/4130
Reviewed-by: Wei Li <weili@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -58,15 +58,12 @@ gclient sync cd pdfium ``` -##<a name="GenBuild"></a> Generate the build files +## Generate the build files We use GN to generate the build files and -[Ninja](http://martine.github.io/ninja/) (also included with the depot\_tools -checkout) to execute the build files. - -``` -gn gen <directory> -``` +[Ninja](http://martine.github.io/ninja/) +to execute the build files. Both of these are included with the +depot\_tools checkout. ### Selecting build configuration @@ -90,17 +87,20 @@ pdf_is_standalone = true # Set for a non-embedded build. is_component_build = false # Disable component build (must be false) clang_use_chrome_plugins = false # Currently must be false. -use_sysroot = false # Currently must be false on Linux. +use_sysroot = false # Currently must be false on Linux, but entirely omitted on windows. ``` Note, you must set `pdf_is_standalone = true` if you want the sample applications like `pdfium_test` to build. -When complete the arguments will be stored in `<directory>/args.gn`. +When complete the arguments will be stored in `<directory>/args.gn`, and +GN will automatically use the new arguments to generate build files. +Should your files fail to generate, please double-check that you have set +use\_sysroot as indicated above. ## Building the code -If you used Ninja, you can build the sample program by: +You can build the sample program by: `ninja -C <directory>/pdfium_test` You can build the entire product (which includes a few unit tests) by: `ninja -C <directory>`. |