| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # All paths in this file should be absolute so targets in any directory can use | 5 # All paths in this file should be absolute so targets in any directory can use |
| 6 # them without worrying about the current directory. | 6 # them without worrying about the current directory. |
| 7 _scripts_dir = "//third_party/WebKit/Source/build/scripts" | 7 _scripts_dir = "//third_party/WebKit/Source/build/scripts" |
| 8 | 8 |
| 9 scripts_for_in_files = [ | 9 scripts_for_in_files = [ |
| 10 # jinja2/__init__.py contains version string, so sufficient as | 10 # jinja2/__init__.py contains version string, so sufficient as |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 "$_scripts_dir/templates/ElementFactory.h.tmpl", | 44 "$_scripts_dir/templates/ElementFactory.h.tmpl", |
| 45 "$_scripts_dir/templates/ElementWrapperFactory.cpp.tmpl", | 45 "$_scripts_dir/templates/ElementWrapperFactory.cpp.tmpl", |
| 46 "$_scripts_dir/templates/ElementWrapperFactory.h.tmpl", | 46 "$_scripts_dir/templates/ElementWrapperFactory.h.tmpl", |
| 47 ] | 47 ] |
| 48 | 48 |
| 49 make_element_type_helpers_files = make_qualified_names_files + [ | 49 make_element_type_helpers_files = make_qualified_names_files + [ |
| 50 "$_scripts_dir/make_element_type_helpers.py", | 50 "$_scripts_dir/make_element_type_helpers.py", |
| 51 "$_scripts_dir/templates/ElementTypeHelpers.h.tmpl", | 51 "$_scripts_dir/templates/ElementTypeHelpers.h.tmpl", |
| 52 ] | 52 ] |
| 53 | 53 |
| 54 # gperf_exe is relative to the build directory. Don't rebase it because on | 54 # The executables are relative to the build directory. Don't rebase it because |
| 55 # Posix we want to run the system one on the path. | 55 # on Posix we want to run the system one on the path. |
| 56 if (is_win) { | 56 if (is_win) { |
| 57 perl_exe = rebase_path("//third_party/perl/perl/bin/perl.exe", root_build_dir) |
| 57 gperf_exe = rebase_path("//third_party/gperf/bin/gperf.exe", root_build_dir) | 58 gperf_exe = rebase_path("//third_party/gperf/bin/gperf.exe", root_build_dir) |
| 59 bison_exe = rebase_path("//third_party/bison/bin/bison.exe", root_build_dir) |
| 60 # Using cl instead of cygwin gcc cuts the processing time from |
| 61 # 1m58s to 0m52s. |
| 62 preprocessor = "--preprocessor \"cl.exe -nologo -EP -TP\"" |
| 58 } else { | 63 } else { |
| 64 perl_exe = "perl" |
| 59 gperf_exe = "gperf" | 65 gperf_exe = "gperf" |
| 66 bison_exe = "bison" |
| 67 # We specify a preprocess so it happens locally and won't get |
| 68 # distributed to goma. |
| 69 # FIXME: /usr/bin/gcc won't exist on OSX forever. We want to |
| 70 # use /usr/bin/clang once we require Xcode 4.x. |
| 71 preprocessor = "--preprocessor \"/usr/bin/gcc -E -P -x c++\"" |
| 60 } | 72 } |
| OLD | NEW |