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

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

Issue 2301053002: GN: Introduce templates. (Closed)
Patch Set: Rebase 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/pc/BUILD.gn ('k') | webrtc/stats/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 2016 The WebRTC project authors. All Rights Reserved. 1 # Copyright 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 import("//build_overrides/webrtc.gni") 10 import("//build_overrides/webrtc.gni")
11 import("//build/config/mac/mac_sdk.gni") 11 import("//build/config/mac/mac_sdk.gni")
12 12
13 if (is_ios || (is_mac && mac_deployment_target == "10.7")) { 13 if (is_ios || (is_mac && mac_deployment_target == "10.7")) {
14 config("rtc_sdk_common_objc_config") { 14 config("rtc_sdk_common_objc_config") {
15 include_dirs = [ 15 include_dirs = [
16 "objc/Framework/Classes", 16 "objc/Framework/Classes",
17 "objc/Framework/Headers", 17 "objc/Framework/Headers",
18 ] 18 ]
19 } 19 }
20 20
21 source_set("rtc_sdk_common_objc") { 21 rtc_source_set("rtc_sdk_common_objc") {
22 deps = [ 22 deps = [
23 "../base:rtc_base", 23 "../base:rtc_base",
24 ] 24 ]
25 configs += [ 25 configs += [
26 "..:common_config", 26 "..:common_config",
27 "//build/config/compiler:enable_arc", 27 "//build/config/compiler:enable_arc",
28 ] 28 ]
29 public_configs = [ 29 public_configs = [
30 "..:common_inherited_config", 30 "..:common_inherited_config",
31 ":rtc_sdk_common_objc_config", 31 ":rtc_sdk_common_objc_config",
(...skipping 30 matching lines...) Expand all
62 libs = [ "AVFoundation.framework" ] 62 libs = [ "AVFoundation.framework" ]
63 } 63 }
64 if (!build_with_chromium) { 64 if (!build_with_chromium) {
65 sources += [ 65 sources += [
66 "objc/Framework/Classes/RTCFileLogger.mm", 66 "objc/Framework/Classes/RTCFileLogger.mm",
67 "objc/Framework/Headers/WebRTC/RTCFileLogger.h", 67 "objc/Framework/Headers/WebRTC/RTCFileLogger.h",
68 ] 68 ]
69 } 69 }
70 } 70 }
71 71
72 source_set("rtc_sdk_peerconnection_objc") { 72 rtc_source_set("rtc_sdk_peerconnection_objc") {
73 sources = [ 73 sources = [
74 "objc/Framework/Classes/RTCAVFoundationVideoSource+Private.h", 74 "objc/Framework/Classes/RTCAVFoundationVideoSource+Private.h",
75 "objc/Framework/Classes/RTCAVFoundationVideoSource.mm", 75 "objc/Framework/Classes/RTCAVFoundationVideoSource.mm",
76 "objc/Framework/Classes/RTCAudioSource+Private.h", 76 "objc/Framework/Classes/RTCAudioSource+Private.h",
77 "objc/Framework/Classes/RTCAudioSource.mm", 77 "objc/Framework/Classes/RTCAudioSource.mm",
78 "objc/Framework/Classes/RTCAudioTrack+Private.h", 78 "objc/Framework/Classes/RTCAudioTrack+Private.h",
79 "objc/Framework/Classes/RTCAudioTrack.mm", 79 "objc/Framework/Classes/RTCAudioTrack.mm",
80 "objc/Framework/Classes/RTCConfiguration+Private.h", 80 "objc/Framework/Classes/RTCConfiguration+Private.h",
81 "objc/Framework/Classes/RTCConfiguration.mm", 81 "objc/Framework/Classes/RTCConfiguration.mm",
82 "objc/Framework/Classes/RTCDataChannel+Private.h", 82 "objc/Framework/Classes/RTCDataChannel+Private.h",
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 configs += [ 188 configs += [
189 "..:common_objc", 189 "..:common_objc",
190 "//build/config/compiler:enable_arc", 190 "//build/config/compiler:enable_arc",
191 ] 191 ]
192 192
193 public_configs = [ ":rtc_sdk_common_objc_config" ] 193 public_configs = [ ":rtc_sdk_common_objc_config" ]
194 194
195 if (is_clang) { 195 if (is_clang) {
196 # Suppress warnings from the Chromium Clang plugins. 196 # Suppress warnings from the Chromium Clang plugins.
197 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 197 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
198 configs -= [ "//build/config/clang:find_bad_constructs" ] 198 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
199 } 199 }
200 200
201 libs += [ "AVFoundation.framework" ] 201 libs += [ "AVFoundation.framework" ]
202 202
203 deps = [ 203 deps = [
204 ":rtc_sdk_common_objc", 204 ":rtc_sdk_common_objc",
205 "../api:libjingle_peerconnection", 205 "../api:libjingle_peerconnection",
206 ] 206 ]
207 207
208 if (rtc_build_libyuv) { 208 if (rtc_build_libyuv) {
209 deps += [ "$rtc_libyuv_dir" ] 209 deps += [ "$rtc_libyuv_dir" ]
210 public_deps = [ 210 public_deps = [
211 "$rtc_libyuv_dir", 211 "$rtc_libyuv_dir",
212 ] 212 ]
213 } 213 }
214 } 214 }
215 215
216 # TODO(tkchin): Add the rtc_sdk_framework_objc target. 216 # TODO(tkchin): Add the rtc_sdk_framework_objc target.
217 } 217 }
OLDNEW
« no previous file with comments | « webrtc/pc/BUILD.gn ('k') | webrtc/stats/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698