summaryrefslogtreecommitdiffstats
path: root/tools/buildscripts/gyp_qtwebengine
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@digia.com>2013-12-02 18:23:45 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-03 11:57:52 +0100
commit3e635f23d06a622db23c7d3e99cae574735534d9 (patch)
treea057592ee2170d096620e6f3ccf37a37bba4c531 /tools/buildscripts/gyp_qtwebengine
parent430f202718f7311c541a7243870719e2df456f2f (diff)
Get localized strings in the render process
Building on top of the repacking of .pak files, we now ship the whole array of repacked locales and pick the appropriate one at runtime. Change-Id: I0096e3eac6a1fc83885fd11e0fa55a746f8e45d8 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'tools/buildscripts/gyp_qtwebengine')
-rwxr-xr-xtools/buildscripts/gyp_qtwebengine14
1 files changed, 2 insertions, 12 deletions
diff --git a/tools/buildscripts/gyp_qtwebengine b/tools/buildscripts/gyp_qtwebengine
index b7dd5ea12..cf4e2f683 100755
--- a/tools/buildscripts/gyp_qtwebengine
+++ b/tools/buildscripts/gyp_qtwebengine
@@ -2,19 +2,13 @@
import glob
import os
-import subprocess
import sys
print 'using python: ' + sys.executable + ' version: ' + sys.version
qtwebengine_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '../..'))
-qtwebengine_src = os.path.join(qtwebengine_root, 'src')
-chrome_src = subprocess.check_output("git config qtwebengine.chromiumsrcdir || true", shell=True).strip()
-if chrome_src:
- chrome_src = os.path.join(qtwebengine_root, chrome_src)
-if not chrome_src or not os.path.isdir(chrome_src):
- chrome_src = os.path.join(qtwebengine_root, 'src/3rdparty/chromium')
- print 'CHROMIUM_SRC_DIR not set, falling back to ' + chrome_src
+import qtwebengine_utils as utils
+chrome_src = utils.getChromiumSrcDir()
script_dir = os.path.abspath(os.path.join(chrome_src, 'build'))
if not os.path.isdir(script_dir):
@@ -38,10 +32,6 @@ sys.path.insert(1, os.path.join(chrome_src, 'third_party', 'WebKit',
sys.path.insert(1, os.path.join(chrome_src, 'third_party', 'WebKit',
'Source', 'core', 'scripts'))
-sys.path.insert(1, os.path.join(chrome_src, 'chrome', 'tools', 'build'))
-
-import repack_locales
-
def additional_include_files(args=[]):
"""
Returns a list of additional (.gypi) files to include, without