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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 'WARNING_CFLAGS': [ | 164 'WARNING_CFLAGS': [ |
165 # yasm passes a `const elf_machine_sym*` through `void*`. | 165 # yasm passes a `const elf_machine_sym*` through `void*`. |
166 '-Wno-incompatible-pointer-types', | 166 '-Wno-incompatible-pointer-types', |
167 ], | 167 ], |
168 }, | 168 }, |
169 'cflags': [ | 169 'cflags': [ |
170 '-Wno-incompatible-pointer-types', | 170 '-Wno-incompatible-pointer-types', |
171 ], | 171 ], |
172 }], | 172 }], |
173 ], | 173 ], |
| 174 'msvs_disabled_warnings': [ 4267 ], |
174 'rules': [ | 175 'rules': [ |
175 { | 176 { |
176 'rule_name': 'generate_gperf', | 177 'rule_name': 'generate_gperf', |
177 'extension': 'gperf', | 178 'extension': 'gperf', |
178 'inputs': [ '<(PRODUCT_DIR)/' | 179 'inputs': [ '<(PRODUCT_DIR)/' |
179 '<(EXECUTABLE_PREFIX)genperf<(EXECUTABLE_SUFFIX)' ], | 180 '<(EXECUTABLE_PREFIX)genperf<(EXECUTABLE_SUFFIX)' ], |
180 'outputs': [ | 181 'outputs': [ |
181 '<(generated_dir)/<(RULE_INPUT_ROOT).c', | 182 '<(generated_dir)/<(RULE_INPUT_ROOT).c', |
182 ], | 183 ], |
183 'action': ['<(PRODUCT_DIR)/genperf', | 184 'action': ['<(PRODUCT_DIR)/genperf', |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 'WARNING_CFLAGS': [ | 547 'WARNING_CFLAGS': [ |
547 # re2c is missing CLOSEVOP from one switch. | 548 # re2c is missing CLOSEVOP from one switch. |
548 '-Wno-switch', | 549 '-Wno-switch', |
549 ], | 550 ], |
550 }, | 551 }, |
551 'cflags': [ | 552 'cflags': [ |
552 '-Wno-switch', | 553 '-Wno-switch', |
553 ], | 554 ], |
554 }], | 555 }], |
555 ], | 556 ], |
| 557 'msvs_disabled_warnings': [ 4267 ], |
556 }, | 558 }, |
557 { | 559 { |
558 'target_name': 'genmodule', | 560 'target_name': 'genmodule', |
559 'type': 'executable', | 561 'type': 'executable', |
560 'toolsets': ['host'], | 562 'toolsets': ['host'], |
561 'dependencies': [ | 563 'dependencies': [ |
562 'config_sources', | 564 'config_sources', |
563 ], | 565 ], |
564 'sources': [ | 566 'sources': [ |
565 'source/patched-yasm/libyasm/genmodule.c', | 567 'source/patched-yasm/libyasm/genmodule.c', |
566 ], | 568 ], |
567 'include_dirs': [ | 569 'include_dirs': [ |
568 '<@(yasm_include_dirs)', | 570 '<@(yasm_include_dirs)', |
569 | 571 |
570 ], | 572 ], |
571 'cflags': [ | 573 'cflags': [ |
572 '-std=gnu99', | 574 '-std=gnu99', |
573 ], | 575 ], |
574 }, | 576 }, |
575 ], | 577 ], |
576 } | 578 } |
OLD | NEW |