summaryrefslogtreecommitdiffstats
path: root/build/gyp_qtwebengine
diff options
context:
space:
mode:
Diffstat (limited to 'build/gyp_qtwebengine')
-rwxr-xr-xbuild/gyp_qtwebengine8
1 files changed, 7 insertions, 1 deletions
diff --git a/build/gyp_qtwebengine b/build/gyp_qtwebengine
index fd68af853..df5a5d18a 100755
--- a/build/gyp_qtwebengine
+++ b/build/gyp_qtwebengine
@@ -6,7 +6,13 @@ import subprocess
import sys
qtwebengine_src = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
-chrome_src = os.path.abspath(os.environ.get('CHROMIUM_SRC_DIR')) # null-checked in build.pro
+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')
+ print 'CHROMIUM_SRC_DIR not set, falling back to ' + chrome_src
+
script_dir = os.path.abspath(os.path.join(chrome_src, 'build'))
if not os.path.isdir(script_dir):
print script_dir + " is not a valid directory"