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

Side by Side Diff: webrtc/BUILD.gn

Issue 1441323002: Fix compilation of WebRTC on iOS for Chromium. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 1 month 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 | 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 # 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
11 import("//build/config/linux/pkg_config.gni") 11 import("//build/config/linux/pkg_config.gni")
12 import("build/webrtc.gni") 12 import("build/webrtc.gni")
13 import("//third_party/protobuf/proto_library.gni") 13 import("//third_party/protobuf/proto_library.gni")
14 14
15 # Contains the defines and includes in common.gypi that are duplicated both as 15 # Contains the defines and includes in common.gypi that are duplicated both as
16 # target_defaults and direct_dependent_settings. 16 # target_defaults and direct_dependent_settings.
17 config("common_inherited_config") { 17 config("common_inherited_config") {
18 defines = [] 18 defines = []
19 if (build_with_mozilla) { 19 if (build_with_mozilla) {
20 defines += [ "WEBRTC_MOZILLA_BUILD" ] 20 defines += [ "WEBRTC_MOZILLA_BUILD" ]
21 } 21 }
22 if (build_with_chromium) { 22 if (build_with_chromium) {
23 defines = [ "WEBRTC_CHROMIUM_BUILD" ] 23 defines += [ "WEBRTC_CHROMIUM_BUILD" ]
24 include_dirs = [ 24 include_dirs = [
25 # The overrides must be included first as that is the mechanism for 25 # The overrides must be included first as that is the mechanism for
26 # selecting the override headers in Chromium. 26 # selecting the override headers in Chromium.
27 "../webrtc_overrides", 27 "../webrtc_overrides",
28 28
29 # Allow includes to be prefixed with webrtc/ in case it is not an 29 # Allow includes to be prefixed with webrtc/ in case it is not an
30 # immediate subdirectory of the top-level. 30 # immediate subdirectory of the top-level.
31 "..", 31 "..",
32 ] 32 ]
33
34 if (is_ios) {
35 defines += [ "SSL_USE_OPENSSL" ]
kjellander_webrtc 2015/11/16 14:47:13 I don't want our GYP and GN builds to diverge. I u
36 }
33 } 37 }
34 if (is_posix) { 38 if (is_posix) {
35 defines += [ "WEBRTC_POSIX" ] 39 defines += [ "WEBRTC_POSIX" ]
36 } 40 }
37 if (is_ios) { 41 if (is_ios) {
38 defines += [ 42 defines += [
39 "WEBRTC_MAC", 43 "WEBRTC_MAC",
40 "WEBRTC_IOS", 44 "WEBRTC_IOS",
41 ] 45 ]
42 } 46 }
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 if (rtc_enable_protobuf) { 275 if (rtc_enable_protobuf) {
272 defines += [ "ENABLE_RTC_EVENT_LOG" ] 276 defines += [ "ENABLE_RTC_EVENT_LOG" ]
273 deps += [ ":rtc_event_log_proto" ] 277 deps += [ ":rtc_event_log_proto" ]
274 } 278 }
275 if (is_clang && !is_nacl) { 279 if (is_clang && !is_nacl) {
276 # Suppress warnings from Chrome's Clang plugins. 280 # Suppress warnings from Chrome's Clang plugins.
277 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 281 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
278 configs -= [ "//build/config/clang:find_bad_constructs" ] 282 configs -= [ "//build/config/clang:find_bad_constructs" ]
279 } 283 }
280 } 284 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698