OLD | NEW |
1 # Copyright (c) 2012 Google Inc. All rights reserved. | 1 # Copyright (c) 2012 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 25 matching lines...) Expand all Loading... |
36 'SHARED_LIB_PREFIX': 'lib', | 36 'SHARED_LIB_PREFIX': 'lib', |
37 'STATIC_LIB_SUFFIX': '.a', | 37 'STATIC_LIB_SUFFIX': '.a', |
38 'INTERMEDIATE_DIR': '$(obj).$(TOOLSET)/$(TARGET)/geni', | 38 'INTERMEDIATE_DIR': '$(obj).$(TOOLSET)/$(TARGET)/geni', |
39 'SHARED_INTERMEDIATE_DIR': '$(obj)/gen', | 39 'SHARED_INTERMEDIATE_DIR': '$(obj)/gen', |
40 'PRODUCT_DIR': '$(builddir)', | 40 'PRODUCT_DIR': '$(builddir)', |
41 'RULE_INPUT_ROOT': '%(INPUT_ROOT)s', # This gets expanded by Python. | 41 'RULE_INPUT_ROOT': '%(INPUT_ROOT)s', # This gets expanded by Python. |
42 'RULE_INPUT_DIRNAME': '%(INPUT_DIRNAME)s', # This gets expanded by Python. | 42 'RULE_INPUT_DIRNAME': '%(INPUT_DIRNAME)s', # This gets expanded by Python. |
43 'RULE_INPUT_PATH': '$(abspath $<)', | 43 'RULE_INPUT_PATH': '$(abspath $<)', |
44 'RULE_INPUT_EXT': '$(suffix $<)', | 44 'RULE_INPUT_EXT': '$(suffix $<)', |
45 'RULE_INPUT_NAME': '$(notdir $<)', | 45 'RULE_INPUT_NAME': '$(notdir $<)', |
46 | |
47 # This appears unused --- ? | |
48 'CONFIGURATION_NAME': '$(BUILDTYPE)', | 46 'CONFIGURATION_NAME': '$(BUILDTYPE)', |
49 } | 47 } |
50 | 48 |
51 # Make supports multiple toolsets | 49 # Make supports multiple toolsets |
52 generator_supports_multiple_toolsets = True | 50 generator_supports_multiple_toolsets = True |
53 | 51 |
54 # Request sorted dependencies in the order from dependents to dependencies. | 52 # Request sorted dependencies in the order from dependents to dependencies. |
55 generator_wants_sorted_dependencies = False | 53 generator_wants_sorted_dependencies = False |
56 | 54 |
57 # Placates pylint. | 55 # Placates pylint. |
(...skipping 2066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2124 root_makefile.write(" include " + include_file + "\n") | 2122 root_makefile.write(" include " + include_file + "\n") |
2125 root_makefile.write("endif\n") | 2123 root_makefile.write("endif\n") |
2126 root_makefile.write('\n') | 2124 root_makefile.write('\n') |
2127 | 2125 |
2128 if generator_flags.get('auto_regeneration', True): | 2126 if generator_flags.get('auto_regeneration', True): |
2129 WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files) | 2127 WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files) |
2130 | 2128 |
2131 root_makefile.write(SHARED_FOOTER) | 2129 root_makefile.write(SHARED_FOOTER) |
2132 | 2130 |
2133 root_makefile.close() | 2131 root_makefile.close() |
OLD | NEW |