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

Side by Side Diff: webrtc/examples/BUILD.gn

Issue 2361623004: GN: Change rtc_source_set targets --> rtc_static_library (Closed)
Patch Set: Restored accidental rebase errors. Created 4 years, 2 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/common_video/BUILD.gn ('k') | webrtc/libjingle/xmllite/BUILD.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 (c) 2016 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2016 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/webrtc.gni") 9 import("../build/webrtc.gni")
10 if (is_android) { 10 if (is_android) {
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 # when moving from ios_deployment_target 7.0 to 9.0. 114 # when moving from ios_deployment_target 7.0 to 9.0.
115 # See webrtc:5549 for more details. 115 # See webrtc:5549 for more details.
116 cflags = [ "-Wno-deprecated-declarations" ] 116 cflags = [ "-Wno-deprecated-declarations" ]
117 } 117 }
118 } 118 }
119 119
120 config("apprtc_common_config") { 120 config("apprtc_common_config") {
121 include_dirs = [ "objc/AppRTCDemo/common" ] 121 include_dirs = [ "objc/AppRTCDemo/common" ]
122 } 122 }
123 123
124 rtc_source_set("apprtc_common") { 124 rtc_static_library("apprtc_common") {
125 sources = [ 125 sources = [
126 "objc/AppRTCDemo/common/ARDUtilities.h", 126 "objc/AppRTCDemo/common/ARDUtilities.h",
127 "objc/AppRTCDemo/common/ARDUtilities.m", 127 "objc/AppRTCDemo/common/ARDUtilities.m",
128 ] 128 ]
129 configs += [ 129 configs += [
130 ":warnings_config", 130 ":warnings_config",
131 "//build/config/compiler:enable_arc", 131 "//build/config/compiler:enable_arc",
132 ] 132 ]
133 public_configs = [ ":apprtc_common_config" ] 133 public_configs = [ ":apprtc_common_config" ]
134 134
(...skipping 12 matching lines...) Expand all
147 # cannot be on the target directly. 147 # cannot be on the target directly.
148 cflags = [ 148 cflags = [
149 "-Wno-sign-compare", 149 "-Wno-sign-compare",
150 "-Wno-unused-variable", 150 "-Wno-unused-variable",
151 ] 151 ]
152 if (is_mac) { 152 if (is_mac) {
153 cflags += [ "-Wno-partial-availability" ] 153 cflags += [ "-Wno-partial-availability" ]
154 } 154 }
155 } 155 }
156 156
157 rtc_source_set("apprtc_signaling") { 157 rtc_static_library("apprtc_signaling") {
158 sources = [ 158 sources = [
159 "objc/AppRTCDemo/ARDAppClient+Internal.h", 159 "objc/AppRTCDemo/ARDAppClient+Internal.h",
160 "objc/AppRTCDemo/ARDAppClient.h", 160 "objc/AppRTCDemo/ARDAppClient.h",
161 "objc/AppRTCDemo/ARDAppClient.m", 161 "objc/AppRTCDemo/ARDAppClient.m",
162 "objc/AppRTCDemo/ARDAppEngineClient.h", 162 "objc/AppRTCDemo/ARDAppEngineClient.h",
163 "objc/AppRTCDemo/ARDAppEngineClient.m", 163 "objc/AppRTCDemo/ARDAppEngineClient.m",
164 "objc/AppRTCDemo/ARDBitrateTracker.h", 164 "objc/AppRTCDemo/ARDBitrateTracker.h",
165 "objc/AppRTCDemo/ARDBitrateTracker.m", 165 "objc/AppRTCDemo/ARDBitrateTracker.m",
166 "objc/AppRTCDemo/ARDCEODTURNClient.h", 166 "objc/AppRTCDemo/ARDCEODTURNClient.h",
167 "objc/AppRTCDemo/ARDCEODTURNClient.m", 167 "objc/AppRTCDemo/ARDCEODTURNClient.m",
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 "objc/AppRTCDemo/ios/resources/mozart.mp3", 263 "objc/AppRTCDemo/ios/resources/mozart.mp3",
264 "objc/Icon.png", 264 "objc/Icon.png",
265 ] 265 ]
266 outputs = [ 266 outputs = [
267 "{{bundle_resources_dir}}/{{source_file_part}}", 267 "{{bundle_resources_dir}}/{{source_file_part}}",
268 ] 268 ]
269 } 269 }
270 } 270 }
271 271
272 if (is_mac) { 272 if (is_mac) {
273 rtc_source_set("AppRTCDemo_app") { 273 rtc_static_library("AppRTCDemo_app") {
274 sources = [ 274 sources = [
275 "objc/AppRTCDemo/mac/APPRTCAppDelegate.h", 275 "objc/AppRTCDemo/mac/APPRTCAppDelegate.h",
276 "objc/AppRTCDemo/mac/APPRTCAppDelegate.m", 276 "objc/AppRTCDemo/mac/APPRTCAppDelegate.m",
277 "objc/AppRTCDemo/mac/APPRTCViewController.h", 277 "objc/AppRTCDemo/mac/APPRTCViewController.h",
278 "objc/AppRTCDemo/mac/APPRTCViewController.m", 278 "objc/AppRTCDemo/mac/APPRTCViewController.m",
279 ] 279 ]
280 configs += [ 280 configs += [
281 "..:common_objc", 281 "..:common_objc",
282 "//build/config/compiler:enable_arc", 282 "//build/config/compiler:enable_arc",
283 ] 283 ]
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 # Hide the warning for SecRandomCopyBytes(), until we update to upstream. 331 # Hide the warning for SecRandomCopyBytes(), until we update to upstream.
332 # https://bugs.chromium.org/p/webrtc/issues/detail?id=6396 332 # https://bugs.chromium.org/p/webrtc/issues/detail?id=6396
333 "-Wno-unused-result", 333 "-Wno-unused-result",
334 ] 334 ]
335 335
336 if (is_mac) { 336 if (is_mac) {
337 cflags += [ "-Wno-partial-availability" ] 337 cflags += [ "-Wno-partial-availability" ]
338 } 338 }
339 } 339 }
340 340
341 rtc_source_set("socketrocket") { 341 rtc_static_library("socketrocket") {
342 sources = [ 342 sources = [
343 "objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.h", 343 "objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.h",
344 "objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.m", 344 "objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.m",
345 ] 345 ]
346 configs += [ 346 configs += [
347 "//build/config/compiler:enable_arc", 347 "//build/config/compiler:enable_arc",
348 ":socketrocket_warning_config", 348 ":socketrocket_warning_config",
349 ] 349 ]
350 public_configs = [ ":socketrocket_include_config" ] 350 public_configs = [ ":socketrocket_include_config" ]
351 351
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 "//webrtc/system_wrappers:field_trial_default", 512 "//webrtc/system_wrappers:field_trial_default",
513 "//webrtc/system_wrappers:metrics_default", 513 "//webrtc/system_wrappers:metrics_default",
514 ] 514 ]
515 if (is_clang) { 515 if (is_clang) {
516 # Suppress warnings from the Chromium Clang plugin. 516 # Suppress warnings from the Chromium Clang plugin.
517 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 517 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
518 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 518 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
519 } 519 }
520 } 520 }
521 } 521 }
OLDNEW
« no previous file with comments | « webrtc/common_video/BUILD.gn ('k') | webrtc/libjingle/xmllite/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698