Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # PDFium | 1 # PDFium |
| 2 | 2 |
| 3 ## Prerequisites | 3 ## Prerequisites |
| 4 | 4 |
| 5 Get the chromium depot tools via the instructions at | 5 Get the chromium depot tools via the instructions at |
| 6 http://www.chromium.org/developers/how-tos/install-depot-tools (this provides | 6 http://www.chromium.org/developers/how-tos/install-depot-tools (this provides |
| 7 the gclient utilty needed below). | 7 the gclient utilty needed below). |
| 8 | 8 |
| 9 Also install Python, Subversion, and Git and make sure they're in your path. | 9 Also install Python, Subversion, and Git and make sure they're in your path. |
| 10 | 10 |
| 11 ## Get the code | 11 ## Get the code |
| 12 | 12 |
| 13 ``` | 13 ``` |
| 14 mkdir pdfium | 14 mkdir pdfium |
|
Tom Sepez
2015/10/19 23:46:31
We might want to change this name to something lik
Oliver Chang
2015/10/19 23:50:15
Done.
| |
| 15 cd pdfium | 15 cd pdfium |
| 16 gclient config --name . --unmanaged https://pdfium.googlesource.com/pdfium.git | 16 gclient config --unmanaged https://pdfium.googlesource.com/pdfium.git |
| 17 gclient sync | 17 gclient sync |
| 18 ``` | 18 ``` |
|
Tom Sepez
2015/10/19 23:46:31
You'll need to add a cd pdfium here.
Oliver Chang
2015/10/19 23:50:15
Done.
| |
| 19 | 19 |
| 20 ## Generate the build files | 20 ## Generate the build files |
| 21 | 21 |
| 22 We use the GYP library to generate the build files. | 22 We use the GYP library to generate the build files. |
| 23 | 23 |
| 24 At this point, you have two options. The first option is to use the [Ninja] | 24 At this point, you have two options. The first option is to use the [Ninja] |
| 25 (http://martine.github.io/ninja/) build system (also included with the | 25 (http://martine.github.io/ninja/) build system (also included with the |
| 26 depot\_tools checkout). This is the default as of mid-September, 2015. | 26 depot\_tools checkout). This is the default as of mid-September, 2015. |
| 27 Previously, the second option (platform-specific build files) was the default. | 27 Previously, the second option (platform-specific build files) was the default. |
| 28 Most PDFium developers use Ninja, as does our [continuous build system] | 28 Most PDFium developers use Ninja, as does our [continuous build system] |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 120 ``` | 120 ``` |
| 121 git checkout origin/xfa | 121 git checkout origin/xfa |
| 122 git checkout -b merge_branch | 122 git checkout -b merge_branch |
| 123 git branch --set-upstream-to=origin/xfa | 123 git branch --set-upstream-to=origin/xfa |
| 124 git cherry-pick -x <commit hash> | 124 git cherry-pick -x <commit hash> |
| 125 git commit --amend # add Merge to XFA | 125 git commit --amend # add Merge to XFA |
| 126 git cl upload | 126 git cl upload |
| 127 ``` | 127 ``` |
| 128 | 128 |
| 129 Then wait for approval, and `git cl land` | 129 Then wait for approval, and `git cl land` |
| OLD | NEW |