| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 "//build/win:default_exe_manifest", | 195 "//build/win:default_exe_manifest", |
| 196 ] | 196 ] |
| 197 } | 197 } |
| 198 | 198 |
| 199 config("yasm_warnings") { | 199 config("yasm_warnings") { |
| 200 if (is_clang) { | 200 if (is_clang) { |
| 201 cflags = [ | 201 cflags = [ |
| 202 # reg3264type in x86expr.c is unused. | 202 # reg3264type in x86expr.c is unused. |
| 203 "-Wno-unused-local-typedef", | 203 "-Wno-unused-local-typedef", |
| 204 ] | 204 ] |
| 205 } else if (is_linux) { |
| 206 cflags = [ |
| 207 # dosexe_objfmt_output ignores the return value of ftruncate. |
| 208 "-Wno-unused-result", |
| 209 ] |
| 205 } | 210 } |
| 206 } | 211 } |
| 207 | 212 |
| 208 executable("yasm") { | 213 executable("yasm") { |
| 209 sources = [ | 214 sources = [ |
| 210 "source/patched-yasm/frontends/yasm/yasm-options.c", | 215 "source/patched-yasm/frontends/yasm/yasm-options.c", |
| 211 "source/patched-yasm/frontends/yasm/yasm.c", | 216 "source/patched-yasm/frontends/yasm/yasm.c", |
| 212 "source/patched-yasm/libyasm/assocdat.c", | 217 "source/patched-yasm/libyasm/assocdat.c", |
| 213 "source/patched-yasm/libyasm/bc-align.c", | 218 "source/patched-yasm/libyasm/bc-align.c", |
| 214 "source/patched-yasm/libyasm/bc-data.c", | 219 "source/patched-yasm/libyasm/bc-data.c", |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 | 538 |
| 534 # Output eventually #included by source/patched-yasm/frontends/yasm/x86id.c | 539 # Output eventually #included by source/patched-yasm/frontends/yasm/x86id.c |
| 535 outputs = [ | 540 outputs = [ |
| 536 "$yasm_gen_include_dir/x86insns.c", | 541 "$yasm_gen_include_dir/x86insns.c", |
| 537 "$yasm_gen_include_dir/x86insn_gas.gperf", | 542 "$yasm_gen_include_dir/x86insn_gas.gperf", |
| 538 "$yasm_gen_include_dir/x86insn_nasm.gperf", | 543 "$yasm_gen_include_dir/x86insn_nasm.gperf", |
| 539 ] | 544 ] |
| 540 args = [ rebase_path(yasm_gen_include_dir, root_build_dir) ] | 545 args = [ rebase_path(yasm_gen_include_dir, root_build_dir) ] |
| 541 } | 546 } |
| 542 } | 547 } |
| OLD | NEW |