Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: third_party/yasm/BUILD.gn

Issue 913373002: Update Chomium's build files to work w/ latest GN binaries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn_cpu_arch_changes
Patch Set: merge to #317214 Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 12 matching lines...) Expand all
23 # shared between yasm and the genperf subprogram. 23 # shared between yasm and the genperf subprogram.
24 # 4) genmacro, genmodule, etc. -- One executable target for each subprogram. 24 # 4) genmacro, genmodule, etc. -- One executable target for each subprogram.
25 # 5) generate_license, generate_module, etc. -- Actions that invoke programs 25 # 5) generate_license, generate_module, etc. -- Actions that invoke programs
26 # built in #4 to generate .c files. 26 # built in #4 to generate .c files.
27 # 6) compile_gperf, compile_re2c, etc. -- Actions that invoke programs that 27 # 6) compile_gperf, compile_re2c, etc. -- Actions that invoke programs that
28 # turn intermediate files into .c files. 28 # turn intermediate files into .c files.
29 29
30 if (current_toolchain == host_toolchain) { 30 if (current_toolchain == host_toolchain) {
31 # Various files referenced by multiple targets. 31 # Various files referenced by multiple targets.
32 yasm_gen_include_dir = "$target_gen_dir/include" 32 yasm_gen_include_dir = "$target_gen_dir/include"
33 yasm_os = os 33 config_makefile = "source/config/$host_os/Makefile"
34 if (is_chromeos) {
35 yasm_os = "linux"
36 }
37 config_makefile = "source/config/$yasm_os/Makefile"
38 version_file = "version.mac" 34 version_file = "version.mac"
39 35
40 import("//build/compiled_action.gni") 36 import("//build/compiled_action.gni")
41 37
42 config("yasm_config") { 38 config("yasm_config") {
43 include_dirs = [ 39 include_dirs = [
44 "source/config/$yasm_os", 40 "source/config/$host_os",
45 "source/patched-yasm", 41 "source/patched-yasm",
46 ] 42 ]
47 defines = [ "HAVE_CONFIG_H" ] 43 defines = [ "HAVE_CONFIG_H" ]
48 if (is_posix) { 44 if (is_posix) {
49 cflags = [ "-std=gnu99" ] 45 cflags = [ "-std=gnu99" ]
50 } 46 }
51 } 47 }
52 48
53 executable("genmacro") { 49 executable("genmacro") {
54 sources = [ 50 sources = [
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 463
468 # Output eventually #included by source/patched-yasm/frontends/yasm/x86id.c 464 # Output eventually #included by source/patched-yasm/frontends/yasm/x86id.c
469 outputs = [ 465 outputs = [
470 "$yasm_gen_include_dir/x86insns.c", 466 "$yasm_gen_include_dir/x86insns.c",
471 "$yasm_gen_include_dir/x86insn_gas.gperf", 467 "$yasm_gen_include_dir/x86insn_gas.gperf",
472 "$yasm_gen_include_dir/x86insn_nasm.gperf", 468 "$yasm_gen_include_dir/x86insn_nasm.gperf",
473 ] 469 ]
474 args = [ rebase_path(yasm_gen_include_dir, root_build_dir) ] 470 args = [ rebase_path(yasm_gen_include_dir, root_build_dir) ]
475 } 471 }
476 } 472 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698