From 09e53e79c6212f0981eb0223d80acd070eedd491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Br=C3=BCning?= Date: Wed, 3 Sep 2014 16:30:56 +0200 Subject: [Win] Add gnuwin32\bin directory to PATH. This is necessary for finding gperf, bison, yacc, etc. on Windows. Works only if the gnuwin32 directory is on the same level as the qtwebengine root directory, which is the case with a qt checkout. Change-Id: I09fe1523d4e4baca6612f1039bbba2e2ff9d87c0 Reviewed-by: Jocelyn Turcotte --- tools/buildscripts/gyp_qtwebengine | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools') diff --git a/tools/buildscripts/gyp_qtwebengine b/tools/buildscripts/gyp_qtwebengine index e3fb740cd..eb44477e7 100755 --- a/tools/buildscripts/gyp_qtwebengine +++ b/tools/buildscripts/gyp_qtwebengine @@ -21,6 +21,11 @@ if not os.path.isdir(script_dir): sys.exit(1) root_dir = os.path.normcase(os.path.abspath(os.path.join(os.getcwd(), os.pardir, os.pardir))) +if sys.platform in ('cygwin', 'win32'): + gnuwin_tools_dir = os.path.normcase(os.path.abspath(os.path.join(qtwebengine_root, "../gnuwin32/bin"))) + if os.path.isdir(gnuwin_tools_dir): + os.environ['PATH'] = gnuwin_tools_dir + os.pathsep + os.environ['PATH'] + sys.path.insert(1, script_dir) import gyp_helper sys.path.insert(1, os.path.join(chrome_src, 'tools', 'gyp', 'pylib')) -- cgit v1.2.3