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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 make.ensure_directory_exists(output_filename) | 136 make.ensure_directory_exists(output_filename) |
137 | 137 |
138 self.fp = open(output_filename, 'w') | 138 self.fp = open(output_filename, 'w') |
139 | 139 |
140 self.fp.write(header) | 140 self.fp.write(header) |
141 | 141 |
142 self.qualified_target = qualified_target | 142 self.qualified_target = qualified_target |
143 self.path = base_path | 143 self.path = base_path |
144 self.target = spec['target_name'] | 144 self.target = spec['target_name'] |
145 self.type = spec['type'] | 145 self.type = spec['type'] |
| 146 if self.type == 'standalone_static_library': |
| 147 self.type = 'static_library' |
146 self.toolset = spec['toolset'] | 148 self.toolset = spec['toolset'] |
147 | 149 |
148 deps, link_deps = self.ComputeDeps(spec) | 150 deps, link_deps = self.ComputeDeps(spec) |
149 | 151 |
150 # Some of the generation below can add extra output, sources, or | 152 # Some of the generation below can add extra output, sources, or |
151 # link dependencies. All of the out params of the functions that | 153 # link dependencies. All of the out params of the functions that |
152 # follow use names like extra_foo. | 154 # follow use names like extra_foo. |
153 extra_outputs = [] | 155 extra_outputs = [] |
154 extra_sources = [] | 156 extra_sources = [] |
155 | 157 |
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1068 for include_file in sorted(include_list): | 1070 for include_file in sorted(include_list): |
1069 root_makefile.write('include $(LOCAL_PATH)/' + include_file + '\n') | 1071 root_makefile.write('include $(LOCAL_PATH)/' + include_file + '\n') |
1070 root_makefile.write('\n') | 1072 root_makefile.write('\n') |
1071 | 1073 |
1072 if generator_flags.get('auto_regeneration', True): | 1074 if generator_flags.get('auto_regeneration', True): |
1073 WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files) | 1075 WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files) |
1074 | 1076 |
1075 root_makefile.write(SHARED_FOOTER) | 1077 root_makefile.write(SHARED_FOOTER) |
1076 | 1078 |
1077 root_makefile.close() | 1079 root_makefile.close() |
OLD | NEW |