Index: chrome/browser/sync/tools/sync_tools.gyp |
diff --git a/chrome/browser/sync/tools/sync_tools.gyp b/chrome/browser/sync/tools/sync_tools.gyp |
index 6059ea82df0af247eafe4785ee82fd8755c48b17..02050246b81e87a28937c074145e6b4943af37d5 100644 |
--- a/chrome/browser/sync/tools/sync_tools.gyp |
+++ b/chrome/browser/sync/tools/sync_tools.gyp |
@@ -3,11 +3,24 @@ |
# found in the LICENSE file. |
{ |
- 'defines': [ |
- 'FEATURE_ENABLE_SSL', |
- ], |
'targets': [ |
{ |
+ 'target_name': 'chrome_async_socket', |
+ 'type': '<(library)', |
+ 'sources': [ |
+ 'chrome_async_socket.cc', |
+ 'chrome_async_socket.h', |
+ ], |
+ 'dependencies': [ |
+ '<(DEPTH)/base/base.gyp:base', |
+ '<(DEPTH)/net/net.gyp:net', |
+ '<(DEPTH)/third_party/libjingle/libjingle.gyp:libjingle', |
+ ], |
+ 'export_dependent_settings': [ |
+ '<(DEPTH)/third_party/libjingle/libjingle.gyp:libjingle', |
+ ], |
+ }, |
+ { |
'target_name': 'sync_listen_notifications', |
'type': 'executable', |
'sources': [ |
@@ -19,6 +32,7 @@ |
'<(DEPTH)/chrome/browser/sync/sync_constants.h', |
], |
'dependencies': [ |
+ 'chrome_async_socket', |
'<(DEPTH)/base/base.gyp:base', |
'<(DEPTH)/chrome/chrome.gyp:common_constants', |
'<(DEPTH)/chrome/chrome.gyp:sync_notifier', |
@@ -26,6 +40,35 @@ |
'<(DEPTH)/third_party/libjingle/libjingle.gyp:libjingle', |
], |
}, |
+ { |
+ 'target_name': 'chrome_async_socket_unit_tests', |
+ 'type': 'executable', |
+ 'sources': [ |
+ # TODO(akalin): Write our own test suite and runner. |
+ '<(DEPTH)/base/test/run_all_unittests.cc', |
+ '<(DEPTH)/base/test/test_suite.h', |
+ 'chrome_async_socket_unittest.cc', |
+ ], |
+ 'dependencies': [ |
+ 'chrome_async_socket', |
+ '<(DEPTH)/base/base.gyp:base', |
+ '<(DEPTH)/net/net.gyp:net', |
+ '<(DEPTH)/net/net.gyp:net_test_support', |
+ '<(DEPTH)/testing/gtest.gyp:gtest', |
+ ], |
+ # TODO(akalin): Remove this once we have our own test suite and |
+ # runner. |
+ 'conditions': [ |
+ ['OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { |
+ 'dependencies': [ |
+ # Needed to handle the #include chain: |
+ # base/test/test_suite.h |
+ # gtk/gtk.h |
+ '<(DEPTH)/build/linux/system.gyp:gtk', |
+ ], |
+ }], |
+ ], |
+ }, |
], |
} |