| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 deps = [ | 97 deps = [ |
| 98 ":yasm_utils", | 98 ":yasm_utils", |
| 99 "//build/config/sanitizers:deps", | 99 "//build/config/sanitizers:deps", |
| 100 | 100 |
| 101 # Default manifest on Windows (a no-op elsewhere). | 101 # Default manifest on Windows (a no-op elsewhere). |
| 102 "//build/win:default_exe_manifest", | 102 "//build/win:default_exe_manifest", |
| 103 ] | 103 ] |
| 104 } | 104 } |
| 105 | 105 |
| 106 # Used by both yasm and genperf binaries. | 106 # Used by both yasm and genperf binaries. |
| 107 source_set("yasm_utils") { | 107 static_library("yasm_utils") { |
| 108 sources = [ | 108 sources = [ |
| 109 "source/patched-yasm/libyasm/phash.c", | 109 "source/patched-yasm/libyasm/phash.c", |
| 110 "source/patched-yasm/libyasm/xmalloc.c", | 110 "source/patched-yasm/libyasm/xmalloc.c", |
| 111 "source/patched-yasm/libyasm/xstrdup.c", | 111 "source/patched-yasm/libyasm/xstrdup.c", |
| 112 ] | 112 ] |
| 113 | 113 |
| 114 configs -= [ "//build/config/compiler:chromium_code" ] | 114 configs -= [ "//build/config/compiler:chromium_code" ] |
| 115 configs += [ | 115 configs += [ |
| 116 ":yasm_config", | 116 ":yasm_config", |
| 117 "//build/config/compiler:no_chromium_code", | 117 "//build/config/compiler:no_chromium_code", |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 | 533 |
| 534 # Output eventually #included by source/patched-yasm/frontends/yasm/x86id.c | 534 # Output eventually #included by source/patched-yasm/frontends/yasm/x86id.c |
| 535 outputs = [ | 535 outputs = [ |
| 536 "$yasm_gen_include_dir/x86insns.c", | 536 "$yasm_gen_include_dir/x86insns.c", |
| 537 "$yasm_gen_include_dir/x86insn_gas.gperf", | 537 "$yasm_gen_include_dir/x86insn_gas.gperf", |
| 538 "$yasm_gen_include_dir/x86insn_nasm.gperf", | 538 "$yasm_gen_include_dir/x86insn_nasm.gperf", |
| 539 ] | 539 ] |
| 540 args = [ rebase_path(yasm_gen_include_dir, root_build_dir) ] | 540 args = [ rebase_path(yasm_gen_include_dir, root_build_dir) ] |
| 541 } | 541 } |
| 542 } | 542 } |
| OLD | NEW |