OLD | NEW |
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, # variables | 8 }, # variables |
9 'targets': [ | 9 'targets': [ |
| 10 # A library of various utils for integration with libjingle. |
| 11 { |
| 12 'target_name': 'jingle_glue', |
| 13 'type': '<(library)', |
| 14 'sources': [ |
| 15 'glue/thread_wrapper.cc', |
| 16 'glue/thread_wrapper.h', |
| 17 ], |
| 18 'dependencies': [ |
| 19 '../base/base.gyp:base', |
| 20 '../third_party/libjingle/libjingle.gyp:libjingle', |
| 21 ], |
| 22 'export_dependent_settings': [ |
| 23 '../third_party/libjingle/libjingle.gyp:libjingle', |
| 24 ], |
| 25 }, |
10 # A library for sending and receiving peer-issued notifications. | 26 # A library for sending and receiving peer-issued notifications. |
11 # | 27 # |
12 # TODO(akalin): Separate out the XMPP stuff from this library into | 28 # TODO(akalin): Separate out the XMPP stuff from this library into |
13 # its own library. | 29 # its own library. |
14 { | 30 { |
15 'target_name': 'notifier', | 31 'target_name': 'notifier', |
16 'type': '<(library)', | 32 'type': '<(library)', |
17 'sources': [ | 33 'sources': [ |
18 'notifier/base/chrome_async_socket.cc', | 34 'notifier/base/chrome_async_socket.cc', |
19 'notifier/base/chrome_async_socket.h', | 35 'notifier/base/chrome_async_socket.h', |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 'notifier/base/fake_base_task.cc', | 112 'notifier/base/fake_base_task.cc', |
97 'notifier/base/fake_base_task.h', | 113 'notifier/base/fake_base_task.h', |
98 ], | 114 ], |
99 'dependencies': [ | 115 'dependencies': [ |
100 'notifier', | 116 'notifier', |
101 '../base/base.gyp:base', | 117 '../base/base.gyp:base', |
102 '../testing/gmock.gyp:gmock', | 118 '../testing/gmock.gyp:gmock', |
103 ], | 119 ], |
104 }, | 120 }, |
105 { | 121 { |
106 'target_name': 'notifier_unit_tests', | 122 'target_name': 'jingle_unittests', |
107 'type': 'executable', | 123 'type': 'executable', |
108 'sources': [ | 124 'sources': [ |
109 # TODO(akalin): Write our own test suite and runner. | 125 'glue/thread_wrapper_unittest.cc', |
110 '../base/test/run_all_unittests.cc', | |
111 'notifier/base/chrome_async_socket_unittest.cc', | 126 'notifier/base/chrome_async_socket_unittest.cc', |
112 'notifier/base/fake_ssl_client_socket_unittest.cc', | 127 'notifier/base/fake_ssl_client_socket_unittest.cc', |
113 'notifier/base/xmpp_connection_unittest.cc', | 128 'notifier/base/xmpp_connection_unittest.cc', |
114 'notifier/base/weak_xmpp_client_unittest.cc', | 129 'notifier/base/weak_xmpp_client_unittest.cc', |
115 'notifier/communicator/xmpp_connection_generator_unittest.cc', | 130 'notifier/communicator/xmpp_connection_generator_unittest.cc', |
116 'notifier/listener/mediator_thread_mock.cc', | 131 'notifier/listener/mediator_thread_mock.cc', |
117 'notifier/listener/mediator_thread_mock.h', | 132 'notifier/listener/mediator_thread_mock.h', |
118 'notifier/listener/push_notifications_send_update_task_unittest.cc', | 133 'notifier/listener/push_notifications_send_update_task_unittest.cc', |
119 'notifier/listener/push_notifications_subscribe_task_unittest.cc', | 134 'notifier/listener/push_notifications_subscribe_task_unittest.cc', |
120 'notifier/listener/talk_mediator_unittest.cc', | 135 'notifier/listener/talk_mediator_unittest.cc', |
121 'notifier/listener/xml_element_util_unittest.cc', | 136 'notifier/listener/xml_element_util_unittest.cc', |
| 137 'run_all_unittests.cc', |
122 ], | 138 ], |
123 'include_dirs': [ | 139 'include_dirs': [ |
124 '..', | 140 '..', |
125 ], | 141 ], |
126 'dependencies': [ | 142 'dependencies': [ |
| 143 'jingle_glue', |
127 'notifier', | 144 'notifier', |
128 'notifier_test_util', | 145 'notifier_test_util', |
129 '../base/base.gyp:base', | 146 '../base/base.gyp:base', |
130 '../base/base.gyp:test_support_base', | 147 '../base/base.gyp:test_support_base', |
131 '../net/net.gyp:net', | 148 '../net/net.gyp:net', |
132 '../net/net.gyp:net_test_support', | 149 '../net/net.gyp:net_test_support', |
133 '../testing/gmock.gyp:gmock', | 150 '../testing/gmock.gyp:gmock', |
134 '../testing/gtest.gyp:gtest', | 151 '../testing/gtest.gyp:gtest', |
135 '../third_party/libjingle/libjingle.gyp:libjingle', | 152 '../third_party/libjingle/libjingle.gyp:libjingle', |
136 ], | 153 ], |
137 # TODO(akalin): Remove this once we have our own test suite and | |
138 # runner. | |
139 'conditions': [ | |
140 ['OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"
', { | |
141 'dependencies': [ | |
142 # Needed to handle the #include chain: | |
143 # base/test/test_suite.h | |
144 # gtk/gtk.h | |
145 '../build/linux/system.gyp:gtk', | |
146 ], | |
147 }], | |
148 ], | |
149 }, | 154 }, |
150 ], | 155 ], |
151 } | 156 } |
152 | 157 |
153 # Local Variables: | 158 # Local Variables: |
154 # tab-width:2 | 159 # tab-width:2 |
155 # indent-tabs-mode:nil | 160 # indent-tabs-mode:nil |
156 # End: | 161 # End: |
157 # vim: set expandtab tabstop=2 shiftwidth=2: | 162 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |