2011-01-27 03:21:50 +01:00
|
|
|
# Copyright (c) 2011 The Chromium Embedded Framework Authors.
|
|
|
|
# Portions copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
2011-09-27 17:02:08 +02:00
|
|
|
from gclient_util import *
|
2011-01-27 03:21:50 +01:00
|
|
|
import os, sys
|
|
|
|
|
|
|
|
# The CEF root directory is the parent directory of _this_ script.
|
|
|
|
cef_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
|
|
|
|
|
2011-10-31 16:51:01 +01:00
|
|
|
print "\nChecking CEF and Chromium revisions..."
|
|
|
|
gyper = [ 'python', 'tools/check_revision.py' ]
|
|
|
|
RunAction(cef_dir, gyper)
|
|
|
|
|
2011-10-18 19:56:10 +02:00
|
|
|
print "\nGenerating CEF version header file..."
|
|
|
|
gyper = [ 'python', 'tools/make_version_header.py',
|
2011-11-18 18:30:55 +01:00
|
|
|
'--header', 'include/cef_version.h',
|
2011-10-18 19:56:10 +02:00
|
|
|
'--version', '../chrome/VERSION' ]
|
|
|
|
RunAction(cef_dir, gyper)
|
|
|
|
|
2011-09-10 21:40:03 +02:00
|
|
|
print "\nPatching build configuration and source files for CEF..."
|
2011-01-27 03:21:50 +01:00
|
|
|
patcher = [ 'python', 'tools/patcher.py',
|
2011-09-10 21:40:03 +02:00
|
|
|
'--patch-config', 'patch/patch.cfg' ];
|
2011-10-18 19:56:10 +02:00
|
|
|
RunAction(cef_dir, patcher)
|
2011-01-27 03:21:50 +01:00
|
|
|
|
|
|
|
print "\nGenerating CEF project files..."
|
|
|
|
os.environ['CEF_DIRECTORY'] = os.path.basename(cef_dir);
|
2011-07-03 02:03:30 +02:00
|
|
|
gyper = [ 'python', 'tools/gyp_cef', 'cef.gyp', '-I', 'cef.gypi' ]
|
2011-10-18 19:56:10 +02:00
|
|
|
RunAction(cef_dir, gyper)
|