X Tutup
Skip to content

Commit da2c2ee

Browse files
committed
Merge branch 'master' of github.com:cztomczak/cefpython
2 parents ef1b90f + 8cfc821 commit da2c2ee

File tree

2 files changed

+30
-25
lines changed

2 files changed

+30
-25
lines changed

src/version/cef_version_win.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2017 Marshall A. Greenblatt. All rights reserved.
1+
// Copyright (c) 2018 Marshall A. Greenblatt. All rights reserved.
22
//
33
// Redistribution and use in source and binary forms, with or without
44
// modification, are permitted provided that the following conditions are
@@ -35,16 +35,16 @@
3535
#ifndef CEF_INCLUDE_CEF_VERSION_H_
3636
#define CEF_INCLUDE_CEF_VERSION_H_
3737

38-
#define CEF_VERSION "3.3029.1604.g364cd86"
38+
#define CEF_VERSION "3.3359.1774.gd49d25f"
3939
#define CEF_VERSION_MAJOR 3
40-
#define CEF_COMMIT_NUMBER 1604
41-
#define CEF_COMMIT_HASH "364cd863b14617f21e6bf8fd3ca3faea01e2ef38"
42-
#define COPYRIGHT_YEAR 2017
40+
#define CEF_COMMIT_NUMBER 1774
41+
#define CEF_COMMIT_HASH "d49d25f881b68f418e243e12801cbbb7caebb563"
42+
#define COPYRIGHT_YEAR 2018
4343

44-
#define CHROME_VERSION_MAJOR 58
44+
#define CHROME_VERSION_MAJOR 66
4545
#define CHROME_VERSION_MINOR 0
46-
#define CHROME_VERSION_BUILD 3029
47-
#define CHROME_VERSION_PATCH 81
46+
#define CHROME_VERSION_BUILD 3359
47+
#define CHROME_VERSION_PATCH 181
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 "f0e835273a00acd02a699af272fc8f6ff9c5645c"
66+
#define CEF_API_HASH_UNIVERSAL "84263345b0b1143139aba560e5e5ed16fb6a9628"
6767
#if defined(OS_WIN)
68-
#define CEF_API_HASH_PLATFORM "3cf7ac2b9aa61adfb9e5decdf0d32fbf78813355"
68+
#define CEF_API_HASH_PLATFORM "cf092ef692a2ff18b0fc732b58bde9b8b8655fcc"
6969
#elif defined(OS_MACOSX)
70-
#define CEF_API_HASH_PLATFORM "f1d2ed00ab93e03a215fd787e6da9127e2949fd8"
70+
#define CEF_API_HASH_PLATFORM "34f636bde2f02cb43c10061f384af4fc51c26e1f"
7171
#elif defined(OS_LINUX)
72-
#define CEF_API_HASH_PLATFORM "698e69c4297cc63b9893558a8591e7bd7aeeb0d4"
72+
#define CEF_API_HASH_PLATFORM "6b57a640612f8d459042917ad2568b1526a70af4"
7373
#endif
7474

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

tools/automate.py

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@
6464
--gyp-generators=<gen> Set GYP_GENERATORS [default: ninja].
6565
--gyp-msvs-version=<v> Set GYP_MSVS_VERSION.
6666
--use-system-freetype Use system Freetype library on Linux (Issue #402)
67-
--no-depot-tools-update Do not update depot_tools/ directory. When building
68-
old unsupported versions of Chromium you want to
69-
manually checkout an old version of depot tools
70-
from the time of the release.
67+
--no-depot-tools-update Do not update depot_tools/ directory. When
68+
building old unsupported versions of Chromium
69+
you want to manually checkout an old version
70+
of depot tools from the time of the release.
7171
7272
"""
7373

@@ -574,11 +574,15 @@ def fix_cmake_variables_for_MD_library(undo=False, try_undo=False):
574574
# This replacements must be unique for the undo operation
575575
# to be reliable.
576576

577-
mt_find = r"/MT "
578-
mt_replace = r"/MD /wd4275 "
577+
mt_find = r'CEF_RUNTIME_LIBRARY_FLAG "/MT"'
578+
mt_replace = r'CEF_RUNTIME_LIBRARY_FLAG "/MD"'
579579

580-
mtd_find = r"/MTd "
581-
mtd_replace = r"/MDd /wd4275 "
580+
wd4275_find = ('/wd4244 '
581+
'# Ignore "conversion possible loss of data" warning')
582+
wd4275_replace = ('/wd4244 '
583+
'# Ignore "conversion possible loss of data" warning'
584+
'\r\n'
585+
' /wd4275 # Ignore "non dll-interface class"')
582586

583587
cmake_variables = os.path.join(Options.cef_binary, "cmake",
584588
"cef_variables.cmake")
@@ -587,7 +591,7 @@ def fix_cmake_variables_for_MD_library(undo=False, try_undo=False):
587591

588592
if try_undo:
589593
matches1 = re.findall(re.escape(mt_replace), contents)
590-
matches2 = re.findall(re.escape(mtd_replace), contents)
594+
matches2 = re.findall(re.escape(wd4275_replace), contents)
591595
if len(matches1) or len(matches2):
592596
undo = True
593597
else:
@@ -596,15 +600,16 @@ def fix_cmake_variables_for_MD_library(undo=False, try_undo=False):
596600
if undo:
597601
(contents, count) = re.subn(re.escape(mt_replace), mt_find,
598602
contents)
599-
assert count == 2
600-
(contents, count) = re.subn(re.escape(mtd_replace), mtd_find,
603+
assert count == 1
604+
(contents, count) = re.subn(re.escape(wd4275_replace), wd4275_find,
601605
contents)
602606
assert count == 1
603607
else:
604608
(contents, count) = re.subn(re.escape(mt_find), mt_replace,
605609
contents)
606-
assert count == 2
607-
(contents, count) = re.subn(re.escape(mtd_find), mtd_replace,
610+
print(re.escape(mt_find))
611+
assert count == 1
612+
(contents, count) = re.subn(re.escape(wd4275_find), wd4275_replace,
608613
contents)
609614
assert count == 1
610615

0 commit comments

Comments
 (0)
X Tutup