Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Unified Diff: Source/build/scripts/scripts.gni

Issue 298703005: First pass on blink compiling for GN build (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebuilding fixed Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/build/scripts/scripts.gni
diff --git a/Source/build/scripts/scripts.gni b/Source/build/scripts/scripts.gni
index 6deafced50d9db33c02e379bf029e94a76987954..50f6ca8440062556584242b7f912a900ca63cddf 100644
--- a/Source/build/scripts/scripts.gni
+++ b/Source/build/scripts/scripts.gni
@@ -51,10 +51,22 @@ make_element_type_helpers_files = make_qualified_names_files + [
"$_scripts_dir/templates/ElementTypeHelpers.h.tmpl",
]
-# gperf_exe is relative to the build directory. Don't rebase it because on
-# Posix we want to run the system one on the path.
+# The executables are relative to the build directory. Don't rebase it because
+# on Posix we want to run the system one on the path.
if (is_win) {
+ perl_exe = rebase_path("//third_party/perl/perl/bin/perl.exe", root_build_dir)
gperf_exe = rebase_path("//third_party/gperf/bin/gperf.exe", root_build_dir)
+ bison_exe = rebase_path("//third_party/bison/bin/bison.exe", root_build_dir)
+ # Using cl instead of cygwin gcc cuts the processing time from
+ # 1m58s to 0m52s.
+ preprocessor = "--preprocessor \"cl.exe -nologo -EP -TP\""
} else {
+ perl_exe = "perl"
gperf_exe = "gperf"
+ bison_exe = "bison"
+ # We specify a preprocess so it happens locally and won't get
+ # distributed to goma.
+ # FIXME: /usr/bin/gcc won't exist on OSX forever. We want to
+ # use /usr/bin/clang once we require Xcode 4.x.
+ preprocessor = "--preprocessor \"/usr/bin/gcc -E -P -x c++\""
}

Powered by Google App Engine
This is Rietveld 408576698