blob: f997532b701cd2fa0cf2108853da826b11d1f9a3 [file] [log] [blame]
Chris Sosa45d9f102014-03-24 11:18:54 -07001{
Chris Sosa45d9f102014-03-24 11:18:54 -07002 'target_defaults': {
3 'dependencies': [
Alex Vakulenko60f304c2014-04-14 15:17:25 -07004 '<(platform_root)/metrics/libmetrics-<(libbase_ver).gyp:libmetrics-<(libbase_ver)',
Chris Sosa45d9f102014-03-24 11:18:54 -07005 ],
6 'variables': {
7 'deps': [
8 'dbus-1',
9 'libchrome-<(libbase_ver)',
Christopher Wiley2ab1bec2014-04-11 11:04:49 -070010 'libchrome-test-<(libbase_ver)',
Chris Sosa45d9f102014-03-24 11:18:54 -070011 'libcurl',
12 ],
13 },
Alex Vakulenko60f304c2014-04-14 15:17:25 -070014 # TODO(sosa): Remove gflags: crbug.com/356745.
15 'link_settings': {
16 'libraries': [
17 '-lgflags',
Christopher Wiley90016242014-04-01 17:33:29 -070018 '-lbase-dbus_test_support-<(libbase_ver)',
Alex Vakulenko60f304c2014-04-14 15:17:25 -070019 ],
20 },
Chris Sosa45d9f102014-03-24 11:18:54 -070021 'cflags_cc': [
22 '-std=gnu++11',
Chris Sosa45d9f102014-03-24 11:18:54 -070023 ],
24 },
25 'targets': [
26 {
27 'target_name': 'buffet_common',
28 'type': 'static_library',
29 'sources': [
Alex Vakulenkob6513a12014-05-05 17:23:40 -070030 'any.cc',
Alex Vakulenkob3aac252014-05-07 17:35:24 -070031 'async_event_sequencer.cc',
Chris Sosa45d9f102014-03-24 11:18:54 -070032 'data_encoding.cc',
Christopher Wileyeb19fa02014-03-27 13:27:30 -070033 'dbus_constants.cc',
Christopher Wileya4915c42014-03-27 14:45:37 -070034 'dbus_utils.cc',
Alex Vakulenko3cb466c2014-04-15 11:36:32 -070035 'device_registration_info.cc',
Alex Vakulenkob3aac252014-05-07 17:35:24 -070036 'error.cc',
Christopher Wileycec927c2014-04-15 16:26:47 -070037 'exported_object_manager.cc',
Christopher Wiley639477c2014-03-27 14:49:39 -070038 'exported_property_set.cc',
Chris Sosa45d9f102014-03-24 11:18:54 -070039 'http_request.cc',
Alex Vakulenkoa3062c52014-04-21 17:05:51 -070040 'http_connection_curl.cc',
Chris Sosa45d9f102014-03-24 11:18:54 -070041 'http_transport_curl.cc',
42 'http_utils.cc',
Christopher Wileya4915c42014-03-27 14:45:37 -070043 'manager.cc',
Chris Sosa45d9f102014-03-24 11:18:54 -070044 'mime_utils.cc',
Christopher Wiley006e94e2014-05-02 13:44:48 -070045 'storage_impls.cc',
Chris Sosa45d9f102014-03-24 11:18:54 -070046 'string_utils.cc',
Alex Vakulenkobda220a2014-04-18 15:25:44 -070047 'url_utils.cc'
Chris Sosa45d9f102014-03-24 11:18:54 -070048 ],
49 },
50 {
51 'target_name': 'buffet',
52 'type': 'executable',
53 'sources': [
54 'main.cc',
55 ],
56 'dependencies': [
57 'buffet_common',
58 ],
59 },
60 {
61 'target_name': 'buffet_client',
62 'type': 'executable',
63 'sources': [
64 'buffet_client.cc',
Christopher Wileyeb19fa02014-03-27 13:27:30 -070065 'dbus_constants.cc',
Chris Sosa45d9f102014-03-24 11:18:54 -070066 ],
Alex Vakulenko3cb466c2014-04-15 11:36:32 -070067 'dependencies': [
68 'buffet_common',
69 ],
Chris Sosa45d9f102014-03-24 11:18:54 -070070 },
71 {
72 'target_name': 'buffet_testrunner',
73 'type': 'executable',
74 'dependencies': [
75 'buffet_common',
76 ],
Alex Vakulenko60f304c2014-04-14 15:17:25 -070077 'includes': ['../common-mk/common_test.gypi'],
Chris Sosa45d9f102014-03-24 11:18:54 -070078 'sources': [
Alex Vakulenkob6513a12014-05-05 17:23:40 -070079 'any_unittest.cc',
80 'any_internal_impl_unittest.cc',
Alex Vakulenko9cd5e272014-04-25 17:26:11 -070081 'async_event_sequencer_unittest.cc',
Chris Sosa45d9f102014-03-24 11:18:54 -070082 'buffet_testrunner.cc',
83 'data_encoding_unittest.cc',
Alex Vakulenko8e34d392014-04-29 11:02:56 -070084 'device_registration_info_unittest.cc',
Alex Vakulenkob3aac252014-05-07 17:35:24 -070085 'error_unittest.cc',
Christopher Wileycec927c2014-04-15 16:26:47 -070086 'exported_object_manager_unittest.cc',
Christopher Wiley639477c2014-03-27 14:49:39 -070087 'exported_property_set_unittest.cc',
Alex Vakulenko9cd5e272014-04-25 17:26:11 -070088 'http_connection_fake.cc',
89 'http_transport_fake.cc',
Alex Vakulenkoa3062c52014-04-21 17:05:51 -070090 'http_utils_unittest.cc',
Chris Sosa45d9f102014-03-24 11:18:54 -070091 'mime_utils_unittest.cc',
92 'string_utils_unittest.cc',
Alex Vakulenkobda220a2014-04-18 15:25:44 -070093 'url_utils_unittest.cc'
Chris Sosa45d9f102014-03-24 11:18:54 -070094 ],
95 },
96 ],
97}