Skip to content

Commit 2882865

Browse files
committed
Update to Chromium v56 on Linux Part 2 (cztomczak#276)...
Everything builds and runs fine now. tools/build.py works fine on Linux (cztomczak#299).
1 parent 3681c59 commit 2882865

File tree

5 files changed

+36
-33
lines changed

5 files changed

+36
-33
lines changed

docs/Build-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ graphical installer pops up don't install it - deny EULA.
348348
```
349349
cd build/chromium/src/build/
350350
chmod 755 install-build-deps.sh
351-
sudo ./install-build-deps.sh --no-chromeos-fonts --no-nacl
351+
sudo ./install-build-deps.sh --no-chromeos-fonts --no-nacl --no-arm
352352
```
353353

354354
After dependencies are satisifed re-run automate.py.

src/compile_time_constants.pxi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# This file was generated by setup.py
2-
DEF UNAME_SYSNAME = "Windows"
3-
DEF PY_MAJOR_VERSION = 3
2+
DEF UNAME_SYSNAME = "Linux"
3+
DEF PY_MAJOR_VERSION = 2

src/subprocess/Makefile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,11 @@ INC = -I./../ -I./../common/ -I/usr/include/python2.7 \
2727
-I/usr/lib/glib-2.0/include
2828

2929
ifeq ($(UNAME_S), Linux)
30-
LIB_DIRS = -L./../../build/cef_linux64/bin \
31-
-L./../../build/cef_linux32/bin \
32-
-L./../../build/cef_linux64/lib \
33-
-L./../../build/cef_linux32/lib
30+
LIB_DIRS = -L$(CEF_BIN) \
31+
-L$(CEF_LIB)
3432
else ifeq ($(UNAME_S), Darwin)
3533
LIB_DIRS = -F$(CEF_BIN) \
36-
-L$(CEF_LIB)
34+
-L$(CEF_LIB)
3735
endif
3836

3937
ifeq ($(UNAME_S), Linux)

src/version/cef_version_linux.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@
3535
#ifndef CEF_INCLUDE_CEF_VERSION_H_
3636
#define CEF_INCLUDE_CEF_VERSION_H_
3737

38-
#define CEF_VERSION "3.2883.1554.gf984155"
38+
#define CEF_VERSION "3.2924.1575.g97389a9"
3939
#define CEF_VERSION_MAJOR 3
40-
#define CEF_COMMIT_NUMBER 1554
41-
#define CEF_COMMIT_HASH "f984155b3f0ad80833742d17cdab2065f3ec75ce"
40+
#define CEF_COMMIT_NUMBER 1575
41+
#define CEF_COMMIT_HASH "97389a92ee2309ded830338d6afd61ba109d31d8"
4242
#define COPYRIGHT_YEAR 2017
4343

44-
#define CHROME_VERSION_MAJOR 55
44+
#define CHROME_VERSION_MAJOR 56
4545
#define CHROME_VERSION_MINOR 0
46-
#define CHROME_VERSION_BUILD 2883
47-
#define CHROME_VERSION_PATCH 87
46+
#define CHROME_VERSION_BUILD 2924
47+
#define CHROME_VERSION_PATCH 76
4848

4949
#define DO_MAKE_STRING(p) #p
5050
#define MAKE_STRING(p) DO_MAKE_STRING(p)
@@ -63,13 +63,13 @@ extern "C" {
6363
// universal hash value will change if any platform is affected whereas the
6464
// platform hash values will change only if that particular platform is
6565
// affected.
66-
#define CEF_API_HASH_UNIVERSAL "87b7eefcb86c87b28f86bfd7919f7d7a6cffc0d8"
66+
#define CEF_API_HASH_UNIVERSAL "66de193ba22e1d92a99bb29d60f3107709aeefda"
6767
#if defined(OS_WIN)
68-
#define CEF_API_HASH_PLATFORM "00823905486d7b7222da5654fe35d2d15f65543a"
68+
#define CEF_API_HASH_PLATFORM "8055740cd08db66cefe838a826dc90806fadfb33"
6969
#elif defined(OS_MACOSX)
70-
#define CEF_API_HASH_PLATFORM "f0180f006643782254250f34e858b98110a40e6e"
70+
#define CEF_API_HASH_PLATFORM "12d8ab423df369b68d37c3667123a1812bc0d345"
7171
#elif defined(OS_LINUX)
72-
#define CEF_API_HASH_PLATFORM "14b19454a4231fa10a77b8955954dc95f073af6b"
72+
#define CEF_API_HASH_PLATFORM "86ab23c0d7dafbdff7f66764cf8dac5ec1712af4"
7373
#endif
7474

7575
// Returns CEF version information for the libcef library. The |entry|

tools/build.py

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@
2323
Options:
2424
VERSION Version number eg. 50.0
2525
--no-run-examples Do not run examples after build, only unit tests
26-
--rebuild-cpp Force rebuild of .vcproj C++ projects (DISABLED)
2726
--fast Fast mode
2827
--clean Clean C++ projects build files on Linux/Mac
2928
--kivy Run only Kivy example
3029
"""
3130

31+
# --rebuild-cpp Force rebuild of .vcproj C++ projects (DISABLED)
32+
3233
# How to debug on Linux:
3334
# 1. Install "python-dbg" package
3435
# 2. Install "python-wxgtk2.8-dbg" package
@@ -236,7 +237,7 @@ def setup_environ():
236237
pass
237238

238239
# Mac env variables for makefiles
239-
if MAC:
240+
if MAC or LINUX:
240241
os.environ["CEF_BIN"] = os.path.join(CEF_BINARIES_LIBRARIES, "bin")
241242
os.environ["CEF_LIB"] = os.path.join(CEF_BINARIES_LIBRARIES, "lib")
242243

@@ -306,29 +307,33 @@ def fix_cefpython_api_header_file():
306307
print("[build.py] cefpython API header file was not yet generated")
307308
return
308309

310+
# Original contents
309311
with open(CEFPYTHON_API_HFILE, "rb") as fo:
310312
contents = fo.read().decode("utf-8")
311313

312-
already_fixed = False
313-
pragma = "#pragma warning(disable:4190)"
314-
if pragma in contents:
315-
already_fixed = True
316-
print("[build.py] cefpython API header file is already fixed")
317-
else:
318-
if not MAC:
314+
# Pragma fix on Windows
315+
if WINDOWS:
316+
already_fixed = False
317+
pragma = "#pragma warning(disable:4190)"
318+
if pragma in contents:
319+
already_fixed = True
320+
print("[build.py] cefpython API header file is already fixed")
321+
else:
319322
contents = ("%s\n\n" % pragma) + contents
323+
with open(CEFPYTHON_API_HFILE, "wb") as fo:
324+
fo.write(contents.encode("utf-8"))
325+
print("[build.py] Save {filename}"
326+
.format(filename=CEFPYTHON_API_HFILE))
320327

321-
if not already_fixed:
322-
with open(CEFPYTHON_API_HFILE, "wb") as fo:
323-
fo.write(contents.encode("utf-8"))
324-
print("[build.py] Save {filename}"
325-
.format(filename=CEFPYTHON_API_HFILE))
326-
328+
# Make a copy with a "_fixed" postfix
327329
if os.path.exists(CEFPYTHON_API_HFILE_FIXED):
328330
with open(CEFPYTHON_API_HFILE_FIXED, "rb") as fo:
329331
contents_fixed = fo.read().decode("utf-8")
330332
else:
331333
contents_fixed = ""
334+
335+
# Resave fixed copy only if contents changed. Other scripts
336+
# depend on "modified time" of the "_fixed" file.
332337
if contents != contents_fixed:
333338
print("[build.py] Save cefpython_fixed.h")
334339
with open(CEFPYTHON_API_HFILE_FIXED, "wb") as fo:

0 commit comments

Comments
 (0)