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 25 matching lines...) Expand all Loading... |
36 'source/patched-yasm', | 36 'source/patched-yasm', |
37 ], | 37 ], |
38 | 38 |
39 # The cflags used by any target that will be directly linked into yasm. | 39 # The cflags used by any target that will be directly linked into yasm. |
40 # These are specifically not used when building the subprograms. While | 40 # These are specifically not used when building the subprograms. While |
41 # it would probably be safe to use these flags there as well, the | 41 # it would probably be safe to use these flags there as well, the |
42 # ./configure based build does not use the same flags between the main | 42 # ./configure based build does not use the same flags between the main |
43 # yasm executable, and its subprograms. | 43 # yasm executable, and its subprograms. |
44 'yasm_defines': ['HAVE_CONFIG_H'], | 44 'yasm_defines': ['HAVE_CONFIG_H'], |
45 'yasm_cflags': [ | 45 'yasm_cflags': [ |
46 '-std=gnu99', | 46 '-std=c89', |
47 '-ansi', | |
48 '-pedantic', | 47 '-pedantic', |
49 ], | 48 ], |
50 | 49 |
51 # Locations for various generated artifacts. | 50 # Locations for various generated artifacts. |
52 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/yasm', | 51 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/yasm', |
53 'generated_dir': '<(INTERMEDIATE_DIR)/third_party/yasm', | 52 'generated_dir': '<(INTERMEDIATE_DIR)/third_party/yasm', |
54 | 53 |
55 # Various files referenced by multiple targets. | 54 # Various files referenced by multiple targets. |
56 'version_file': 'version.mac', # Generated by genversion. | 55 'version_file': 'version.mac', # Generated by genversion. |
57 'genmodule_source': 'genmodule_outfile.c', | 56 'genmodule_source': 'genmodule_outfile.c', |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 'include_dirs': [ | 580 'include_dirs': [ |
582 '<@(yasm_include_dirs)', | 581 '<@(yasm_include_dirs)', |
583 | 582 |
584 ], | 583 ], |
585 'cflags': [ | 584 'cflags': [ |
586 '-std=gnu99', | 585 '-std=gnu99', |
587 ], | 586 ], |
588 }, | 587 }, |
589 ], | 588 ], |
590 } | 589 } |
OLD | NEW |