summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@digia.com>2013-08-07 16:33:18 +0200
committerZeno Albisser <zeno.albisser@digia.com>2013-08-17 18:43:38 +0200
commit1390a76b6062e827200d37dfbbd43c01ce55c18b (patch)
tree7d4e7280d76fdfb4ce0fe41f5397056f3048643a /build
parent285ba1642e82bcff245db0d07a0bfb212c08b7ef (diff)
Replace chromium and ninja submodule by a single 3rdparty submodule.
The new 3rdparty submodule contains snapshots of both ninja and chromium. This drastically reduces the size of the repository and can be used by our CI system. Change-Id: Ie7482181f2ba9dba5fc181b1f221a5fae714c8c8 Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com> Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Diffstat (limited to 'build')
-rwxr-xr-xbuild/gyp_qtwebengine2
m---------build/ninja0
-rw-r--r--build/qmake/mkspecs/features/default_pre.prf2
-rw-r--r--build/qmake/mkspecs/features/functions.prf8
-rwxr-xr-xbuild/scripts/build_resources.py2
5 files changed, 10 insertions, 4 deletions
diff --git a/build/gyp_qtwebengine b/build/gyp_qtwebengine
index 23d065831..322d7e62a 100755
--- a/build/gyp_qtwebengine
+++ b/build/gyp_qtwebengine
@@ -10,7 +10,7 @@ chrome_src = os.environ.get('CHROMIUM_SRC_DIR')
if chrome_src:
chrome_src = os.path.abspath(chrome_src)
if not chrome_src or not os.path.isdir(chrome_src):
- chrome_src = os.path.join(qtwebengine_src, 'chromium')
+ chrome_src = os.path.join(qtwebengine_src, '3rdparty/chromium')
print 'CHROMIUM_SRC_DIR not set, falling back to ' + chrome_src
script_dir = os.path.abspath(os.path.join(chrome_src, 'build'))
diff --git a/build/ninja b/build/ninja
deleted file mode 160000
-Subproject c8ac05c871a22cdd3b41ab76e72544524cedafa
diff --git a/build/qmake/mkspecs/features/default_pre.prf b/build/qmake/mkspecs/features/default_pre.prf
index 26e5e3428..75427b605 100644
--- a/build/qmake/mkspecs/features/default_pre.prf
+++ b/build/qmake/mkspecs/features/default_pre.prf
@@ -5,7 +5,7 @@ QTWEBENGINEPROCESS_NAME = QtWebEngineProcess
# Fetched from environment for now
CHROMIUM_SRC_DIR = $$(CHROMIUM_SRC_DIR)
-isEmpty(CHROMIUM_SRC_DIR): CHROMIUM_SRC_DIR=$$QTWEBENGINE_ROOT/chromium
+isEmpty(CHROMIUM_SRC_DIR): CHROMIUM_SRC_DIR=$$QTWEBENGINE_ROOT/3rdparty/chromium
INCLUDEPATH += $$CHROMIUM_SRC_DIR
diff --git a/build/qmake/mkspecs/features/functions.prf b/build/qmake/mkspecs/features/functions.prf
index 72a225916..c712912b4 100644
--- a/build/qmake/mkspecs/features/functions.prf
+++ b/build/qmake/mkspecs/features/functions.prf
@@ -75,7 +75,13 @@ defineReplace(findNinja) {
!isEmpty(CACHED_NINJA_EXECUTABLE):exists($$CACHED_NINJA_EXECUTABLE): return($$CACHED_NINJA_EXECUTABLE)
out = $$which(ninja)
# Try to be smart about it if we know where the chromium sources are located
- !exists($$out): out = $$absolute_path("$$QTWEBENGINE_ROOT/build/ninja/ninja")
+ !exists($$out): out = $$absolute_path("$$QTWEBENGINE_ROOT/3rdparty/ninja/ninja")
+ # If we still did not find ninja, then we bootstrap it.
+ !exists($$out) {
+ message("bootstrapping ninja...")
+ system("python $$QTWEBENGINE_ROOT/3rdparty/ninja/bootstrap.py")
+ }
+ message("using $$out")
cache(CACHED_NINJA_EXECUTABLE, set, out)
return($$out)
}
diff --git a/build/scripts/build_resources.py b/build/scripts/build_resources.py
index 6dd350fc6..d060db1f7 100755
--- a/build/scripts/build_resources.py
+++ b/build/scripts/build_resources.py
@@ -54,7 +54,7 @@ chrome_src = os.environ.get('CHROMIUM_SRC_DIR')
if chrome_src:
chrome_src = os.path.abspath(chrome_src)
if not chrome_src or not os.path.isdir(chrome_src):
- chrome_src = os.path.join(qtwebengine_src, 'chromium')
+ chrome_src = os.path.join(qtwebengine_src, '3rdparty/chromium')
print 'CHROMIUM_SRC_DIR not set, falling back to ' + chrome_src
grit_tool = os.path.join(chrome_src, 'tools/grit/grit.py')