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

Side by Side Diff: BUILD.gn

Issue 1320643004: Removing unneeded webrtc dependencies on iOS. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc/trunk/webrtc.git@master
Patch Set: git-cl owners Created 5 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 | « no previous file | base/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) 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 # TODO(kjellander): Rebase this to webrtc/build/common.gypi changes after r6330. 9 # TODO(kjellander): Rebase this to webrtc/build/common.gypi changes after r6330.
10 10
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 # The Android NDK doesn"t provide optimized versions of these 157 # The Android NDK doesn"t provide optimized versions of these
158 # functions. Ensure they are disabled for all compilers. 158 # functions. Ensure they are disabled for all compilers.
159 cflags += [ 159 cflags += [
160 "-fno-builtin-cos", 160 "-fno-builtin-cos",
161 "-fno-builtin-sin", 161 "-fno-builtin-sin",
162 "-fno-builtin-cosf", 162 "-fno-builtin-cosf",
163 "-fno-builtin-sinf", 163 "-fno-builtin-sinf",
164 ] 164 ]
165 } 165 }
166 } 166 }
167 if (!is_ios) {
168 source_set("webrtc") {
169 sources = [
170 "call.h",
171 "config.h",
172 "frame_callback.h",
173 "transport.h",
174 ]
167 175
168 source_set("webrtc") { 176 defines = []
169 sources = [ 177 configs += [ ":common_config" ]
170 "call.h", 178 public_configs = [ ":common_inherited_config" ]
171 "config.h",
172 "frame_callback.h",
173 "transport.h",
174 ]
175 179
176 defines = [] 180 deps = [
177 configs += [ ":common_config" ] 181 ":webrtc_common",
178 public_configs = [ ":common_inherited_config" ] 182 "base:rtc_base",
183 "common_audio",
184 "common_video",
185 "modules/audio_coding",
186 "modules/audio_conference_mixer",
187 "modules/audio_device",
188 "modules/audio_processing",
189 "modules/bitrate_controller",
190 "modules/desktop_capture",
191 "modules/media_file",
192 "modules/rtp_rtcp",
193 "modules/utility",
194 "modules/video_coding",
195 "modules/video_processing",
196 "system_wrappers",
197 "tools",
198 "video",
199 "voice_engine",
200 ]
179 201
180 deps = [ 202 if (build_with_chromium) {
181 ":webrtc_common", 203 deps += [
182 "base:rtc_base", 204 "modules/video_capture",
183 "common_audio", 205 "modules/video_render",
184 "common_video", 206 ]
185 "modules/audio_coding", 207 }
186 "modules/audio_conference_mixer",
187 "modules/audio_device",
188 "modules/audio_processing",
189 "modules/bitrate_controller",
190 "modules/desktop_capture",
191 "modules/media_file",
192 "modules/rtp_rtcp",
193 "modules/utility",
194 "modules/video_coding",
195 "modules/video_processing",
196 "system_wrappers",
197 "tools",
198 "video",
199 "voice_engine",
200 ]
201 208
202 if (build_with_chromium) { 209 if (rtc_enable_protobuf) {
203 deps += [ 210 defines += [ "ENABLE_RTC_EVENT_LOG" ]
204 "modules/video_capture", 211 deps += [ ":rtc_event_log_proto" ]
205 "modules/video_render", 212 }
206 ]
207 }
208
209 if (rtc_enable_protobuf) {
210 defines += [ "ENABLE_RTC_EVENT_LOG" ]
211 deps += [ ":rtc_event_log_proto" ]
212 } 213 }
213 } 214 }
214 215
215 if (!build_with_chromium) { 216 if (!build_with_chromium) {
216 executable("webrtc_tests") { 217 executable("webrtc_tests") {
217 testonly = true 218 testonly = true
218 deps = [ 219 deps = [
219 ":webrtc", 220 ":webrtc",
220 "modules/video_render:video_render_internal_impl", 221 "modules/video_render:video_render_internal_impl",
221 "modules/video_capture:video_capture_internal_impl", 222 "modules/video_capture:video_capture_internal_impl",
(...skipping 15 matching lines...) Expand all
237 configs += [ ":common_config" ] 238 configs += [ ":common_config" ]
238 public_configs = [ ":common_inherited_config" ] 239 public_configs = [ ":common_inherited_config" ]
239 } 240 }
240 241
241 source_set("gtest_prod") { 242 source_set("gtest_prod") {
242 sources = [ 243 sources = [
243 "test/testsupport/gtest_prod_util.h", 244 "test/testsupport/gtest_prod_util.h",
244 ] 245 ]
245 } 246 }
246 247
247 if (rtc_enable_protobuf) { 248 if (!is_ios) {
248 proto_library("rtc_event_log_proto") { 249 if (rtc_enable_protobuf) {
250 proto_library("rtc_event_log_proto") {
251 sources = [
252 "video/rtc_event_log.proto",
253 ]
254 proto_out_dir = "webrtc/video"
255 }
256 }
257
258 source_set("rtc_event_log") {
249 sources = [ 259 sources = [
250 "video/rtc_event_log.proto", 260 "video/rtc_event_log.cc",
261 "video/rtc_event_log.h",
251 ] 262 ]
252 proto_out_dir = "webrtc/video" 263
264 defines = []
265 configs += [ ":common_config" ]
266 public_configs = [ ":common_inherited_config" ]
267
268 deps = [
269 ":webrtc_common",
270 ]
271
272 if (rtc_enable_protobuf) {
273 defines += [ "ENABLE_RTC_EVENT_LOG" ]
274 deps += [ ":rtc_event_log_proto" ]
275 }
276 if (is_clang && !is_nacl) {
277 # Suppress warnings from Chrome's Clang plugins.
278 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
279 configs -= [ "//build/config/clang:find_bad_constructs" ]
280 }
253 } 281 }
254 } 282 }
255
256 source_set("rtc_event_log") {
257 sources = [
258 "video/rtc_event_log.cc",
259 "video/rtc_event_log.h",
260 ]
261
262 defines = []
263 configs += [ ":common_config" ]
264 public_configs = [ ":common_inherited_config" ]
265
266 deps = [
267 ":webrtc_common",
268 ]
269
270 if (rtc_enable_protobuf) {
271 defines += [ "ENABLE_RTC_EVENT_LOG" ]
272 deps += [ ":rtc_event_log_proto" ]
273 }
274 if (is_clang && !is_nacl) {
275 # Suppress warnings from Chrome's Clang plugins.
276 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
277 configs -= [ "//build/config/clang:find_bad_constructs" ]
278 }
279 }
OLDNEW
« no previous file with comments | « no previous file | base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698