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

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

Issue 2443903004: Add xmllite and xmpp sources to third_party/ (Closed)
Patch Set: Fix GN and sort includes Created 3 years, 12 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
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 import("../../webrtc/build/webrtc.gni")
6
7 group("xmllite") {
8 public_deps = [
9 ":rtc_xmllite",
10 ]
11 }
12
13 rtc_static_library("rtc_xmllite") {
14 sources = [
15 "qname.cc",
16 "qname.h",
17 "xmlbuilder.cc",
18 "xmlbuilder.h",
19 "xmlconstants.cc",
20 "xmlconstants.h",
21 "xmlelement.cc",
22 "xmlelement.h",
23 "xmlnsstack.cc",
24 "xmlnsstack.h",
25 "xmlparser.cc",
26 "xmlparser.h",
27 "xmlprinter.cc",
28 "xmlprinter.h",
29 ]
30
31 deps = [
32 "//third_party/webrtc/base:rtc_base",
33 ]
34
35 if (rtc_build_expat) {
36 deps += [ "//third_party/expat" ]
37 public_deps = [
38 "//third_party/expat",
39 ]
40 }
41
42 if (!build_with_chromium && is_clang) {
43 # Suppress warnings from Chrome's Clang plugins.
44 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
45 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
46 }
47 }
48
49 if (rtc_include_tests) {
50 config("xmllite_unittests_config") {
51 # GN orders flags on a target before flags from configs. The default config
52 # adds -Wall, and this flag have to be after -Wall -- so they need to
53 # come from a config and can"t be on the target directly.
54 if (is_clang) {
55 cflags = [
56 "-Wno-missing-braces",
57 "-Wno-sign-compare",
58 "-Wno-unused-const-variable",
59 ]
60 }
61 }
62
63 rtc_test("xmllite_unittests") {
64 configs += [ ":xmplite_unittests_config" ]
65
66 if (!build_with_chromium && is_clang) {
67 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
68 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
69 }
70
71 deps = [
72 ":rtc_xmllite",
73 "//testing/gtest",
74 "//third_party/webrtc/base:rtc_base_tests_utils",
pthatcher2 2016/12/22 20:33:29 It's a little unfortunate that this depends on web
kjellander_chromium 2016/12/27 12:49:21 Yeah, let's do that in follow-up. I posted a note
75 ]
76
77 sources = [
78 "qname_unittest.cc",
79 "xmlbuilder_unittest.cc",
80 "xmlelement_unittest.cc",
81 "xmlnsstack_unittest.cc",
82 "xmlparser_unittest.cc",
83 "xmlprinter_unittest.cc",
84 ]
85 }
86 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698