Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 1 | { |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 2 | 'target_defaults': { |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 3 | 'variables': { |
| 4 | 'deps': [ |
| 5 | 'dbus-1', |
| 6 | 'libchrome-<(libbase_ver)', |
Christopher Wiley | 2d2d92b | 2014-07-29 14:07:10 -0700 | [diff] [blame] | 7 | 'libchromeos-<(libbase_ver)', |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 8 | ], |
| 9 | }, |
Alex Vakulenko | 89d9d5e | 2014-09-12 10:27:23 -0700 | [diff] [blame] | 10 | 'include_dirs': ['.'], |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 11 | }, |
| 12 | 'targets': [ |
| 13 | { |
| 14 | 'target_name': 'buffet_common', |
| 15 | 'type': 'static_library', |
Alex Vakulenko | 2348e42 | 2014-11-21 08:57:57 -0800 | [diff] [blame] | 16 | 'variables': { |
| 17 | 'dbus_adaptors_out_dir': 'include/buffet', |
Alex Vakulenko | c3bac7d | 2014-11-25 14:04:27 -0800 | [diff] [blame] | 18 | 'dbus_service_config': 'dbus_bindings/dbus-service-config.json', |
Alex Vakulenko | 2348e42 | 2014-11-21 08:57:57 -0800 | [diff] [blame] | 19 | }, |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 20 | 'sources': [ |
Christopher Wiley | 583d64b | 2015-03-24 14:30:17 -0700 | [diff] [blame] | 21 | 'buffet_config.cc', |
Alex Vakulenko | 7c36b67 | 2014-07-16 14:50:58 -0700 | [diff] [blame] | 22 | 'commands/command_definition.cc', |
| 23 | 'commands/command_dictionary.cc', |
Alex Vakulenko | aa3a559 | 2014-08-07 07:24:06 -0700 | [diff] [blame] | 24 | 'commands/command_instance.cc', |
Alex Vakulenko | 7c36b67 | 2014-07-16 14:50:58 -0700 | [diff] [blame] | 25 | 'commands/command_manager.cc', |
Alex Vakulenko | aa3a559 | 2014-08-07 07:24:06 -0700 | [diff] [blame] | 26 | 'commands/command_queue.cc', |
Alex Vakulenko | 9511075 | 2014-09-03 16:27:21 -0700 | [diff] [blame] | 27 | 'commands/dbus_command_dispatcher.cc', |
Alex Vakulenko | 4866ac9 | 2014-08-20 12:53:33 -0700 | [diff] [blame] | 28 | 'commands/dbus_command_proxy.cc', |
Anton Muhin | 5975552 | 2014-11-05 21:30:12 +0400 | [diff] [blame] | 29 | 'commands/cloud_command_proxy.cc', |
Alex Vakulenko | e439a0f | 2014-05-21 12:26:47 -0700 | [diff] [blame] | 30 | '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 Vakulenko | 66ec292 | 2014-06-17 15:30:22 -0700 | [diff] [blame] | 35 | 'commands/schema_utils.cc', |
Alex Vakulenko | 3cb466c | 2014-04-15 11:36:32 -0700 | [diff] [blame] | 36 | 'device_registration_info.cc', |
Alex Vakulenko | 2348e42 | 2014-11-21 08:57:57 -0800 | [diff] [blame] | 37 | 'dbus_bindings/org.chromium.Buffet.Command.xml', |
| 38 | 'dbus_bindings/org.chromium.Buffet.Manager.xml', |
Alex Vakulenko | 420e49f | 2014-12-01 17:53:27 -0800 | [diff] [blame] | 39 | 'dbus_constants.cc', |
Christopher Wiley | a4915c4 | 2014-03-27 14:45:37 -0700 | [diff] [blame] | 40 | 'manager.cc', |
Christopher Wiley | c900e48 | 2015-02-15 15:42:04 -0800 | [diff] [blame] | 41 | 'registration_status.cc', |
Christopher Wiley | 006e94e | 2014-05-02 13:44:48 -0700 | [diff] [blame] | 42 | 'storage_impls.cc', |
Alex Vakulenko | 07216fe | 2014-09-19 15:31:09 -0700 | [diff] [blame] | 43 | 'states/error_codes.cc', |
Alex Vakulenko | 57123b2 | 2014-10-28 13:50:16 -0700 | [diff] [blame] | 44 | 'states/state_change_queue.cc', |
Alex Vakulenko | 07216fe | 2014-09-19 15:31:09 -0700 | [diff] [blame] | 45 | 'states/state_manager.cc', |
| 46 | 'states/state_package.cc', |
Alex Vakulenko | b04936f | 2014-09-19 14:53:58 -0700 | [diff] [blame] | 47 | 'utils.cc', |
Nathan Bullock | bdabded | 2015-02-10 20:15:53 -0500 | [diff] [blame] | 48 | 'xmpp/xmpp_client.cc', |
| 49 | 'xmpp/xmpp_connection.cc', |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 50 | ], |
Alex Vakulenko | 2348e42 | 2014-11-21 08:57:57 -0800 | [diff] [blame] | 51 | 'includes': ['../common-mk/generate-dbus-adaptors.gypi'], |
Alex Vakulenko | 420e49f | 2014-12-01 17:53:27 -0800 | [diff] [blame] | 52 | 'actions': [ |
| 53 | { |
| 54 | 'action_name': 'generate-buffet-proxies', |
| 55 | 'variables': { |
| 56 | 'dbus_service_config': 'dbus_bindings/dbus-service-config.json', |
| 57 | 'proxy_output_file': 'include/buffet/dbus-proxies.h' |
| 58 | }, |
| 59 | 'sources': [ |
| 60 | 'dbus_bindings/org.chromium.Buffet.Command.xml', |
| 61 | 'dbus_bindings/org.chromium.Buffet.Manager.xml', |
| 62 | ], |
| 63 | 'includes': ['../common-mk/generate-dbus-proxies.gypi'], |
| 64 | }, |
| 65 | ], |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 66 | }, |
| 67 | { |
| 68 | 'target_name': 'buffet', |
| 69 | 'type': 'executable', |
Alex Vakulenko | 89d9d5e | 2014-09-12 10:27:23 -0700 | [diff] [blame] | 70 | 'dependencies': [ |
| 71 | 'buffet_common', |
Alex Vakulenko | 89d9d5e | 2014-09-12 10:27:23 -0700 | [diff] [blame] | 72 | ], |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 73 | 'sources': [ |
| 74 | 'main.cc', |
| 75 | ], |
Alex Vakulenko | 89d9d5e | 2014-09-12 10:27:23 -0700 | [diff] [blame] | 76 | }, |
| 77 | { |
| 78 | 'target_name': 'buffet_test_daemon', |
| 79 | 'type': 'executable', |
Alex Vakulenko | 89d9d5e | 2014-09-12 10:27:23 -0700 | [diff] [blame] | 80 | 'sources': [ |
| 81 | 'test_daemon/main.cc', |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 82 | ], |
| 83 | }, |
| 84 | { |
| 85 | 'target_name': 'buffet_client', |
| 86 | 'type': 'executable', |
| 87 | 'sources': [ |
| 88 | 'buffet_client.cc', |
Alex Vakulenko | 3cb466c | 2014-04-15 11:36:32 -0700 | [diff] [blame] | 89 | ], |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 90 | }, |
Alex Vakulenko | e23caf2 | 2014-08-08 15:03:23 -0700 | [diff] [blame] | 91 | ], |
| 92 | 'conditions': [ |
| 93 | ['USE_test == 1', { |
| 94 | 'targets': [ |
| 95 | { |
| 96 | 'target_name': 'buffet_testrunner', |
| 97 | 'type': 'executable', |
| 98 | 'dependencies': [ |
| 99 | 'buffet_common', |
| 100 | ], |
Alex Vakulenko | 4866ac9 | 2014-08-20 12:53:33 -0700 | [diff] [blame] | 101 | 'variables': { |
| 102 | 'deps': [ |
| 103 | 'libchrome-test-<(libbase_ver)', |
Alex Vakulenko | cca2093 | 2014-08-20 17:35:12 -0700 | [diff] [blame] | 104 | 'libchromeos-test-<(libbase_ver)', |
Alex Vakulenko | 4866ac9 | 2014-08-20 12:53:33 -0700 | [diff] [blame] | 105 | ], |
| 106 | }, |
Alex Vakulenko | e23caf2 | 2014-08-08 15:03:23 -0700 | [diff] [blame] | 107 | 'includes': ['../common-mk/common_test.gypi'], |
| 108 | 'sources': [ |
Alex Vakulenko | e23caf2 | 2014-08-08 15:03:23 -0700 | [diff] [blame] | 109 | 'buffet_testrunner.cc', |
| 110 | 'commands/command_definition_unittest.cc', |
| 111 | 'commands/command_dictionary_unittest.cc', |
| 112 | 'commands/command_instance_unittest.cc', |
| 113 | 'commands/command_manager_unittest.cc', |
| 114 | 'commands/command_queue_unittest.cc', |
Alex Vakulenko | 9511075 | 2014-09-03 16:27:21 -0700 | [diff] [blame] | 115 | 'commands/dbus_command_dispatcher_unittest.cc', |
Alex Vakulenko | 4866ac9 | 2014-08-20 12:53:33 -0700 | [diff] [blame] | 116 | 'commands/dbus_command_proxy_unittest.cc', |
Alex Vakulenko | e23caf2 | 2014-08-08 15:03:23 -0700 | [diff] [blame] | 117 | 'commands/object_schema_unittest.cc', |
| 118 | 'commands/schema_utils_unittest.cc', |
| 119 | 'commands/unittest_utils.cc', |
Alex Vakulenko | e23caf2 | 2014-08-08 15:03:23 -0700 | [diff] [blame] | 120 | 'device_registration_info_unittest.cc', |
Alex Vakulenko | 57123b2 | 2014-10-28 13:50:16 -0700 | [diff] [blame] | 121 | 'states/state_change_queue_unittest.cc', |
Alex Vakulenko | 07216fe | 2014-09-19 15:31:09 -0700 | [diff] [blame] | 122 | 'states/state_manager_unittest.cc', |
| 123 | 'states/state_package_unittest.cc', |
Nathan Bullock | bdabded | 2015-02-10 20:15:53 -0500 | [diff] [blame] | 124 | 'xmpp/xmpp_client_unittest.cc', |
Alex Vakulenko | e23caf2 | 2014-08-08 15:03:23 -0700 | [diff] [blame] | 125 | ], |
| 126 | }, |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 127 | ], |
Alex Vakulenko | e23caf2 | 2014-08-08 15:03:23 -0700 | [diff] [blame] | 128 | }], |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 129 | ], |
| 130 | } |