Skip to content

Commit

Permalink
Build v66 on Windows (#403).
Browse files Browse the repository at this point in the history
All examples run fine, except the tkinter example which hanged.
  • Loading branch information
cztomczak committed May 29, 2018
1 parent e3226db commit 8cfc821
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 25 deletions.
24 changes: 12 additions & 12 deletions src/version/cef_version_win.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2017 Marshall A. Greenblatt. All rights reserved.
// Copyright (c) 2018 Marshall A. Greenblatt. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
Expand Down Expand Up @@ -35,16 +35,16 @@
#ifndef CEF_INCLUDE_CEF_VERSION_H_
#define CEF_INCLUDE_CEF_VERSION_H_

#define CEF_VERSION "3.3029.1604.g364cd86"
#define CEF_VERSION "3.3359.1774.gd49d25f"
#define CEF_VERSION_MAJOR 3
#define CEF_COMMIT_NUMBER 1604
#define CEF_COMMIT_HASH "364cd863b14617f21e6bf8fd3ca3faea01e2ef38"
#define COPYRIGHT_YEAR 2017
#define CEF_COMMIT_NUMBER 1774
#define CEF_COMMIT_HASH "d49d25f881b68f418e243e12801cbbb7caebb563"
#define COPYRIGHT_YEAR 2018

#define CHROME_VERSION_MAJOR 58
#define CHROME_VERSION_MAJOR 66
#define CHROME_VERSION_MINOR 0
#define CHROME_VERSION_BUILD 3029
#define CHROME_VERSION_PATCH 81
#define CHROME_VERSION_BUILD 3359
#define CHROME_VERSION_PATCH 181

#define DO_MAKE_STRING(p) #p
#define MAKE_STRING(p) DO_MAKE_STRING(p)
Expand All @@ -63,13 +63,13 @@ extern "C" {
// universal hash value will change if any platform is affected whereas the
// platform hash values will change only if that particular platform is
// affected.
#define CEF_API_HASH_UNIVERSAL "f0e835273a00acd02a699af272fc8f6ff9c5645c"
#define CEF_API_HASH_UNIVERSAL "84263345b0b1143139aba560e5e5ed16fb6a9628"
#if defined(OS_WIN)
#define CEF_API_HASH_PLATFORM "3cf7ac2b9aa61adfb9e5decdf0d32fbf78813355"
#define CEF_API_HASH_PLATFORM "cf092ef692a2ff18b0fc732b58bde9b8b8655fcc"
#elif defined(OS_MACOSX)
#define CEF_API_HASH_PLATFORM "f1d2ed00ab93e03a215fd787e6da9127e2949fd8"
#define CEF_API_HASH_PLATFORM "34f636bde2f02cb43c10061f384af4fc51c26e1f"
#elif defined(OS_LINUX)
#define CEF_API_HASH_PLATFORM "698e69c4297cc63b9893558a8591e7bd7aeeb0d4"
#define CEF_API_HASH_PLATFORM "6b57a640612f8d459042917ad2568b1526a70af4"
#endif

// Returns CEF version information for the libcef library. The |entry|
Expand Down
31 changes: 18 additions & 13 deletions tools/automate.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@
--gyp-generators=<gen> Set GYP_GENERATORS [default: ninja].
--gyp-msvs-version=<v> Set GYP_MSVS_VERSION.
--use-system-freetype Use system Freetype library on Linux (Issue #402)
--no-depot-tools-update Do not update depot_tools/ directory. When building
old unsupported versions of Chromium you want to
manually checkout an old version of depot tools
from the time of the release.
--no-depot-tools-update Do not update depot_tools/ directory. When
building old unsupported versions of Chromium
you want to manually checkout an old version
of depot tools from the time of the release.
"""

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

mt_find = r"/MT "
mt_replace = r"/MD /wd4275 "
mt_find = r'CEF_RUNTIME_LIBRARY_FLAG "/MT"'
mt_replace = r'CEF_RUNTIME_LIBRARY_FLAG "/MD"'

mtd_find = r"/MTd "
mtd_replace = r"/MDd /wd4275 "
wd4275_find = ('/wd4244 '
'# Ignore "conversion possible loss of data" warning')
wd4275_replace = ('/wd4244 '
'# Ignore "conversion possible loss of data" warning'
'\r\n'
' /wd4275 # Ignore "non dll-interface class"')

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

if try_undo:
matches1 = re.findall(re.escape(mt_replace), contents)
matches2 = re.findall(re.escape(mtd_replace), contents)
matches2 = re.findall(re.escape(wd4275_replace), contents)
if len(matches1) or len(matches2):
undo = True
else:
Expand All @@ -596,15 +600,16 @@ def fix_cmake_variables_for_MD_library(undo=False, try_undo=False):
if undo:
(contents, count) = re.subn(re.escape(mt_replace), mt_find,
contents)
assert count == 2
(contents, count) = re.subn(re.escape(mtd_replace), mtd_find,
assert count == 1
(contents, count) = re.subn(re.escape(wd4275_replace), wd4275_find,
contents)
assert count == 1
else:
(contents, count) = re.subn(re.escape(mt_find), mt_replace,
contents)
assert count == 2
(contents, count) = re.subn(re.escape(mtd_find), mtd_replace,
print(re.escape(mt_find))
assert count == 1
(contents, count) = re.subn(re.escape(wd4275_find), wd4275_replace,
contents)
assert count == 1

Expand Down

0 comments on commit 8cfc821

Please sign in to comment.