OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 | 6 |
7 # From third_party/libjingle/libjingle.gyp's target_defaults. | 7 # From third_party/libjingle/libjingle.gyp's target_defaults. |
8 config("jingle_unexported_configs") { | 8 config("jingle_unexported_configs") { |
9 defines = [ | 9 defines = [ |
10 "EXPAT_RELATIVE_PATH", | 10 "EXPAT_RELATIVE_PATH", |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 } | 102 } |
103 } | 103 } |
104 | 104 |
105 # From third_party/libjingle/libjingle.gyp's target_defaults. | 105 # From third_party/libjingle/libjingle.gyp's target_defaults. |
106 group("jingle_deps") { | 106 group("jingle_deps") { |
107 public_deps = [ | 107 public_deps = [ |
108 "//third_party/expat", | 108 "//third_party/expat", |
109 ] | 109 ] |
110 deps = [ | 110 deps = [ |
111 "//base", | 111 "//base", |
| 112 "//crypto:platform", |
112 "//net", | 113 "//net", |
113 "//crypto:platform", | |
114 ] | 114 ] |
115 } | 115 } |
116 | 116 |
117 # GYP version: third_party/libjingle.gyp:libjingle | 117 # GYP version: third_party/libjingle.gyp:libjingle |
118 static_library("libjingle") { | 118 static_library("libjingle") { |
119 p2p_dir = "../webrtc/p2p" | 119 p2p_dir = "../webrtc/p2p" |
120 xmllite_dir = "../webrtc/libjingle/xmllite" | 120 xmllite_dir = "../webrtc/libjingle/xmllite" |
121 xmpp_dir = "../webrtc/libjingle/xmpp" | 121 xmpp_dir = "../webrtc/libjingle/xmpp" |
122 sources = [ | 122 sources = [ |
123 # List from third_party/libjingle/libjingle_common.gypi | 123 # List from third_party/libjingle/libjingle_common.gypi |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 "$p2p_dir/base/constants.h", | 226 "$p2p_dir/base/constants.h", |
227 ] | 227 ] |
228 | 228 |
229 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 229 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
230 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 230 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
231 | 231 |
232 public_deps = [ | 232 public_deps = [ |
233 ":jingle_deps", | 233 ":jingle_deps", |
234 ] | 234 ] |
235 deps = [ | 235 deps = [ |
| 236 ":libjingle_p2p_constants", |
236 "//third_party/webrtc/base:rtc_base", | 237 "//third_party/webrtc/base:rtc_base", |
237 ":libjingle_p2p_constants", | |
238 ] | 238 ] |
239 | 239 |
240 # From libjingle_common.gypi's conditions list. | 240 # From libjingle_common.gypi's conditions list. |
241 if (is_win) { | 241 if (is_win) { |
242 cflags = [ "/wd4005" ] | 242 cflags = [ "/wd4005" ] |
243 } | 243 } |
244 | 244 |
245 if (is_nacl) { | 245 if (is_nacl) { |
246 # For NACL, we have to add a default implementation for field_trail. | 246 # For NACL, we have to add a default implementation for field_trail. |
247 deps += [ | 247 deps += [ |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 ] | 485 ] |
486 } | 486 } |
487 | 487 |
488 source_set("libstunprober") { | 488 source_set("libstunprober") { |
489 p2p_dir = "../webrtc/p2p" | 489 p2p_dir = "../webrtc/p2p" |
490 sources = [ | 490 sources = [ |
491 "$p2p_dir/stunprober/stunprober.cc", | 491 "$p2p_dir/stunprober/stunprober.cc", |
492 ] | 492 ] |
493 | 493 |
494 deps = [ | 494 deps = [ |
| 495 ":libjingle_webrtc_common", |
495 "//third_party/webrtc/base:rtc_base", | 496 "//third_party/webrtc/base:rtc_base", |
496 ":libjingle_webrtc_common", | |
497 ] | 497 ] |
498 } | 498 } |
499 } # enable_webrtc | 499 } # enable_webrtc |
500 # TODO(GYP): Port libjingle.gyp's enable_webrtc condition block. | 500 # TODO(GYP): Port libjingle.gyp's enable_webrtc condition block. |
OLD | NEW |