From 1390a76b6062e827200d37dfbbd43c01ce55c18b Mon Sep 17 00:00:00 2001 From: Zeno Albisser Date: Wed, 7 Aug 2013 16:33:18 +0200 Subject: 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 Reviewed-by: Zeno Albisser --- build/gyp_qtwebengine | 2 +- build/ninja | 1 - build/qmake/mkspecs/features/default_pre.prf | 2 +- build/qmake/mkspecs/features/functions.prf | 8 +++++++- build/scripts/build_resources.py | 2 +- 5 files changed, 10 insertions(+), 5 deletions(-) delete mode 160000 build/ninja (limited to 'build') 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 index c8ac05c87..000000000 --- a/build/ninja +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c8ac05c871a22cdd3b41ab76e72544524cedafae 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') -- cgit v1.2.3