|
1 | 1 | # Build CEF with the cefpython patches applied |
2 | 2 |
|
| 3 | +Use tools/automate.py with the --build-cef flag to build CEF |
| 4 | +in an automated way with patches in this directory applied. |
| 5 | + |
| 6 | + |
| 7 | +# Build manually |
| 8 | + |
3 | 9 | CEF Python official binaries come with custom CEF binaries |
4 | 10 | with a few patches applied for our use case. |
5 | 11 |
|
6 | | -On Linux before running any CEF tools apply the issue73 patch |
| 12 | +On Linux before running any of CEF tools apply the issue73 patch |
7 | 13 | first. |
8 | 14 |
|
9 | 15 | To build CEF follow the instructions on the Branches and |
10 | 16 | Building CEF wiki page: |
11 | 17 | https://bitbucket.org/chromiumembedded/cef/wiki/BranchesAndBuilding |
12 | 18 |
|
13 | | -Use the automate-git.py tool, for example: |
14 | | -``` |
15 | | -mkdir chromium && cd chromium |
16 | | -python automate-git.py --download-dir=./ --branch=2526 --no-debug-build --verbose-build --build-log-file |
17 | | -``` |
| 19 | +After it is successfully built - apply patches, rebuild and remake |
| 20 | +distribs. |
| 21 | + |
| 22 | +Note that CEF patches must be applied in the |
| 23 | +"download_dir/chromium/src/cef/" directory, not in the "download_dir/cef/" |
| 24 | +directory. |
18 | 25 |
|
19 | | -After it is built apply patches and rebuild: |
20 | | -``` |
21 | | -cd chromium/src |
22 | | -ninja -v -j2 -Cout\Release cefclient |
23 | | -``` |
24 | 26 |
|
25 | 27 | ## How to patch |
26 | 28 |
|
27 | | -Create a patch from unstaged changes in current directory: |
| 29 | +Apply a patch in current directory: |
28 | 30 | ``` |
29 | 31 | cd chromium/src/cef/ |
30 | | -git diff > cef.gyp.patch |
| 32 | +git apply cef.gyp.patch |
31 | 33 | ``` |
32 | 34 |
|
33 | | -Apply a patch in current directory: |
| 35 | +Create a patch from unstaged changes in current directory: |
34 | 36 | ``` |
35 | 37 | cd chromium/src/cef/ |
36 | | -git apply cef.gyp.patch |
| 38 | +git diff --relative > cef.gyp.patch |
37 | 39 | ``` |
38 | 40 |
|
39 | | -## Ninja build slowing down computer |
40 | 41 |
|
41 | | -If ninja slows down your computer too much, build manually with |
42 | | -this command (where -j2 means to run 2 jobs in parallel) |
| 42 | +## Ninja build slows down computer |
| 43 | + |
| 44 | +If ninja slows down your computer too much (6 parallel jobs by default), |
| 45 | +build manually with this command (where -j2 means to run 2 jobs in parallel): |
43 | 46 | ``` |
44 | 47 | cd chromium/src |
45 | 48 | ninja -v -j2 -Cout\Release cefclient |
|
0 commit comments