Chromium Code Reviews| 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 jingle_includes = exec_script("//build/gypi_to_gn.py", | |
| 8 [ rebase_path("jingle.gypi") ], | |
| 9 "scope", | |
| 10 [ "jingle.gypi" ]) | |
| 11 | |
| 12 if (enable_webrtc || !is_android) { | |
| 13 # GYP version: jingle/jingle.gyp:jingle_glue | |
| 14 static_library("jingle_glue") { | |
| 15 sources = jingle_includes.jingle_glue_sources | |
| 16 deps = [ | |
| 17 "//base", | |
| 18 "//base/third_party/dynamic_annotations", | |
| 19 "//net", | |
| 20 # '../third_party/libjingle/libjingle.gyp:libjingle', # TODO(GYP) | |
| 21 ] | |
| 22 # 'export_dependent_settings': [ | |
| 23 # '../third_party/libjingle/libjingle.gyp:libjingle', | |
| 24 # ], | |
| 25 | |
| 26 # TODO(GYP): Replace this with a proper dependency on libjingle. | |
| 27 configs += [ "//content:libjingle_stub_config" ] | |
|
brettw
2014/08/03 04:22:53
You can delete this line, direct_dependent also ap
rlarocque
2014/08/04 17:33:42
Done.
| |
| 28 direct_dependent_configs = [ "//content:libjingle_stub_config", ] | |
| 29 } | |
| 30 | |
| 31 # A library for sending and receiving peer-issued notifications. | |
| 32 # GYP version: jingle/jingle.gyp:notifier | |
| 33 static_library("notifier") { | |
| 34 sources = [ | |
| 35 "notifier/base/const_communicator.h", | |
| 36 "notifier/base/gaia_constants.cc", | |
| 37 "notifier/base/gaia_constants.h", | |
| 38 "notifier/base/gaia_token_pre_xmpp_auth.cc", | |
| 39 "notifier/base/gaia_token_pre_xmpp_auth.h", | |
| 40 "notifier/base/notification_method.h", | |
| 41 "notifier/base/notification_method.cc", | |
| 42 "notifier/base/notifier_options.cc", | |
| 43 "notifier/base/notifier_options.h", | |
| 44 "notifier/base/notifier_options_util.cc", | |
| 45 "notifier/base/notifier_options_util.h", | |
| 46 "notifier/base/server_information.cc", | |
| 47 "notifier/base/server_information.h", | |
| 48 "notifier/base/weak_xmpp_client.cc", | |
| 49 "notifier/base/weak_xmpp_client.h", | |
| 50 "notifier/base/xmpp_connection.cc", | |
| 51 "notifier/base/xmpp_connection.h", | |
| 52 "notifier/communicator/connection_settings.cc", | |
| 53 "notifier/communicator/connection_settings.h", | |
| 54 "notifier/communicator/login.cc", | |
| 55 "notifier/communicator/login.h", | |
| 56 "notifier/communicator/login_settings.cc", | |
| 57 "notifier/communicator/login_settings.h", | |
| 58 "notifier/communicator/single_login_attempt.cc", | |
| 59 "notifier/communicator/single_login_attempt.h", | |
| 60 "notifier/listener/non_blocking_push_client.cc", | |
| 61 "notifier/listener/non_blocking_push_client.h", | |
| 62 "notifier/listener/notification_constants.cc", | |
| 63 "notifier/listener/notification_constants.h", | |
| 64 "notifier/listener/notification_defines.cc", | |
| 65 "notifier/listener/notification_defines.h", | |
| 66 "notifier/listener/push_client_observer.cc", | |
| 67 "notifier/listener/push_client_observer.h", | |
| 68 "notifier/listener/push_client.cc", | |
| 69 "notifier/listener/push_client.h", | |
| 70 "notifier/listener/push_notifications_listen_task.cc", | |
| 71 "notifier/listener/push_notifications_listen_task.h", | |
| 72 "notifier/listener/push_notifications_send_update_task.cc", | |
| 73 "notifier/listener/push_notifications_send_update_task.h", | |
| 74 "notifier/listener/push_notifications_subscribe_task.cc", | |
| 75 "notifier/listener/push_notifications_subscribe_task.h", | |
| 76 "notifier/listener/send_ping_task.cc", | |
| 77 "notifier/listener/send_ping_task.h", | |
| 78 "notifier/listener/xml_element_util.cc", | |
| 79 "notifier/listener/xml_element_util.h", | |
| 80 "notifier/listener/xmpp_push_client.cc", | |
| 81 "notifier/listener/xmpp_push_client.h", | |
| 82 ] | |
| 83 defines = [ | |
| 84 "_CRT_SECURE_NO_WARNINGS", | |
| 85 ] | |
| 86 deps = [ | |
| 87 "//base", | |
| 88 "//net", | |
| 89 "//third_party/expat", | |
| 90 "//url", | |
| 91 ":jingle_glue", | |
| 92 # '../third_party/libjingle/libjingle.gyp:libjingle', # TODO(GYP) | |
| 93 ] | |
| 94 # 'export_dependent_settings': [ | |
| 95 # '../third_party/libjingle/libjingle.gyp:libjingle', | |
| 96 # ], | |
| 97 # TODO(GYP): Replace this with a proper dependency on libjingle. | |
| 98 configs += [ "//content:libjingle_stub_config" ] | |
| 99 direct_dependent_configs = [ "//content:libjingle_stub_config", ] | |
| 100 } | |
| 101 | |
| 102 # GYP version: jingle/jingle.gyp:notifier_test_util | |
| 103 static_library("notifier_test_util") { | |
| 104 sources = [ | |
| 105 "notifier/base/fake_base_task.cc", | |
| 106 "notifier/base/fake_base_task.h", | |
| 107 "notifier/listener/fake_push_client.cc", | |
| 108 "notifier/listener/fake_push_client.h", | |
| 109 "notifier/listener/fake_push_client_observer.cc", | |
| 110 "notifier/listener/fake_push_client_observer.h", | |
| 111 ] | |
| 112 deps = [ | |
| 113 ":notifier", | |
| 114 "//base", | |
| 115 "//testing/gmock", | |
| 116 ] | |
| 117 } | |
| 118 | |
| 119 # GYP version: jingle/jingle.gyp:jingle_unittests | |
| 120 # TODO(GYP): Convert to executable when its dependencies are linkable. | |
| 121 source_set("jingle_unittests") { | |
| 122 sources = [ | |
| 123 "glue/channel_socket_adapter_unittest.cc", | |
| 124 "glue/chrome_async_socket_unittest.cc", | |
| 125 "glue/fake_ssl_client_socket_unittest.cc", | |
| 126 "glue/jingle_glue_mock_objects.cc", | |
| 127 "glue/jingle_glue_mock_objects.h", | |
| 128 "glue/logging_unittest.cc", | |
| 129 "glue/mock_task.cc", | |
| 130 "glue/mock_task.h", | |
| 131 "glue/proxy_resolving_client_socket_unittest.cc", | |
| 132 "glue/pseudotcp_adapter_unittest.cc", | |
| 133 "glue/task_pump_unittest.cc", | |
| 134 "glue/thread_wrapper_unittest.cc", | |
| 135 "notifier/base/weak_xmpp_client_unittest.cc", | |
| 136 "notifier/base/xmpp_connection_unittest.cc", | |
| 137 "notifier/communicator/connection_settings_unittest.cc", | |
| 138 "notifier/communicator/login_settings_unittest.cc", | |
| 139 "notifier/communicator/single_login_attempt_unittest.cc", | |
| 140 "notifier/listener/non_blocking_push_client_unittest.cc", | |
| 141 "notifier/listener/notification_defines_unittest.cc", | |
| 142 "notifier/listener/push_client_unittest.cc", | |
| 143 "notifier/listener/push_notifications_send_update_task_unittest.cc", | |
| 144 "notifier/listener/push_notifications_subscribe_task_unittest.cc", | |
| 145 "notifier/listener/send_ping_task_unittest.cc", | |
| 146 "notifier/listener/xml_element_util_unittest.cc", | |
| 147 "notifier/listener/xmpp_push_client_unittest.cc", | |
| 148 ] | |
| 149 | |
| 150 if (is_android) { | |
| 151 sources -= [ | |
| 152 # TODO(jrg): | |
| 153 # EXPECT_DEBUG_DEATH() uses features not enabled. | |
| 154 # Should we -std=c++0x or -std=gnu++0x? | |
| 155 "glue/chrome_async_socket_unittest.cc", | |
| 156 "notifier/base/xmpp_connection_unittest.cc", | |
| 157 ] | |
| 158 } | |
| 159 | |
| 160 deps = [ | |
| 161 ":jingle_glue", | |
| 162 ":notifier", | |
| 163 ":notifier_test_util", | |
| 164 "//base", | |
| 165 "//base/test:run_all_unittests", | |
| 166 "//base/test:test_support", | |
| 167 "//net", | |
| 168 "//net:test_support", | |
| 169 "//testing/gmock", | |
| 170 "//testing/gtest", | |
| 171 # '../third_party/libjingle/libjingle.gyp:libjingle', # TODO(GYP) | |
| 172 ] | |
| 173 # 'export_dependent_settings': [ | |
| 174 # '../third_party/libjingle/libjingle.gyp:libjingle', | |
| 175 # ], | |
| 176 # TODO(GYP): Replace this with a proper dependency on libjingle. | |
| 177 configs += [ "//content:libjingle_stub_config" ] | |
| 178 direct_dependent_configs = [ "//content:libjingle_stub_config", ] | |
| 179 } | |
| 180 } else { | |
| 181 # !enable_webrtc and is_android | |
| 182 # Stub targets as Android doesn't use libjingle when webrtc is disabled. | |
| 183 source_set("jingle_glue") { } | |
| 184 | |
| 185 source_set("jingle_glue_test_util") { } | |
| 186 | |
| 187 # GYP version: jingle/jingle.gyp:notifier | |
| 188 static_library("notifier") { | |
| 189 sources = [ | |
| 190 "notifier/base/gaia_constants.cc", | |
| 191 "notifier/base/gaia_constants.h", | |
| 192 "notifier/base/notification_method.h", | |
| 193 "notifier/base/notification_method.cc", | |
| 194 "notifier/base/notifier_options.cc", | |
| 195 "notifier/base/notifier_options.h", | |
| 196 ] | |
| 197 deps = [ | |
| 198 "//base", | |
| 199 "//net" | |
| 200 ] | |
| 201 } | |
| 202 | |
| 203 source_set("notifier_test_util") { } | |
| 204 } | |
| OLD | NEW |