1 { 2 'variables': { 3 'scripts_for_in_files': [ 4 # jinja2/__init__.py contains version string, so sufficient as 5 # dependency for whole jinja2 package 6 '<(DEPTH)/third_party/jinja2/__init__.py', 7 '<(DEPTH)/third_party/markupsafe/__init__.py', # jinja2 dep 8 'hasher.py', 9 'in_file.py', 10 'in_generator.py', 11 'license.py', 12 'name_macros.py', 13 'name_utilities.py', 14 'template_expander.py', 15 'templates/macros.tmpl', 16 ], 17 'make_event_factory_files': [ 18 '<@(scripts_for_in_files)', 19 'make_event_factory.py', 20 'templates/EventFactory.cpp.tmpl', 21 ], 22 'make_names_files': [ 23 '<@(scripts_for_in_files)', 24 'make_names.py', 25 'templates/MakeNames.cpp.tmpl', 26 'templates/MakeNames.h.tmpl', 27 ], 28 'make_qualified_names_files': [ 29 '<@(scripts_for_in_files)', 30 'make_qualified_names.py', 31 'templates/MakeQualifiedNames.cpp.tmpl', 32 'templates/MakeQualifiedNames.h.tmpl', 33 ], 34 'make_element_factory_files': [ 35 '<@(make_qualified_names_files)', 36 'make_element_factory.py', 37 'templates/ElementFactory.cpp.tmpl', 38 'templates/ElementFactory.h.tmpl', 39 'templates/ElementWrapperFactory.cpp.tmpl', 40 'templates/ElementWrapperFactory.h.tmpl', 41 ], 42 'conditions': [ 43 ['OS=="win"', { 44 # Using native perl rather than cygwin perl cuts execution time 45 # of idl preprocessing rules by a bit more than 50%. 46 'perl_exe': '<(DEPTH)/third_party/perl/perl/bin/perl.exe', 47 'gperf_exe': '<(DEPTH)/third_party/gperf/bin/gperf.exe', 48 'bison_exe': '<(DEPTH)/third_party/bison/bin/bison.exe', 49 # Using cl instead of cygwin gcc cuts the processing time from 50 # 1m58s to 0m52s. 51 'preprocessor': '--preprocessor "cl.exe -nologo -EP -TP"', 52 },{ 53 'perl_exe': 'perl', 54 'gperf_exe': 'gperf', 55 'bison_exe': 'bison', 56 # We specify a preprocess so it happens locally and won't get 57 # distributed to goma. 58 # FIXME: /usr/bin/gcc won't exist on OSX forever. We want to 59 # use /usr/bin/clang once we require Xcode 4.x. 60 'preprocessor': '--preprocessor "/usr/bin/gcc -E -P -x c++"' 61 }], 62 ], 63 }, 64 } 65