| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. 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 # The yasm build process creates a slew of small C subprograms that | 5 # The yasm build process creates a slew of small C subprograms that |
| 6 # dynamically generate files at various point in the build process. This makes | 6 # dynamically generate files at various point in the build process. This makes |
| 7 # the build integration moderately complex. | 7 # the build integration moderately complex. |
| 8 # | 8 # |
| 9 # There are three classes of dynamically generated files: | 9 # There are three classes of dynamically generated files: |
| 10 # 1) C source files that should be included in the build (eg., lc3bid.c) | 10 # 1) C source files that should be included in the build (eg., lc3bid.c) |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 ], | 49 ], |
| 50 | 50 |
| 51 # Locations for various generated artifacts. | 51 # Locations for various generated artifacts. |
| 52 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/yasm', | 52 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/yasm', |
| 53 'generated_dir': '<(INTERMEDIATE_DIR)/third_party/yasm', | 53 'generated_dir': '<(INTERMEDIATE_DIR)/third_party/yasm', |
| 54 | 54 |
| 55 # Various files referenced by multiple targets. | 55 # Various files referenced by multiple targets. |
| 56 'version_file': 'version.mac', # Generated by genversion. | 56 'version_file': 'version.mac', # Generated by genversion. |
| 57 'genmodule_source': 'genmodule_outfile.c', | 57 'genmodule_source': 'genmodule_outfile.c', |
| 58 }, | 58 }, |
| 59 'target_defaults': { |
| 60 # Silence warnings in libc++ builds (C code doesn't need this flag). |
| 61 'ldflags!': [ '-stdlib=libc++', ], |
| 62 }, |
| 59 'targets': [ | 63 'targets': [ |
| 60 { | 64 { |
| 61 'target_name': 'yasm', | 65 'target_name': 'yasm', |
| 62 'type': 'executable', | 66 'type': 'executable', |
| 63 'toolsets': ['host'], | 67 'toolsets': ['host'], |
| 64 'dependencies': [ | 68 'dependencies': [ |
| 65 'config_sources', | 69 'config_sources', |
| 66 'genmacro', | 70 'genmacro', |
| 67 'genmodule', | 71 'genmodule', |
| 68 'genperf', | 72 'genperf', |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 'include_dirs': [ | 572 'include_dirs': [ |
| 569 '<@(yasm_include_dirs)', | 573 '<@(yasm_include_dirs)', |
| 570 | 574 |
| 571 ], | 575 ], |
| 572 'cflags': [ | 576 'cflags': [ |
| 573 '-std=gnu99', | 577 '-std=gnu99', |
| 574 ], | 578 ], |
| 575 }, | 579 }, |
| 576 ], | 580 ], |
| 577 } | 581 } |
| OLD | NEW |