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 generates makefiles suitable for inclusion into the Android build system | 7 # This generates makefiles suitable for inclusion into the Android build system |
8 # via an Android.mk file. It is based on make.py, the standard makefile | 8 # via an Android.mk file. It is based on make.py, the standard makefile |
9 # generator. | 9 # generator. |
10 # | 10 # |
(...skipping 20 matching lines...) Expand all Loading... | |
31 'INTERMEDIATE_DIR': '$(gyp_intermediate_dir)', | 31 'INTERMEDIATE_DIR': '$(gyp_intermediate_dir)', |
32 'SHARED_INTERMEDIATE_DIR': '$(gyp_shared_intermediate_dir)', | 32 'SHARED_INTERMEDIATE_DIR': '$(gyp_shared_intermediate_dir)', |
33 'PRODUCT_DIR': '$(gyp_shared_intermediate_dir)', | 33 'PRODUCT_DIR': '$(gyp_shared_intermediate_dir)', |
34 'SHARED_LIB_DIR': '$(builddir)/lib.$(TOOLSET)', | 34 'SHARED_LIB_DIR': '$(builddir)/lib.$(TOOLSET)', |
35 'LIB_DIR': '$(obj).$(TOOLSET)', | 35 'LIB_DIR': '$(obj).$(TOOLSET)', |
36 'RULE_INPUT_ROOT': '%(INPUT_ROOT)s', # This gets expanded by Python. | 36 'RULE_INPUT_ROOT': '%(INPUT_ROOT)s', # This gets expanded by Python. |
37 'RULE_INPUT_DIRNAME': '%(INPUT_DIRNAME)s', # This gets expanded by Python. | 37 'RULE_INPUT_DIRNAME': '%(INPUT_DIRNAME)s', # This gets expanded by Python. |
38 'RULE_INPUT_PATH': '$(RULE_SOURCES)', | 38 'RULE_INPUT_PATH': '$(RULE_SOURCES)', |
39 'RULE_INPUT_EXT': '$(suffix $<)', | 39 'RULE_INPUT_EXT': '$(suffix $<)', |
40 'RULE_INPUT_NAME': '$(notdir $<)', | 40 'RULE_INPUT_NAME': '$(notdir $<)', |
41 'CONFIGURATION_NAME': 'NOT_USED_ON_ANDROID', | |
bradn
2012/10/03 17:21:42
Is this actually getting referenced and emitted, o
Torne
2012/10/04 10:54:58
It's being referenced and emitted by targets that
| |
41 } | 42 } |
42 | 43 |
43 # Make supports multiple toolsets | 44 # Make supports multiple toolsets |
44 generator_supports_multiple_toolsets = True | 45 generator_supports_multiple_toolsets = True |
45 | 46 |
46 | 47 |
47 SHARED_FOOTER = """\ | 48 SHARED_FOOTER = """\ |
48 # "gyp_all_modules" is a concatenation of the "gyp_all_modules" targets from | 49 # "gyp_all_modules" is a concatenation of the "gyp_all_modules" targets from |
49 # all the included sub-makefiles. This is just here to clarify. | 50 # all the included sub-makefiles. This is just here to clarify. |
50 gyp_all_modules: | 51 gyp_all_modules: |
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1068 for include_file in sorted(include_list): | 1069 for include_file in sorted(include_list): |
1069 root_makefile.write('include $(LOCAL_PATH)/' + include_file + '\n') | 1070 root_makefile.write('include $(LOCAL_PATH)/' + include_file + '\n') |
1070 root_makefile.write('\n') | 1071 root_makefile.write('\n') |
1071 | 1072 |
1072 if generator_flags.get('auto_regeneration', True): | 1073 if generator_flags.get('auto_regeneration', True): |
1073 WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files) | 1074 WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files) |
1074 | 1075 |
1075 root_makefile.write(SHARED_FOOTER) | 1076 root_makefile.write(SHARED_FOOTER) |
1076 | 1077 |
1077 root_makefile.close() | 1078 root_makefile.close() |
OLD | NEW |