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

Side by Side Diff: webrtc/build/webrtc.gni

Issue 2325603002: GN Templates: Introduce rtc_shared_library (Closed)
Patch Set: Created 4 years, 3 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 | « webrtc/api/BUILD.gn ('k') | 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 (c) 2014 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source 4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 import("//build/config/arm.gni") 9 import("//build/config/arm.gni")
10 import("//build/config/features.gni") 10 import("//build/config/features.gni")
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 set_defaults("rtc_executable") { 198 set_defaults("rtc_executable") {
199 configs = rtc_add_configs 199 configs = rtc_add_configs
200 suppressed_configs = [] 200 suppressed_configs = []
201 } 201 }
202 202
203 set_defaults("rtc_static_library") { 203 set_defaults("rtc_static_library") {
204 configs = rtc_add_configs 204 configs = rtc_add_configs
205 suppressed_configs = [] 205 suppressed_configs = []
206 } 206 }
207 207
208 set_defaults("rtc_shared_library") {
209 configs = rtc_add_configs
210 suppressed_configs = []
211 }
212
208 template("rtc_test") { 213 template("rtc_test") {
209 test(target_name) { 214 test(target_name) {
210 forward_variables_from(invoker, 215 forward_variables_from(invoker,
211 "*", 216 "*",
212 [ 217 [
213 "configs", 218 "configs",
214 "public_configs", 219 "public_configs",
215 "suppressed_configs", 220 "suppressed_configs",
216 ]) 221 ])
217 configs += invoker.configs 222 configs += invoker.configs
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 ]) 283 ])
279 configs += invoker.configs 284 configs += invoker.configs
280 configs -= rtc_remove_configs 285 configs -= rtc_remove_configs
281 configs -= invoker.suppressed_configs 286 configs -= invoker.suppressed_configs
282 public_configs = [ rtc_common_inherited_config ] 287 public_configs = [ rtc_common_inherited_config ]
283 if (defined(invoker.public_configs)) { 288 if (defined(invoker.public_configs)) {
284 public_configs += invoker.public_configs 289 public_configs += invoker.public_configs
285 } 290 }
286 } 291 }
287 } 292 }
293
294 template("rtc_shared_library") {
295 shared_library(target_name) {
296 forward_variables_from(invoker,
297 "*",
298 [
299 "configs",
300 "public_configs",
301 "suppressed_configs",
302 ])
303 configs += invoker.configs
304 configs -= rtc_remove_configs
305 configs -= invoker.suppressed_configs
306 public_configs = [ rtc_common_inherited_config ]
307 if (defined(invoker.public_configs)) {
308 public_configs += invoker.public_configs
309 }
310 }
311 }
OLDNEW
« no previous file with comments | « webrtc/api/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698