blob: 820b25c9a05fd11117cd591a8efc27e2497a5a2b [file] [log] [blame]
Chris Sosa45d9f102014-03-24 11:18:54 -07001{
Chris Sosa45d9f102014-03-24 11:18:54 -07002 'target_defaults': {
Chris Sosa45d9f102014-03-24 11:18:54 -07003 'variables': {
4 'deps': [
5 'dbus-1',
6 'libchrome-<(libbase_ver)',
Christopher Wiley2ab1bec2014-04-11 11:04:49 -07007 'libchrome-test-<(libbase_ver)',
Christopher Wiley2d2d92b2014-07-29 14:07:10 -07008 'libchromeos-<(libbase_ver)',
Chris Sosa45d9f102014-03-24 11:18:54 -07009 'libcurl',
Bertrand SIMONNET6458a6e2014-06-20 14:35:27 -070010 'libmetrics-<(libbase_ver)',
Chris Sosa45d9f102014-03-24 11:18:54 -070011 ],
12 },
Alex Vakulenko60f304c2014-04-14 15:17:25 -070013 'link_settings': {
14 'libraries': [
Christopher Wiley90016242014-04-01 17:33:29 -070015 '-lbase-dbus_test_support-<(libbase_ver)',
Alex Vakulenko60f304c2014-04-14 15:17:25 -070016 ],
17 },
Chris Sosa45d9f102014-03-24 11:18:54 -070018 },
19 'targets': [
20 {
21 'target_name': 'buffet_common',
22 'type': 'static_library',
23 'sources': [
Alex Vakulenkob6513a12014-05-05 17:23:40 -070024 'any.cc',
Alex Vakulenko7c36b672014-07-16 14:50:58 -070025 'commands/command_definition.cc',
26 'commands/command_dictionary.cc',
Alex Vakulenkoaa3a5592014-08-07 07:24:06 -070027 'commands/command_instance.cc',
Alex Vakulenko7c36b672014-07-16 14:50:58 -070028 'commands/command_manager.cc',
Alex Vakulenkoaa3a5592014-08-07 07:24:06 -070029 'commands/command_queue.cc',
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070030 'commands/object_schema.cc',
31 'commands/prop_constraints.cc',
32 'commands/prop_types.cc',
33 'commands/prop_values.cc',
34 'commands/schema_constants.cc',
Alex Vakulenko66ec2922014-06-17 15:30:22 -070035 'commands/schema_utils.cc',
Chris Sosa45d9f102014-03-24 11:18:54 -070036 'data_encoding.cc',
Christopher Wileyeb19fa02014-03-27 13:27:30 -070037 'dbus_constants.cc',
Christopher Wileya4915c42014-03-27 14:45:37 -070038 'dbus_utils.cc',
Alex Vakulenko3cb466c2014-04-15 11:36:32 -070039 'device_registration_info.cc',
Alex Vakulenkob3aac252014-05-07 17:35:24 -070040 'error.cc',
Alex Vakulenkoc30f8212014-07-22 07:27:22 -070041 'error_codes.cc',
Christopher Wileycec927c2014-04-15 16:26:47 -070042 'exported_object_manager.cc',
Chris Sosa45d9f102014-03-24 11:18:54 -070043 'http_request.cc',
Alex Vakulenkoa3062c52014-04-21 17:05:51 -070044 'http_connection_curl.cc',
Chris Sosa45d9f102014-03-24 11:18:54 -070045 'http_transport_curl.cc',
46 'http_utils.cc',
Christopher Wileya4915c42014-03-27 14:45:37 -070047 'manager.cc',
Chris Sosa45d9f102014-03-24 11:18:54 -070048 'mime_utils.cc',
Christopher Wiley006e94e2014-05-02 13:44:48 -070049 'storage_impls.cc',
Chris Sosa45d9f102014-03-24 11:18:54 -070050 'string_utils.cc',
Alex Vakulenkobda220a2014-04-18 15:25:44 -070051 'url_utils.cc'
Chris Sosa45d9f102014-03-24 11:18:54 -070052 ],
53 },
54 {
55 'target_name': 'buffet',
56 'type': 'executable',
57 'sources': [
58 'main.cc',
59 ],
60 'dependencies': [
61 'buffet_common',
62 ],
63 },
64 {
65 'target_name': 'buffet_client',
66 'type': 'executable',
67 'sources': [
68 'buffet_client.cc',
Christopher Wileyeb19fa02014-03-27 13:27:30 -070069 'dbus_constants.cc',
Chris Sosa45d9f102014-03-24 11:18:54 -070070 ],
Alex Vakulenko3cb466c2014-04-15 11:36:32 -070071 'dependencies': [
72 'buffet_common',
73 ],
Chris Sosa45d9f102014-03-24 11:18:54 -070074 },
75 {
76 'target_name': 'buffet_testrunner',
77 'type': 'executable',
78 'dependencies': [
79 'buffet_common',
80 ],
Alex Vakulenko60f304c2014-04-14 15:17:25 -070081 'includes': ['../common-mk/common_test.gypi'],
Chris Sosa45d9f102014-03-24 11:18:54 -070082 'sources': [
Alex Vakulenkob6513a12014-05-05 17:23:40 -070083 'any_unittest.cc',
84 'any_internal_impl_unittest.cc',
Chris Sosa45d9f102014-03-24 11:18:54 -070085 'buffet_testrunner.cc',
Alex Vakulenko7c36b672014-07-16 14:50:58 -070086 'commands/command_definition_unittest.cc',
87 'commands/command_dictionary_unittest.cc',
Alex Vakulenkoaa3a5592014-08-07 07:24:06 -070088 'commands/command_instance_unittest.cc',
Alex Vakulenko7c36b672014-07-16 14:50:58 -070089 'commands/command_manager_unittest.cc',
Alex Vakulenkoaa3a5592014-08-07 07:24:06 -070090 'commands/command_queue_unittest.cc',
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070091 'commands/object_schema_unittest.cc',
Alex Vakulenko66ec2922014-06-17 15:30:22 -070092 'commands/schema_utils_unittest.cc',
Alex Vakulenko6201d2d2014-07-16 14:46:48 -070093 'commands/unittest_utils.cc',
Chris Sosa45d9f102014-03-24 11:18:54 -070094 'data_encoding_unittest.cc',
Alex Vakulenko8e34d392014-04-29 11:02:56 -070095 'device_registration_info_unittest.cc',
Alex Vakulenkob3aac252014-05-07 17:35:24 -070096 'error_unittest.cc',
Christopher Wileycec927c2014-04-15 16:26:47 -070097 'exported_object_manager_unittest.cc',
Alex Vakulenko9cd5e272014-04-25 17:26:11 -070098 'http_connection_fake.cc',
99 'http_transport_fake.cc',
Alex Vakulenkoa3062c52014-04-21 17:05:51 -0700100 'http_utils_unittest.cc',
Chris Sosa45d9f102014-03-24 11:18:54 -0700101 'mime_utils_unittest.cc',
102 'string_utils_unittest.cc',
Alex Vakulenkobda220a2014-04-18 15:25:44 -0700103 'url_utils_unittest.cc'
Chris Sosa45d9f102014-03-24 11:18:54 -0700104 ],
105 },
106 ],
107}