"$_scripts_dir/templates/macros.tmpl",
]
+css_properties_files = scripts_for_in_files + [
+ "$_scripts_dir/css_properties.py",
+]
+
make_event_factory_files = scripts_for_in_files + [
"$_scripts_dir/make_event_factory.py",
"$_scripts_dir/templates/EventFactory.cpp.tmpl",
# 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++\""
}
# Templates --------------------------------------------------------------------
# from the GYP build.
# outputs: expected results. Note that the directory of the 0th item in this
# list will be taken to be the output path.
-# other_args: (optional) other arguements to pass to the script.
+# other_args: (optional) other arguments to pass to the script.
template("process_in_files") {
action(target_name) {
script = invoker.script
- source_prereqs = invoker.in_files
+ inputs = invoker.in_files
if (defined(invoker.other_inputs)) {
- source_prereqs += invoker.other_inputs
+ inputs += invoker.other_inputs
} else {
- source_prereqs += scripts_for_in_files
+ inputs += scripts_for_in_files
}
outputs = invoker.outputs
}
}
+# Template for scripts using css_properties.py. This is a special case of
+# process_in_files.
+# outputs: expected results
+template("css_properties") {
+ process_in_files(target_name) {
+ script = invoker.script
+ in_files = ["css/CSSProperties.in"]
+ other_inputs = css_properties_files
+ if (defined(invoker.other_inputs)) {
+ other_inputs += invoker.other_inputs
+ }
+ other_args = [
+ "--gperf", gperf_exe,
+ ]
+ outputs = invoker.outputs
+ }
+}
+
# Template to run the make_names script. This is a special case of
# process_in_files.
# in_files: files to pass to the script
in_files = invoker.in_files
other_inputs = make_names_files
outputs = invoker.outputs
- other_args = [ "--defines", feature_defines_string ]
}
}
in_files = invoker.in_files
other_inputs = make_qualified_names_files
outputs = invoker.outputs
- other_args = [ "--defines", feature_defines_string ]
}
}
action(target_name) {
script = "//third_party/WebKit/Source/build/scripts/make_token_matcher.py"
- source_prereqs = scripts_for_in_files + [ invoker.input_file ]
+ inputs = scripts_for_in_files + [ invoker.input_file ]
outputs = [ invoker.output_file ]
args = [