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

Side by Side Diff: gn/BUILD.gn

Issue 2254733008: include extra_cflags* in the step description (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 Google Inc. 1 # Copyright 2016 Google Inc.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 declare_args() { 6 declare_args() {
7 ar = "ar" 7 ar = "ar"
8 cc = "cc" 8 cc = "cc"
9 cxx = "c++" 9 cxx = "c++"
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 lib_switch = "-l" 66 lib_switch = "-l"
67 lib_dir_switch = "-L" 67 lib_dir_switch = "-L"
68 68
69 tool("cc") { 69 tool("cc") {
70 depfile = "{{output}}.d" 70 depfile = "{{output}}.d"
71 command = "$cc -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{c flags_c}} $extra_cflags $extra_cflags_c -c {{source}} -o {{output}}" 71 command = "$cc -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{c flags_c}} $extra_cflags $extra_cflags_c -c {{source}} -o {{output}}"
72 depsformat = "gcc" 72 depsformat = "gcc"
73 outputs = [ 73 outputs = [
74 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.o", 74 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.o",
75 ] 75 ]
76 description = "$cc ... -o {{output}}" 76 description = "$cc ... $extra_cflags $extra_cflags_c -o {{output}}"
77 } 77 }
78 78
79 tool("cxx") { 79 tool("cxx") {
80 depfile = "{{output}}.d" 80 depfile = "{{output}}.d"
81 command = "$cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{ cflags_cc}} $extra_cflags $extra_cflags_cc -c {{source}} -o {{output}}" 81 command = "$cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{ cflags_cc}} $extra_cflags $extra_cflags_cc -c {{source}} -o {{output}}"
82 depsformat = "gcc" 82 depsformat = "gcc"
83 outputs = [ 83 outputs = [
84 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.o", 84 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.o",
85 ] 85 ]
86 description = "$cxx ... -o {{output}}" 86 description = "$cxx ... $extra_cflags $extra_cflags_cc -o {{output}}"
87 } 87 }
88 88
89 tool("asm") { 89 tool("asm") {
90 depfile = "{{output}}.d" 90 depfile = "{{output}}.d"
91 command = "$cc -MMD -MF $depfile {{defines}} {{include_dirs}} {{asmflags}} - c {{source}} -o {{output}}" 91 command = "$cc -MMD -MF $depfile {{defines}} {{include_dirs}} {{asmflags}} - c {{source}} -o {{output}}"
92 depsformat = "gcc" 92 depsformat = "gcc"
93 outputs = [ 93 outputs = [
94 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.o", 94 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.o",
95 ] 95 ]
96 description = "$cc ... -o {{output}}" 96 description = "$cc ... -o {{output}}"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 } 134 }
135 135
136 tool("stamp") { 136 tool("stamp") {
137 command = "touch {{output}}" 137 command = "touch {{output}}"
138 } 138 }
139 139
140 tool("copy") { 140 tool("copy") {
141 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" 141 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})"
142 } 142 }
143 } 143 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698