Skip to content

Commit 19883fe

Browse files
committed
Update build instructions and automate.py
1 parent b14af53 commit 19883fe

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

docs/Build-instructions.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ __Windows__
5050

5151
__Linux__
5252

53-
* Install packages: cmake, g++ 4.6.3+, libgtkglext1-dev, libgtk2.0-dev, libgtk2.0-0
53+
* Install packages: `sudo apt-get install cmake g++`
5454
* If building CEF from sources:
5555
* Download and install cmake 2.8.12 or later (unless you already have a
5656
proper version, check with cmake --version):
@@ -69,6 +69,9 @@ proper version, check with cmake --version):
6969
* When building CEF from sources you will need to install many more packages
7070
using the install-build-deps.sh script - instructions are provided
7171
further down on this page.
72+
* See also the Linux configuration for CEF automated
73+
builds on the [cef/AutomatedBuildSetup.md](https://bitbucket.org/chromiumembedded/cef/wiki/AutomatedBuildSetup.md#markdown-header-linux-configuration)
74+
wiki page.
7275
* Building on Ubuntu 12.04 is supported up to branch 2526 (Chrome 47).
7376
For branches 2623 (Chrome 49) or later Ubuntu 14.04+ is required.
7477
* To build on Debian 7 see
@@ -77,6 +80,7 @@ proper version, check with cmake --version):
7780
and [cef/#1697](https://bitbucket.org/chromiumembedded/cef/issues/1697)
7881
* To perform a 32-bit Linux build on a 64-bit Linux system see
7982
[cef/#1804](https://bitbucket.org/chromiumembedded/cef/issues/1804)
83+
* To build upstream cefclient/cefsimple you need to install these packages: `sudo apt-get install libgtk2.0-dev libgtkglext1-dev`
8084

8185

8286
__All platforms__
@@ -98,8 +102,8 @@ prebuilt binaries from GitHub Releases using version information from
98102
src/version/.
99103

100104
__NOTE__: The --prebuilt-cef flag is not implemented yet - you need to
101-
download manually from GitHub Releases and put files to
102-
cefpython/build/linux64/ (rename cef47_xxx_linux64/ to linux64/).
105+
download manually from GitHub Releases and extract to
106+
cefpython/build/.
103107
```
104108
cd tools/
105109
python automate.py --prebuilt-cef

tools/automate.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Copyright (c) 2016 CEF Python, see the Authors file. All rights reserved.
22

3+
# TODO: add GYP_DEFINES: disable_nacl=1 use_sysroot=1 (AutomatedBuildSetup)
4+
# TODO: run automate-git.py using Python 2.7 from depot_tools
5+
36
"""Build CEF Python and use prebuilt CEF binaries or build CEF from sources.
47
58
Usage:
@@ -128,10 +131,9 @@ def setup_options(docopt_args):
128131
Options.cefpython_dir = os.path.dirname(Options.tools_dir)
129132

130133
# --cef-branch
131-
# TODO: by default use branch by calling cefpython_version()
132134
if not Options.cef_branch:
133-
print("[automate.py] ERROR: --cef-branch flag is required")
134-
sys.exit(1)
135+
# Use branch from the src/version/cef_version_*.h file
136+
Options.cef_branch = get_cefpython_version()["CHROME_VERSION_BUILD"]
135137

136138
# --gyp-msvs-version
137139
if not Options.gyp_msvs_version:
@@ -481,7 +483,6 @@ def run_git(command_line, working_dir):
481483

482484
def run_automate_git():
483485
"""Run CEF automate-git.py."""
484-
# TODO: run automate-git.py using Python 2.7 from depot_tools
485486
script = os.path.join(Options.cefpython_dir, "tools", "automate-git.py")
486487
"""
487488
Example automate-git.py command:

0 commit comments

Comments
 (0)