OLD | NEW |
---|---|
(Empty) | |
1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | |
2 # | |
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 | |
5 # tree. An additional intellectual property rights grant can be found | |
6 # in the file PATENTS. All contributing project authors may | |
7 # be found in the AUTHORS file in the root of the source tree. | |
8 | |
9 import("../../build/webrtc.gni") | |
10 | |
11 group("xmpp") { | |
12 deps = [ | |
13 ":rtc_xmpp", | |
14 ] | |
15 } | |
16 | |
17 config("xmpp_warnings_config") { | |
18 # GN orders flags on a target before flags from configs. The default config | |
19 # adds these flags so to cancel them out they need to come from a config and | |
20 # cannot be on the target directly. | |
21 if (is_android) { | |
22 cflags = [ "-Wno-error" ] | |
23 } | |
24 } | |
25 | |
26 config("xmpp_inherited_config") { | |
27 defines = [ | |
28 "FEATURE_ENABLE_SSL", | |
29 "FEATURE_ENABLE_VOICEMAIL", | |
30 ] | |
31 } | |
32 | |
33 source_set("rtc_xmpp") { | |
perkj_webrtc
2016/05/13 12:41:28
same here. Is this used?
kjellander_webrtc
2016/05/13 12:50:44
Yes, webrtc/media depends on xmpp in GYP (and now
| |
34 cflags = [] | |
35 sources = [ | |
36 "asyncsocket.h", | |
37 "chatroommodule.h", | |
38 "chatroommoduleimpl.cc", | |
39 "constants.cc", | |
40 "constants.h", | |
41 "discoitemsquerytask.cc", | |
42 "discoitemsquerytask.h", | |
43 "hangoutpubsubclient.cc", | |
44 "hangoutpubsubclient.h", | |
45 "iqtask.cc", | |
46 "iqtask.h", | |
47 "jid.cc", | |
48 "jid.h", | |
49 "module.h", | |
50 "moduleimpl.cc", | |
51 "moduleimpl.h", | |
52 "mucroomconfigtask.cc", | |
53 "mucroomconfigtask.h", | |
54 "mucroomdiscoverytask.cc", | |
55 "mucroomdiscoverytask.h", | |
56 "mucroomlookuptask.cc", | |
57 "mucroomlookuptask.h", | |
58 "mucroomuniquehangoutidtask.cc", | |
59 "mucroomuniquehangoutidtask.h", | |
60 "pingtask.cc", | |
61 "pingtask.h", | |
62 "plainsaslhandler.h", | |
63 "presenceouttask.cc", | |
64 "presenceouttask.h", | |
65 "presencereceivetask.cc", | |
66 "presencereceivetask.h", | |
67 "presencestatus.cc", | |
68 "presencestatus.h", | |
69 "prexmppauth.h", | |
70 "pubsub_task.cc", | |
71 "pubsub_task.h", | |
72 "pubsubclient.cc", | |
73 "pubsubclient.h", | |
74 "pubsubstateclient.cc", | |
75 "pubsubstateclient.h", | |
76 "pubsubtasks.cc", | |
77 "pubsubtasks.h", | |
78 "receivetask.cc", | |
79 "receivetask.h", | |
80 "rostermodule.h", | |
81 "rostermoduleimpl.cc", | |
82 "rostermoduleimpl.h", | |
83 "saslcookiemechanism.h", | |
84 "saslhandler.h", | |
85 "saslmechanism.cc", | |
86 "saslmechanism.h", | |
87 "saslplainmechanism.h", | |
88 "xmppauth.cc", | |
89 "xmppauth.h", | |
90 "xmppclient.cc", | |
91 "xmppclient.h", | |
92 "xmppclientsettings.h", | |
93 "xmppengine.h", | |
94 "xmppengineimpl.cc", | |
95 "xmppengineimpl.h", | |
96 "xmppengineimpl_iq.cc", | |
97 "xmpplogintask.cc", | |
98 "xmpplogintask.h", | |
99 "xmpppump.cc", | |
100 "xmpppump.h", | |
101 "xmppsocket.cc", | |
102 "xmppsocket.h", | |
103 "xmppstanzaparser.cc", | |
104 "xmppstanzaparser.h", | |
105 "xmpptask.cc", | |
106 "xmpptask.h", | |
107 "xmppthread.cc", | |
108 "xmppthread.h", | |
109 ] | |
110 | |
111 defines = [ "FEATURE_ENABLE_SSL" ] | |
112 | |
113 deps = [ | |
114 "../../base:rtc_base", | |
115 "../xmllite", | |
116 ] | |
117 | |
118 if (rtc_build_expat) { | |
119 deps += [ "//third_party/expat" ] | |
120 public_deps = [ | |
121 "//third_party/expat", | |
122 ] | |
123 } | |
124 | |
125 configs += [ | |
126 "../..:common_config", | |
127 ":xmpp_warnings_config", | |
128 ] | |
129 | |
130 public_configs = [ | |
131 "../..:common_inherited_config", | |
132 ":xmpp_inherited_config", | |
133 ] | |
134 | |
135 if (!build_with_chromium) { | |
136 defines += [ | |
137 "FEATURE_ENABLE_VOICEMAIL", | |
138 "FEATURE_ENABLE_PSTN", | |
139 ] | |
140 } | |
141 | |
142 if (is_posix && is_debug) { | |
143 # The Chromium build/common.gypi defines this for all posix | |
144 # _except_ for ios & mac. We want it there as well, e.g. | |
145 # because ASSERT and friends trigger off of it. | |
146 defines += [ "_DEBUG" ] | |
147 } | |
148 | |
149 if (is_clang) { | |
150 # Suppress warnings from Chrome's Clang plugins. | |
151 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | |
152 configs -= [ "//build/config/clang:find_bad_constructs" ] | |
153 } | |
154 } | |
OLD | NEW |