| OLD | NEW |
| 1 # Copyright (c) 2013 Google Inc. All rights reserved. | 1 # Copyright (c) 2013 Google Inc. 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 # Notes: | 5 # Notes: |
| 6 # | 6 # |
| 7 # This is all roughly based on the Makefile system used by the Linux | 7 # This is all roughly based on the Makefile system used by the Linux |
| 8 # kernel, but is a non-recursive make -- we put the entire dependency | 8 # kernel, but is a non-recursive make -- we put the entire dependency |
| 9 # graph in front of make and let it figure it out. | 9 # graph in front of make and let it figure it out. |
| 10 # | 10 # |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 generator_default_variables = { | 34 generator_default_variables = { |
| 35 'EXECUTABLE_PREFIX': '', | 35 'EXECUTABLE_PREFIX': '', |
| 36 'EXECUTABLE_SUFFIX': '', | 36 'EXECUTABLE_SUFFIX': '', |
| 37 'STATIC_LIB_PREFIX': 'lib', | 37 'STATIC_LIB_PREFIX': 'lib', |
| 38 'SHARED_LIB_PREFIX': 'lib', | 38 'SHARED_LIB_PREFIX': 'lib', |
| 39 'STATIC_LIB_SUFFIX': '.a', | 39 'STATIC_LIB_SUFFIX': '.a', |
| 40 'INTERMEDIATE_DIR': '$(obj).$(TOOLSET)/$(TARGET)/geni', | 40 'INTERMEDIATE_DIR': '$(obj).$(TOOLSET)/$(TARGET)/geni', |
| 41 'SHARED_INTERMEDIATE_DIR': '$(obj)/gen', | 41 'SHARED_INTERMEDIATE_DIR': '$(obj)/gen', |
| 42 'PRODUCT_DIR': '$(builddir)', | 42 'PRODUCT_DIR': '$(builddir)', |
| 43 'FRAMEWORK_DIR': '$(builddir)', |
| 43 'RULE_INPUT_ROOT': '%(INPUT_ROOT)s', # This gets expanded by Python. | 44 'RULE_INPUT_ROOT': '%(INPUT_ROOT)s', # This gets expanded by Python. |
| 44 'RULE_INPUT_DIRNAME': '%(INPUT_DIRNAME)s', # This gets expanded by Python. | 45 'RULE_INPUT_DIRNAME': '%(INPUT_DIRNAME)s', # This gets expanded by Python. |
| 45 'RULE_INPUT_PATH': '$(abspath $<)', | 46 'RULE_INPUT_PATH': '$(abspath $<)', |
| 46 'RULE_INPUT_EXT': '$(suffix $<)', | 47 'RULE_INPUT_EXT': '$(suffix $<)', |
| 47 'RULE_INPUT_NAME': '$(notdir $<)', | 48 'RULE_INPUT_NAME': '$(notdir $<)', |
| 48 'CONFIGURATION_NAME': '$(BUILDTYPE)', | 49 'CONFIGURATION_NAME': '$(BUILDTYPE)', |
| 49 } | 50 } |
| 50 | 51 |
| 51 # Make supports multiple toolsets | 52 # Make supports multiple toolsets |
| 52 generator_supports_multiple_toolsets = True | 53 generator_supports_multiple_toolsets = True |
| (...skipping 2147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2200 root_makefile.write("endif\n") | 2201 root_makefile.write("endif\n") |
| 2201 root_makefile.write('\n') | 2202 root_makefile.write('\n') |
| 2202 | 2203 |
| 2203 if (not generator_flags.get('standalone') | 2204 if (not generator_flags.get('standalone') |
| 2204 and generator_flags.get('auto_regeneration', True)): | 2205 and generator_flags.get('auto_regeneration', True)): |
| 2205 WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files) | 2206 WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files) |
| 2206 | 2207 |
| 2207 root_makefile.write(SHARED_FOOTER) | 2208 root_makefile.write(SHARED_FOOTER) |
| 2208 | 2209 |
| 2209 root_makefile.close() | 2210 root_makefile.close() |
| OLD | NEW |