OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 ] | 280 ] |
281 | 281 |
282 # Yasm generates a bunch of .c files which its source file #include. | 282 # Yasm generates a bunch of .c files which its source file #include. |
283 # Add the |target_gen_dir| into the include path so it can find them. | 283 # Add the |target_gen_dir| into the include path so it can find them. |
284 # Ideally, these generated .c files would be placed into a separate | 284 # Ideally, these generated .c files would be placed into a separate |
285 # directory, but the gen_x86_insn.py script does not make this easy. | 285 # directory, but the gen_x86_insn.py script does not make this easy. |
286 include_dirs = [ yasm_gen_include_dir ] | 286 include_dirs = [ yasm_gen_include_dir ] |
287 | 287 |
288 if (!is_win) { | 288 if (!is_win) { |
289 cflags = [ | 289 cflags = [ |
290 "-ansi", | 290 "-std=c89", |
291 "-pedantic", | 291 "-pedantic", |
292 ] | 292 ] |
293 } | 293 } |
294 | 294 |
295 # TODO(ajwong): This should take most of the generated output as | 295 # TODO(ajwong): This should take most of the generated output as |
296 # inputs. | 296 # inputs. |
297 deps = [ | 297 deps = [ |
298 ":compile_gperf", | 298 ":compile_gperf", |
299 ":compile_gperf_for_include", | 299 ":compile_gperf_for_include", |
300 ":compile_nasm_macros", | 300 ":compile_nasm_macros", |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 | 504 |
505 # Output eventually #included by source/patched-yasm/frontends/yasm/x86id.c | 505 # Output eventually #included by source/patched-yasm/frontends/yasm/x86id.c |
506 outputs = [ | 506 outputs = [ |
507 "$yasm_gen_include_dir/x86insns.c", | 507 "$yasm_gen_include_dir/x86insns.c", |
508 "$yasm_gen_include_dir/x86insn_gas.gperf", | 508 "$yasm_gen_include_dir/x86insn_gas.gperf", |
509 "$yasm_gen_include_dir/x86insn_nasm.gperf", | 509 "$yasm_gen_include_dir/x86insn_nasm.gperf", |
510 ] | 510 ] |
511 args = [ rebase_path(yasm_gen_include_dir, root_build_dir) ] | 511 args = [ rebase_path(yasm_gen_include_dir, root_build_dir) ] |
512 } | 512 } |
513 } | 513 } |
OLD | NEW |