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

Side by Side Diff: gn/BUILD.gn

Issue 2197633002: GN: components as static library instead of source set (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 | gn/BUILDCONFIG.gn » ('j') | 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 depsformat = "gcc" 81 depsformat = "gcc"
82 outputs = [ 82 outputs = [
83 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.o", 83 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.o",
84 ] 84 ]
85 description = "$cc ... -o {{output}}" 85 description = "$cc ... -o {{output}}"
86 } 86 }
87 87
88 tool("alink") { 88 tool("alink") {
89 command = "rm -f {{output}} && $ar rcs {{output}} {{inputs}}" 89 command = "rm -f {{output}} && $ar rcs {{output}} {{inputs}}"
90 outputs = [ 90 outputs = [
91 "{{target_out_dir}}/{{target_output_name}}{{output_extension}}", 91 "{{root_out_dir}}/{{target_output_name}}{{output_extension}}",
92 ] 92 ]
93 default_output_extension = ".a" 93 default_output_extension = ".a"
94 output_prefix = "lib" 94 output_prefix = "lib"
95 description = "$ar {{output}} ..." 95 description = "$ar {{output}} ..."
96 } 96 }
97 97
98 tool("solink") { 98 tool("solink") {
99 soname = "{{target_output_name}}{{output_extension}}" 99 soname = "{{target_output_name}}{{output_extension}}"
100 100
101 rpath = "-Wl,-soname,$soname" 101 rpath = "-Wl,-soname,$soname"
(...skipping 19 matching lines...) Expand all
121 } 121 }
122 122
123 tool("stamp") { 123 tool("stamp") {
124 command = "touch {{output}}" 124 command = "touch {{output}}"
125 } 125 }
126 126
127 tool("copy") { 127 tool("copy") {
128 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" 128 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})"
129 } 129 }
130 } 130 }
OLDNEW
« no previous file with comments | « no previous file | gn/BUILDCONFIG.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698