| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 # TODO(kjellander): Remove remaining dependencies on the WebRTC codebase. | 5 # TODO(kjellander): Remove remaining dependencies on the WebRTC codebase. |
| 6 import("../webrtc/webrtc.gni") | 6 import("../webrtc/webrtc.gni") |
| 7 | 7 |
| 8 group("libjingle_xmpp") { | 8 group("libjingle_xmpp") { |
| 9 public_deps = [ | 9 public_deps = [ |
| 10 ":rtc_xmllite", | 10 ":rtc_xmllite", |
| 11 ":rtc_xmpp", | 11 ":rtc_xmpp", |
| 12 ] | 12 ] |
| 13 } | 13 } |
| 14 | 14 |
| 15 rtc_static_library("rtc_task_runner") { |
| 16 sources = [ |
| 17 "task_runner/task.cc", |
| 18 "task_runner/task.h", |
| 19 "task_runner/taskparent.cc", |
| 20 "task_runner/taskparent.h", |
| 21 "task_runner/taskrunner.cc", |
| 22 "task_runner/taskrunner.h", |
| 23 ] |
| 24 } |
| 25 |
| 15 rtc_static_library("rtc_xmllite") { | 26 rtc_static_library("rtc_xmllite") { |
| 16 sources = [ | 27 sources = [ |
| 17 "xmllite/qname.cc", | 28 "xmllite/qname.cc", |
| 18 "xmllite/qname.h", | 29 "xmllite/qname.h", |
| 19 "xmllite/xmlbuilder.cc", | 30 "xmllite/xmlbuilder.cc", |
| 20 "xmllite/xmlbuilder.h", | 31 "xmllite/xmlbuilder.h", |
| 21 "xmllite/xmlconstants.cc", | 32 "xmllite/xmlconstants.cc", |
| 22 "xmllite/xmlconstants.h", | 33 "xmllite/xmlconstants.h", |
| 23 "xmllite/xmlelement.cc", | 34 "xmllite/xmlelement.cc", |
| 24 "xmllite/xmlelement.h", | 35 "xmllite/xmlelement.h", |
| 25 "xmllite/xmlnsstack.cc", | 36 "xmllite/xmlnsstack.cc", |
| 26 "xmllite/xmlnsstack.h", | 37 "xmllite/xmlnsstack.h", |
| 27 "xmllite/xmlparser.cc", | 38 "xmllite/xmlparser.cc", |
| 28 "xmllite/xmlparser.h", | 39 "xmllite/xmlparser.h", |
| 29 "xmllite/xmlprinter.cc", | 40 "xmllite/xmlprinter.cc", |
| 30 "xmllite/xmlprinter.h", | 41 "xmllite/xmlprinter.h", |
| 31 ] | 42 ] |
| 32 | 43 |
| 33 deps = [ | 44 deps = [ |
| 34 "//third_party/webrtc/base:rtc_base", | 45 "//third_party/webrtc/base:rtc_base", |
| 35 "//third_party/webrtc/base:rtc_task_runner", | |
| 36 ] | 46 ] |
| 37 public_deps = [ | 47 public_deps = [ |
| 38 "//third_party/expat", | 48 "//third_party/expat", |
| 39 ] | 49 ] |
| 40 } | 50 } |
| 41 | 51 |
| 42 config("rtc_xmpp_warnings_config") { | 52 config("rtc_xmpp_warnings_config") { |
| 43 # GN orders flags on a target before flags from configs. The default config | 53 # GN orders flags on a target before flags from configs. The default config |
| 44 # adds these flags so to cancel them out they need to come from a config and | 54 # adds these flags so to cancel them out they need to come from a config and |
| 45 # cannot be on the target directly. | 55 # cannot be on the target directly. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 76 "xmpp/xmppstanzaparser.h", | 86 "xmpp/xmppstanzaparser.h", |
| 77 "xmpp/xmpptask.cc", | 87 "xmpp/xmpptask.cc", |
| 78 "xmpp/xmpptask.h", | 88 "xmpp/xmpptask.h", |
| 79 ] | 89 ] |
| 80 | 90 |
| 81 defines = [] | 91 defines = [] |
| 82 | 92 |
| 83 deps = [ | 93 deps = [ |
| 84 ":rtc_xmllite", | 94 ":rtc_xmllite", |
| 85 "//third_party/webrtc/base:rtc_base", | 95 "//third_party/webrtc/base:rtc_base", |
| 86 "//third_party/webrtc/base:rtc_task_runner", | |
| 87 ] | 96 ] |
| 88 public_deps = [ | 97 public_deps = [ |
| 98 ":rtc_task_runner", |
| 89 "//third_party/expat", | 99 "//third_party/expat", |
| 90 ] | 100 ] |
| 91 configs += [ ":rtc_xmpp_warnings_config" ] | 101 configs += [ ":rtc_xmpp_warnings_config" ] |
| 92 | 102 |
| 93 if (is_nacl) { | 103 if (is_nacl) { |
| 94 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] | 104 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] |
| 95 } | 105 } |
| 96 | 106 |
| 97 if (is_posix && is_debug) { | 107 if (is_posix && is_debug) { |
| 98 # The Chromium configs defines this for all posix _except_ for ios & mac. | 108 # The Chromium configs defines this for all posix _except_ for ios & mac. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 113 "-Wno-unused-const-variable", | 123 "-Wno-unused-const-variable", |
| 114 ] | 124 ] |
| 115 } | 125 } |
| 116 } | 126 } |
| 117 | 127 |
| 118 rtc_test("libjingle_xmpp_unittests") { | 128 rtc_test("libjingle_xmpp_unittests") { |
| 119 configs += [ ":libjingle_xmpp_unittests_config" ] | 129 configs += [ ":libjingle_xmpp_unittests_config" ] |
| 120 | 130 |
| 121 deps = [ | 131 deps = [ |
| 122 ":libjingle_xmpp", | 132 ":libjingle_xmpp", |
| 133 ":rtc_task_runner", |
| 123 | 134 |
| 124 # TODO(kjellander): Refactor/remove this dependency. It is needed by | 135 # TODO(kjellander): Refactor/remove this dependency. It is needed by |
| 125 # third_party/webrtc_overrides/webrtc/base/win32socketinit.cc. | 136 # third_party/webrtc_overrides/webrtc/base/win32socketinit.cc. |
| 126 "//net", | 137 "//net", |
| 127 "//testing/gtest", | 138 "//testing/gtest", |
| 128 ] | 139 ] |
| 129 | 140 |
| 130 sources = [ | 141 sources = [ |
| 131 "run_all_unittests.cc", | 142 "run_all_unittests.cc", |
| 143 "task_runner/task_unittest.cc", |
| 132 "xmllite/qname_unittest.cc", | 144 "xmllite/qname_unittest.cc", |
| 133 "xmllite/xmlbuilder_unittest.cc", | 145 "xmllite/xmlbuilder_unittest.cc", |
| 134 "xmllite/xmlelement_unittest.cc", | 146 "xmllite/xmlelement_unittest.cc", |
| 135 "xmllite/xmlnsstack_unittest.cc", | 147 "xmllite/xmlnsstack_unittest.cc", |
| 136 "xmllite/xmlparser_unittest.cc", | 148 "xmllite/xmlparser_unittest.cc", |
| 137 "xmllite/xmlprinter_unittest.cc", | 149 "xmllite/xmlprinter_unittest.cc", |
| 138 "xmpp/fakexmppclient.h", | 150 "xmpp/fakexmppclient.h", |
| 139 "xmpp/jid_unittest.cc", | 151 "xmpp/jid_unittest.cc", |
| 140 "xmpp/util_unittest.cc", | 152 "xmpp/util_unittest.cc", |
| 141 "xmpp/util_unittest.h", | 153 "xmpp/util_unittest.h", |
| 142 "xmpp/xmppengine_unittest.cc", | 154 "xmpp/xmppengine_unittest.cc", |
| 143 "xmpp/xmpplogintask_unittest.cc", | 155 "xmpp/xmpplogintask_unittest.cc", |
| 144 "xmpp/xmppstanzaparser_unittest.cc", | 156 "xmpp/xmppstanzaparser_unittest.cc", |
| 145 ] | 157 ] |
| 146 } | 158 } |
| OLD | NEW |