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 # The name of the top-level directory does not matter. In our examples, we use |
Tom Sepez
2015/10/20 17:25:36
nit: I'd move this before the ```, and lose the #.
Oliver Chang
2015/10/20 17:35:45
Done, but I suck at putting together sentences, so
| |
15 # "repo". | |
16 mkdir repo | |
17 cd repo | |
18 gclient config --unmanaged https://pdfium.googlesource.com/pdfium.git | |
19 gclient sync | |
15 cd pdfium | 20 cd pdfium |
16 gclient config --name . --unmanaged https://pdfium.googlesource.com/pdfium.git | |
17 gclient sync | |
18 ``` | 21 ``` |
19 | 22 |
20 ## Generate the build files | 23 ## Generate the build files |
21 | 24 |
22 We use the GYP library to generate the build files. | 25 We use the GYP library to generate the build files. |
23 | 26 |
24 At this point, you have two options. The first option is to use the [Ninja] | 27 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 | 28 (http://martine.github.io/ninja/) build system (also included with the |
26 depot\_tools checkout). This is the default as of mid-September, 2015. | 29 depot\_tools checkout). This is the default as of mid-September, 2015. |
27 Previously, the second option (platform-specific build files) was the default. | 30 Previously, the second option (platform-specific build files) was the default. |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
120 ``` | 123 ``` |
121 git checkout origin/xfa | 124 git checkout origin/xfa |
122 git checkout -b merge_branch | 125 git checkout -b merge_branch |
123 git branch --set-upstream-to=origin/xfa | 126 git branch --set-upstream-to=origin/xfa |
124 git cherry-pick -x <commit hash> | 127 git cherry-pick -x <commit hash> |
125 git commit --amend # add Merge to XFA | 128 git commit --amend # add Merge to XFA |
126 git cl upload | 129 git cl upload |
127 ``` | 130 ``` |
128 | 131 |
129 Then wait for approval, and `git cl land` | 132 Then wait for approval, and `git cl land` |
OLD | NEW |