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 """This is a simplified Makefile generator for single-target gyp files. | 5 """This is a simplified Makefile generator for single-target gyp files. |
6 It was originally designed for generating readable Makefiles for the | 6 It was originally designed for generating readable Makefiles for the |
7 the NaCL examples. | 7 the NaCL examples. |
8 """ | 8 """ |
9 | 9 |
10 # pylint: disable=C0301 | 10 # pylint: disable=C0301 |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 'all_configs': ' '.join(target_info['configurations'].keys()), | 287 'all_configs': ' '.join(target_info['configurations'].keys()), |
288 } | 288 } |
289 | 289 |
290 params.update(settings_map) | 290 params.update(settings_map) |
291 makefile.write(preamble % params) | 291 makefile.write(preamble % params) |
292 | 292 |
293 for target_info in target_dicts.values(): | 293 for target_info in target_dicts.values(): |
294 WriteTarget(makefile, target_info) | 294 WriteTarget(makefile, target_info) |
295 | 295 |
296 makefile.write(''' | 296 makefile.write(''' |
297 # include (if they exists) the .d dependancy files that the compiler generates | 297 # include (if they exists) the .d dependency files that the compiler generates |
298 -include $(DEPFILES) | 298 -include $(DEPFILES) |
299 | 299 |
300 endif | 300 endif |
301 ''') | 301 ''') |
302 | 302 |
303 makefile.close() | 303 makefile.close() |
OLD | NEW |