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

Side by Side Diff: third_party/libjingle_xmpp/BUILD.gn

Issue 2443903004: Add xmllite and xmpp sources to third_party/ (Closed)
Patch Set: Explicitly use webrtc_overrides/webrtc/base/logging.h Created 3 years, 11 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 | « remoting/signaling/xmpp_stream_parser_unittest.cc ('k') | third_party/libjingle_xmpp/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2016 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 # TODO(kjellander): Remove remaining dependencies on the WebRTC codebase.
6 import("../webrtc/build/webrtc.gni")
7
8 group("libjingle_xmpp") {
9 public_deps = [
10 ":rtc_xmllite",
11 ":rtc_xmpp",
12 ]
13 }
14
15 rtc_static_library("rtc_xmllite") {
16 sources = [
17 "xmllite/qname.cc",
18 "xmllite/qname.h",
19 "xmllite/xmlbuilder.cc",
20 "xmllite/xmlbuilder.h",
21 "xmllite/xmlconstants.cc",
22 "xmllite/xmlconstants.h",
23 "xmllite/xmlelement.cc",
24 "xmllite/xmlelement.h",
25 "xmllite/xmlnsstack.cc",
26 "xmllite/xmlnsstack.h",
27 "xmllite/xmlparser.cc",
28 "xmllite/xmlparser.h",
29 "xmllite/xmlprinter.cc",
30 "xmllite/xmlprinter.h",
31 ]
32
33 deps = [
34 "//third_party/webrtc/base:rtc_base",
35 ]
36 public_deps = [
37 "//third_party/expat",
38 ]
39 }
40
41 config("rtc_xmpp_warnings_config") {
42 # GN orders flags on a target before flags from configs. The default config
43 # adds these flags so to cancel them out they need to come from a config and
44 # cannot be on the target directly.
45 if (is_android) {
46 cflags = [ "-Wno-error" ]
47 }
48 }
49
50 config("rtc_xmpp_inherited_config") {
51 defines = [
52 "FEATURE_ENABLE_SSL",
53 "FEATURE_ENABLE_VOICEMAIL",
54 ]
55 }
56
57 rtc_static_library("rtc_xmpp") {
58 cflags = []
59 sources = [
60 "xmpp/asyncsocket.h",
61 "xmpp/constants.cc",
62 "xmpp/constants.h",
63 "xmpp/jid.cc",
64 "xmpp/jid.h",
65 "xmpp/plainsaslhandler.h",
66 "xmpp/prexmppauth.h",
67 "xmpp/saslcookiemechanism.h",
68 "xmpp/saslhandler.h",
69 "xmpp/saslmechanism.cc",
70 "xmpp/saslmechanism.h",
71 "xmpp/saslplainmechanism.h",
72 "xmpp/xmppclient.cc",
73 "xmpp/xmppclient.h",
74 "xmpp/xmppclientsettings.h",
75 "xmpp/xmppengine.h",
76 "xmpp/xmppengineimpl.cc",
77 "xmpp/xmppengineimpl.h",
78 "xmpp/xmppengineimpl_iq.cc",
79 "xmpp/xmpplogintask.cc",
80 "xmpp/xmpplogintask.h",
81 "xmpp/xmppstanzaparser.cc",
82 "xmpp/xmppstanzaparser.h",
83 "xmpp/xmpptask.cc",
84 "xmpp/xmpptask.h",
85 ]
86
87 defines = [ "FEATURE_ENABLE_SSL" ]
88
89 deps = [
90 ":rtc_xmllite",
91 "//third_party/webrtc/base:rtc_base",
92 ]
93 public_deps = [
94 "//third_party/expat",
95 ]
96 configs += [ ":rtc_xmpp_warnings_config" ]
97
98 public_configs = [ ":rtc_xmpp_inherited_config" ]
99
100 if (is_nacl) {
101 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
102 }
103
104 if (is_posix && is_debug) {
105 # The Chromium configs defines this for all posix _except_ for ios & mac.
106 # We want it there as well, e.g. because ASSERT and friends trigger off of
107 # it.
108 defines += [ "_DEBUG" ]
109 }
110 }
111
112 config("libjingle_xmpp_unittests_config") {
113 # GN orders flags on a target before flags from configs. The default config
114 # adds -Wall, and this flag have to be after -Wall -- so they need to
115 # come from a config and can"t be on the target directly.
116 if (is_clang) {
117 cflags = [
118 "-Wno-missing-braces",
119 "-Wno-sign-compare",
120 "-Wno-unused-const-variable",
121 ]
122 }
123 }
124
125 rtc_test("libjingle_xmpp_unittests") {
126 configs += [ ":libjingle_xmpp_unittests_config" ]
127
128 deps = [
129 ":libjingle_xmpp",
130
131 # TODO(kjellander): Refactor/remove this dependency. It is needed by
132 # third_party/webrtc_overrides/webrtc/base/win32socketinit.cc.
133 "//net",
134 "//testing/gtest",
135 ]
136
137 sources = [
138 "run_all_unittests.cc",
139 "xmllite/qname_unittest.cc",
140 "xmllite/xmlbuilder_unittest.cc",
141 "xmllite/xmlelement_unittest.cc",
142 "xmllite/xmlnsstack_unittest.cc",
143 "xmllite/xmlparser_unittest.cc",
144 "xmllite/xmlprinter_unittest.cc",
145 "xmpp/fakexmppclient.h",
146 "xmpp/jid_unittest.cc",
147 "xmpp/util_unittest.cc",
148 "xmpp/util_unittest.h",
149 "xmpp/xmppengine_unittest.cc",
150 "xmpp/xmpplogintask_unittest.cc",
151 "xmpp/xmppstanzaparser_unittest.cc",
152 ]
153 }
OLDNEW
« no previous file with comments | « remoting/signaling/xmpp_stream_parser_unittest.cc ('k') | third_party/libjingle_xmpp/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698