diff --git a/patches/chromium/third_party/WebKit/0002-Overrideable-path-for-perl-gperf-and-bison.patch b/patches/chromium/third_party/WebKit/0002-Overrideable-path-for-perl-gperf-and-bison.patch new file mode 100644 index 0000000000000000000000000000000000000000..f636afc4c1b6bf3ae5c2cac6bbbb9a40abf34af3 --- /dev/null +++ b/patches/chromium/third_party/WebKit/0002-Overrideable-path-for-perl-gperf-and-bison.patch @@ -0,0 +1,26 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Zoltan Arvai <zarvai@inf.u-szeged.hu> +Date: Mon, 3 Mar 2014 14:18:12 +0100 +Subject: [PATCH] Overrideable path for perl, gperf and bison. + +--- + Source/core/core.gypi | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Source/core/core.gypi b/Source/core/core.gypi +index 3cd07aa..77879bb 100644 +--- a/Source/core/core.gypi ++++ b/Source/core/core.gypi +@@ -3879,9 +3879,9 @@ + ['OS=="win"', { + # Using native perl rather than cygwin perl cuts execution time + # of idl preprocessing rules by a bit more than 50%. +- 'perl_exe': '<(DEPTH)/third_party/perl/perl/bin/perl.exe', +- 'gperf_exe': '<(DEPTH)/third_party/gperf/bin/gperf.exe', +- 'bison_exe': '<(DEPTH)/third_party/bison/bin/bison.exe', ++ 'perl_exe%': '<(DEPTH)/third_party/perl/perl/bin/perl.exe', ++ 'gperf_exe%': '<(DEPTH)/third_party/gperf/bin/gperf.exe', ++ 'bison_exe%': '<(DEPTH)/third_party/bison/bin/bison.exe', + # Using cl instead of cygwin gcc cuts the processing time from + # 1m58s to 0m52s. + 'preprocessor': '--preprocessor "cl.exe -nologo -EP -TP"', diff --git a/src/core/gyp_run.pro b/src/core/gyp_run.pro index 782859818687caeb5d398b40f441395acb181c5b..830844fe8ec730d6fd61a8df5ea809239e3f4db3 100644 --- a/src/core/gyp_run.pro +++ b/src/core/gyp_run.pro @@ -62,6 +62,9 @@ win32 { # Libvpx build needs additional search path on Windows. git_chromium_src_dir = $$system("git config qtwebengine.chromiumsrcdir") GYP_ARGS += "-D qtwe_chromium_obj_dir=\"$$getOutDir()/$$getConfigDir()/obj/$$git_chromium_src_dir\"" + +# Use path from environment for perl, bison and gperf instead of values set in WebKit's core.gypi. +GYP_ARGS += "-D perl_exe=\"perl.exe\" -D bison_exe=\"bison.exe\" -D gperf_exe=\"gperf.exe\"" } !build_pass {