summaryrefslogtreecommitdiffstats
path: root/third_party/yasm
diff options
context:
space:
mode:
authorscottmg <scottmg@chromium.org>2014-12-03 15:27:24 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-03 23:27:41 +0000
commit34fb7e5919ed42dc800acf3961fe6a2bf9e7d6eb (patch)
treedc6a3e4de8e3093074390b933e9d4cb0e79070f5 /third_party/yasm
parente00b5de3d64b4ea58797b13f42039956a5b3ddec (diff)
downloadchromium_src-34fb7e5919ed42dc800acf3961fe6a2bf9e7d6eb.zip
chromium_src-34fb7e5919ed42dc800acf3961fe6a2bf9e7d6eb.tar.gz
chromium_src-34fb7e5919ed42dc800acf3961fe6a2bf9e7d6eb.tar.bz2
gn format // (the rest, except mojo)
Excluded mojo because I think that needs to happen on the other side. At gn --version = 306668 for which roll is in CQ. R=brettw@chromium.org TBR=scherkus@chromium.org BUG=348474 Review URL: https://codereview.chromium.org/774353003 Cr-Commit-Position: refs/heads/master@{#306708}
Diffstat (limited to 'third_party/yasm')
-rw-r--r--third_party/yasm/BUILD.gn44
-rw-r--r--third_party/yasm/yasm_assemble.gni4
2 files changed, 36 insertions, 12 deletions
diff --git a/third_party/yasm/BUILD.gn b/third_party/yasm/BUILD.gn
index 3b2b884..cd9b453 100644
--- a/third_party/yasm/BUILD.gn
+++ b/third_party/yasm/BUILD.gn
@@ -285,7 +285,9 @@ if (current_toolchain == host_toolchain) {
"source/patched-yasm/modules/arch/x86/x86regtmod.gperf",
]
- outputs = [ "$target_gen_dir/{{source_name_part}}.c" ]
+ outputs = [
+ "$target_gen_dir/{{source_name_part}}.c",
+ ]
args = [
"{{source}}",
rebase_path(target_gen_dir, root_build_dir) + "/{{source_name_part}}.c",
@@ -309,7 +311,9 @@ if (current_toolchain == host_toolchain) {
"$yasm_gen_include_dir/x86insn_nasm.gperf",
]
- outputs = [ "$yasm_gen_include_dir/{{source_name_part}}.c" ]
+ outputs = [
+ "$yasm_gen_include_dir/{{source_name_part}}.c",
+ ]
args = [
"{{source}}",
rebase_path(yasm_gen_include_dir, root_build_dir) +
@@ -344,7 +348,9 @@ if (current_toolchain == host_toolchain) {
sources = [
"source/patched-yasm/modules/parsers/nasm/nasm-std.mac",
]
- outputs = [ "$yasm_gen_include_dir/nasm-macros.c" ]
+ outputs = [
+ "$yasm_gen_include_dir/nasm-macros.c",
+ ]
macro_varname = "nasm_standard_mac"
}
@@ -354,7 +360,9 @@ if (current_toolchain == host_toolchain) {
sources = [
"$target_gen_dir/$version_file",
]
- outputs = [ "$yasm_gen_include_dir/nasm-version.c" ]
+ outputs = [
+ "$yasm_gen_include_dir/nasm-version.c",
+ ]
macro_varname = "nasm_version_mac"
deps = [
":generate_version",
@@ -366,7 +374,9 @@ if (current_toolchain == host_toolchain) {
sources = [
"source/patched-yasm/modules/objfmts/coff/win64-gas.mac",
]
- outputs = [ "$yasm_gen_include_dir/win64-gas.c" ]
+ outputs = [
+ "$yasm_gen_include_dir/win64-gas.c",
+ ]
macro_varname = "win64_gas_stdmac"
}
@@ -375,7 +385,9 @@ if (current_toolchain == host_toolchain) {
sources = [
"source/patched-yasm/modules/objfmts/coff/win64-nasm.mac",
]
- outputs = [ "$yasm_gen_include_dir/win64-nasm.c" ]
+ outputs = [
+ "$yasm_gen_include_dir/win64-nasm.c",
+ ]
macro_varname = "win64_nasm_stdmac"
}
@@ -385,7 +397,9 @@ if (current_toolchain == host_toolchain) {
"source/patched-yasm/modules/parsers/gas/gas-token.re",
"source/patched-yasm/modules/parsers/nasm/nasm-token.re",
]
- outputs = [ "$target_gen_dir/{{source_name_part}}.c" ]
+ outputs = [
+ "$target_gen_dir/{{source_name_part}}.c",
+ ]
args = [
"-b",
"-o",
@@ -400,7 +414,9 @@ if (current_toolchain == host_toolchain) {
inputs = [
"source/patched-yasm/modules/arch/lc3b/lc3bid.re",
]
- outputs = [ "$target_gen_dir/lc3bid.c" ]
+ outputs = [
+ "$target_gen_dir/lc3bid.c",
+ ]
args = [
"-s",
"-o",
@@ -416,7 +432,9 @@ if (current_toolchain == host_toolchain) {
inputs = [
"source/patched-yasm/COPYING",
]
- outputs = [ "$yasm_gen_include_dir/license.c" ]
+ outputs = [
+ "$yasm_gen_include_dir/license.c",
+ ]
args = [
"license_msg",
rebase_path(outputs[0], root_build_dir),
@@ -430,7 +448,9 @@ if (current_toolchain == host_toolchain) {
"source/patched-yasm/libyasm/module.in",
config_makefile,
]
- outputs = [ "$target_gen_dir/module.c" ]
+ outputs = [
+ "$target_gen_dir/module.c",
+ ]
args = [
rebase_path(inputs[0], root_build_dir),
rebase_path(config_makefile, root_build_dir),
@@ -440,7 +460,9 @@ if (current_toolchain == host_toolchain) {
compiled_action("generate_version") {
tool = ":genversion"
- outputs = [ "$target_gen_dir/$version_file" ]
+ outputs = [
+ "$target_gen_dir/$version_file",
+ ]
args = [ rebase_path(outputs[0], root_build_dir) ]
}
diff --git a/third_party/yasm/yasm_assemble.gni b/third_party/yasm/yasm_assemble.gni
index fdbf624..56d7e11a 100644
--- a/third_party/yasm/yasm_assemble.gni
+++ b/third_party/yasm/yasm_assemble.gni
@@ -172,7 +172,9 @@ template("yasm_assemble") {
# exactly duplicate the naming and location of object files from the
# native build, which would be:
# "$root_out_dir/${target_name}.{{source_dir_part}}.$asm_obj_extension"
- outputs = [ "$target_out_dir/{{source_name_part}}.o" ]
+ outputs = [
+ "$target_out_dir/{{source_name_part}}.o",
+ ]
args += [
"-o",
rebase_path(outputs[0], root_build_dir),