OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'variables': { |
| 7 'chromium_code': 1, |
| 8 }, # variables |
| 9 'targets': [ |
| 10 # A library for sending and receiving peer-issued notifications. |
| 11 # |
| 12 # TODO(akalin): Separate out the XMPP stuff from this library into |
| 13 # its own library. |
| 14 { |
| 15 'target_name': 'notifier', |
| 16 'type': '<(library)', |
| 17 'sources': [ |
| 18 'notifier/base/signal_thread_task.h', |
| 19 'notifier/base/ssl_adapter.h', |
| 20 'notifier/base/ssl_adapter.cc', |
| 21 'notifier/base/static_assert.h', |
| 22 'notifier/base/task_pump.cc', |
| 23 'notifier/base/task_pump.h', |
| 24 'notifier/communicator/auto_reconnect.cc', |
| 25 'notifier/communicator/auto_reconnect.h', |
| 26 'notifier/communicator/connection_options.cc', |
| 27 'notifier/communicator/connection_options.h', |
| 28 'notifier/communicator/connection_settings.cc', |
| 29 'notifier/communicator/connection_settings.h', |
| 30 'notifier/communicator/const_communicator.h', |
| 31 'notifier/communicator/gaia_token_pre_xmpp_auth.cc', |
| 32 'notifier/communicator/gaia_token_pre_xmpp_auth.h', |
| 33 'notifier/communicator/login.cc', |
| 34 'notifier/communicator/login.h', |
| 35 'notifier/communicator/login_connection_state.h', |
| 36 'notifier/communicator/login_failure.cc', |
| 37 'notifier/communicator/login_failure.h', |
| 38 'notifier/communicator/login_settings.cc', |
| 39 'notifier/communicator/login_settings.h', |
| 40 'notifier/communicator/product_info.cc', |
| 41 'notifier/communicator/product_info.h', |
| 42 'notifier/communicator/single_login_attempt.cc', |
| 43 'notifier/communicator/single_login_attempt.h', |
| 44 'notifier/communicator/ssl_socket_adapter.cc', |
| 45 'notifier/communicator/ssl_socket_adapter.h', |
| 46 'notifier/communicator/xmpp_connection_generator.cc', |
| 47 'notifier/communicator/xmpp_connection_generator.h', |
| 48 'notifier/communicator/xmpp_socket_adapter.cc', |
| 49 'notifier/communicator/xmpp_socket_adapter.h', |
| 50 'notifier/listener/listen_task.cc', |
| 51 'notifier/listener/listen_task.h', |
| 52 'notifier/listener/mediator_thread.h', |
| 53 'notifier/listener/mediator_thread_impl.cc', |
| 54 'notifier/listener/mediator_thread_impl.h', |
| 55 'notifier/listener/mediator_thread_mock.h', |
| 56 'notifier/listener/notification_constants.cc', |
| 57 'notifier/listener/notification_constants.h', |
| 58 'notifier/listener/notification_defines.h', |
| 59 'notifier/listener/send_update_task.cc', |
| 60 'notifier/listener/send_update_task.h', |
| 61 'notifier/base/sigslotrepeater.h', |
| 62 'notifier/listener/subscribe_task.cc', |
| 63 'notifier/listener/subscribe_task.h', |
| 64 'notifier/listener/talk_mediator.h', |
| 65 'notifier/listener/talk_mediator_impl.cc', |
| 66 'notifier/listener/talk_mediator_impl.h', |
| 67 'notifier/listener/xml_element_util.cc', |
| 68 'notifier/listener/xml_element_util.h', |
| 69 ], |
| 70 'defines' : [ |
| 71 '_CRT_SECURE_NO_WARNINGS', |
| 72 '_USE_32BIT_TIME_T', |
| 73 'kXmppProductName="chromium-sync"', |
| 74 ], |
| 75 'dependencies': [ |
| 76 '../base/base.gyp:base', |
| 77 '../net/net.gyp:net', |
| 78 '../third_party/expat/expat.gyp:expat', |
| 79 '../third_party/libjingle/libjingle.gyp:libjingle', |
| 80 ], |
| 81 'export_dependent_settings': [ |
| 82 '../third_party/libjingle/libjingle.gyp:libjingle', |
| 83 ], |
| 84 'conditions': [ |
| 85 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { |
| 86 'dependencies': [ |
| 87 '../build/linux/system.gyp:gtk' |
| 88 ], |
| 89 }], |
| 90 ['OS=="linux" and chromeos==1', { |
| 91 'include_dirs': [ |
| 92 '<(grit_out_dir)', |
| 93 ], |
| 94 }], |
| 95 ], |
| 96 }, |
| 97 { |
| 98 'target_name': 'notifier_unit_tests', |
| 99 'type': 'executable', |
| 100 'sources': [ |
| 101 # TODO(akalin): Write our own test suite and runner. |
| 102 '../base/test/run_all_unittests.cc', |
| 103 '../base/test/test_suite.h', |
| 104 'notifier/listener/talk_mediator_unittest.cc', |
| 105 'notifier/listener/send_update_task_unittest.cc', |
| 106 'notifier/listener/subscribe_task_unittest.cc', |
| 107 'notifier/listener/xml_element_util_unittest.cc', |
| 108 ], |
| 109 'include_dirs': [ |
| 110 '..', |
| 111 ], |
| 112 'dependencies': [ |
| 113 'notifier', |
| 114 '../base/base.gyp:base', |
| 115 '../testing/gmock.gyp:gmock', |
| 116 '../testing/gtest.gyp:gtest', |
| 117 '../third_party/libjingle/libjingle.gyp:libjingle', |
| 118 ], |
| 119 # TODO(akalin): Remove this once we have our own test suite and |
| 120 # runner. |
| 121 'conditions': [ |
| 122 ['OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"
', { |
| 123 'dependencies': [ |
| 124 # Needed to handle the #include chain: |
| 125 # base/test/test_suite.h |
| 126 # gtk/gtk.h |
| 127 '../build/linux/system.gyp:gtk', |
| 128 ], |
| 129 }], |
| 130 ], |
| 131 }, |
| 132 ], |
| 133 } |
| 134 |
| 135 # Local Variables: |
| 136 # tab-width:2 |
| 137 # indent-tabs-mode:nil |
| 138 # End: |
| 139 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |