OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 import("//build/config/features.gni") | |
6 | |
7 config("jingle_unexported_configs") { | |
8 include_dirs = [ | |
9 "../../third_party/webrtc_overrides", | |
10 "../../testing/gtest/include", | |
11 "../../third_party", | |
12 "../../third_party/libyuv/include", | |
13 "../../third_party/usrsctp/usrsctplib", | |
14 ] | |
15 } | |
16 | |
17 config("jingle_public_configs") { | |
18 include_dirs = [ | |
19 "../../third_party/webrtc_overrides", | |
20 "../../testing/gtest/include", | |
21 "../../third_party", | |
22 ] | |
23 } | |
24 | |
25 group("jingle_deps") { | |
26 public_deps = [ | |
27 "//third_party/expat", | |
28 ] | |
29 deps = [ | |
30 "//base", | |
31 "//crypto:platform", | |
32 "//net", | |
33 ] | |
34 } | |
35 | |
36 static_library("libjingle") { | |
37 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
38 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | |
39 | |
40 public_deps = [ | |
41 ":jingle_deps", | |
42 | |
43 # TODO(kjellander): Start cleaning up this target as soon as | |
44 # https://codereview.chromium.org/2022833002/ is landed. The target should | |
45 # be removed entirely if possible. | |
46 "//third_party/libjingle_xmpp:rtc_task_runner", | |
47 "//third_party/webrtc/base:rtc_base", | |
48 ] | |
49 deps = [ | |
50 "//third_party/webrtc/p2p:rtc_p2p", | |
51 ] | |
52 | |
53 # From libjingle_common.gypi's conditions list. | |
54 if (is_win) { | |
55 cflags = [ "/wd4005" ] | |
56 } | |
57 | |
58 if (is_nacl) { | |
59 # For NACL, we have to add a default implementation for field_trail. | |
60 deps += [ | |
61 "//native_client_sdk/src/libraries/nacl_io", | |
62 "//third_party/webrtc/system_wrappers:field_trial_default", | |
63 ] | |
64 } else { | |
65 # Otherwise, we just add the field_trial which redirects to base. | |
66 sources = [ | |
67 "../webrtc_overrides/field_trial.cc", | |
68 ] | |
69 } | |
70 | |
71 configs += [ | |
72 ":jingle_unexported_configs", | |
73 "//third_party/webrtc:common_config", | |
74 ] | |
75 public_configs = [ | |
76 ":jingle_public_configs", | |
77 "//third_party/webrtc:common_inherited_config", | |
78 ] | |
79 } | |
OLD | NEW |