Chromium Code Reviews| Index: pylib/gyp/generator/make.py |
| =================================================================== |
| --- pylib/gyp/generator/make.py (revision 1393) |
| +++ pylib/gyp/generator/make.py (working copy) |
| @@ -54,7 +54,12 @@ |
| # Request sorted dependencies in the order from dependents to dependencies. |
| generator_wants_sorted_dependencies = False |
| +# Placates pylint. |
| +generator_additional_non_configuration_keys = [] |
| +generator_additional_path_sections = [] |
| +generator_extra_sources_for_rules = [] |
| + |
| def CalculateVariables(default_variables, params): |
| """Calculate additional variables for use in the build (called by gyp).""" |
| cc_target = os.environ.get('CC.target', os.environ.get('CC', 'cc')) |
| @@ -79,7 +84,6 @@ |
| global generator_extra_sources_for_rules |
| generator_extra_sources_for_rules = getattr(xcode_generator, |
| 'generator_extra_sources_for_rules', []) |
| - global COMPILABLE_EXTENSIONS |
|
Nico
2012/05/25 19:34:49
Why is this not needed?
bradn
2012/05/25 19:42:31
You only need a global declaration if you set a va
|
| COMPILABLE_EXTENSIONS.update({'.m': 'objc', '.mm' : 'objcxx'}) |
| else: |
| operating_system = flavor |