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', |
Alex Vakulenko | bf71f70 | 2015-05-18 14:30:56 -0700 | [diff] [blame] | 6 | 'expat', |
Vitaly Buka | 585e9ed | 2015-06-09 10:50:59 -0700 | [diff] [blame] | 7 | 'openssl', |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 8 | 'libchrome-<(libbase_ver)', |
Christopher Wiley | 2d2d92b | 2014-07-29 14:07:10 -0700 | [diff] [blame] | 9 | 'libchromeos-<(libbase_ver)', |
Vitaly Buka | 585e9ed | 2015-06-09 10:50:59 -0700 | [diff] [blame] | 10 | 'system_api', |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 11 | ], |
| 12 | }, |
Vitaly Buka | 912b698 | 2015-07-06 11:13:03 -0700 | [diff] [blame] | 13 | 'include_dirs': [ |
| 14 | '.', |
| 15 | # TODO(vitalybuka): Remove both. |
| 16 | '../libweave/include', |
| 17 | ], |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 18 | }, |
| 19 | 'targets': [ |
| 20 | { |
| 21 | 'target_name': 'buffet_common', |
| 22 | 'type': 'static_library', |
Alex Vakulenko | 2348e42 | 2014-11-21 08:57:57 -0800 | [diff] [blame] | 23 | 'variables': { |
| 24 | 'dbus_adaptors_out_dir': 'include/buffet', |
Alex Vakulenko | c3bac7d | 2014-11-25 14:04:27 -0800 | [diff] [blame] | 25 | 'dbus_service_config': 'dbus_bindings/dbus-service-config.json', |
Alex Vakulenko | 2348e42 | 2014-11-21 08:57:57 -0800 | [diff] [blame] | 26 | }, |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 27 | 'sources': [ |
Alex Vakulenko | 2348e42 | 2014-11-21 08:57:57 -0800 | [diff] [blame] | 28 | 'dbus_bindings/org.chromium.Buffet.Command.xml', |
| 29 | 'dbus_bindings/org.chromium.Buffet.Manager.xml', |
Alex Vakulenko | 420e49f | 2014-12-01 17:53:27 -0800 | [diff] [blame] | 30 | 'dbus_constants.cc', |
Christopher Wiley | a4915c4 | 2014-03-27 14:45:37 -0700 | [diff] [blame] | 31 | 'manager.cc', |
Vitaly Buka | 912b698 | 2015-07-06 11:13:03 -0700 | [diff] [blame] | 32 | '../libweave/src/base_api_handler.cc', |
| 33 | '../libweave/src/buffet_config.cc', |
| 34 | '../libweave/src/commands/cloud_command_proxy.cc', |
| 35 | '../libweave/src/commands/command_definition.cc', |
| 36 | '../libweave/src/commands/command_dictionary.cc', |
| 37 | '../libweave/src/commands/command_instance.cc', |
| 38 | '../libweave/src/commands/command_manager.cc', |
| 39 | '../libweave/src/commands/command_queue.cc', |
| 40 | '../libweave/src/commands/dbus_command_dispatcher.cc', |
| 41 | '../libweave/src/commands/dbus_command_proxy.cc', |
| 42 | '../libweave/src/commands/object_schema.cc', |
| 43 | '../libweave/src/commands/prop_constraints.cc', |
| 44 | '../libweave/src/commands/prop_types.cc', |
| 45 | '../libweave/src/commands/prop_values.cc', |
| 46 | '../libweave/src/commands/schema_constants.cc', |
| 47 | '../libweave/src/commands/schema_utils.cc', |
| 48 | '../libweave/src/commands/user_role.cc', |
Vitaly Buka | 0fa51e5 | 2015-07-10 00:12:25 -0700 | [diff] [blame] | 49 | '../libweave/src/device_manager.cc', |
Vitaly Buka | 912b698 | 2015-07-06 11:13:03 -0700 | [diff] [blame] | 50 | '../libweave/src/device_registration_info.cc', |
| 51 | '../libweave/src/notification/notification_parser.cc', |
| 52 | '../libweave/src/notification/pull_channel.cc', |
| 53 | '../libweave/src/notification/xml_node.cc', |
| 54 | '../libweave/src/notification/xmpp_channel.cc', |
| 55 | '../libweave/src/notification/xmpp_iq_stanza_handler.cc', |
| 56 | '../libweave/src/notification/xmpp_stream_parser.cc', |
| 57 | '../libweave/src/privet/ap_manager_client.cc', |
| 58 | '../libweave/src/privet/cloud_delegate.cc', |
| 59 | '../libweave/src/privet/constants.cc', |
| 60 | '../libweave/src/privet/device_delegate.cc', |
| 61 | '../libweave/src/privet/openssl_utils.cc', |
| 62 | '../libweave/src/privet/peerd_client.cc', |
| 63 | '../libweave/src/privet/privet_handler.cc', |
| 64 | '../libweave/src/privet/privet_manager.cc', |
Vitaly Buka | 7197c1a | 2015-07-17 14:48:30 -0700 | [diff] [blame] | 65 | '../libweave/src/privet/privet_types.cc', |
Vitaly Buka | 912b698 | 2015-07-06 11:13:03 -0700 | [diff] [blame] | 66 | '../libweave/src/privet/security_manager.cc', |
| 67 | '../libweave/src/privet/shill_client.cc', |
Vitaly Buka | 8b4ab96 | 2015-07-14 19:19:39 -0700 | [diff] [blame] | 68 | '../libweave/src/privet/privet_types.cc', |
Vitaly Buka | 912b698 | 2015-07-06 11:13:03 -0700 | [diff] [blame] | 69 | '../libweave/src/privet/wifi_bootstrap_manager.cc', |
| 70 | '../libweave/src/privet/wifi_ssid_generator.cc', |
| 71 | '../libweave/src/registration_status.cc', |
| 72 | '../libweave/src/states/error_codes.cc', |
| 73 | '../libweave/src/states/state_change_queue.cc', |
| 74 | '../libweave/src/states/state_manager.cc', |
| 75 | '../libweave/src/states/state_package.cc', |
| 76 | '../libweave/src/storage_impls.cc', |
| 77 | '../libweave/src/utils.cc', |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 78 | ], |
Alex Vakulenko | 2348e42 | 2014-11-21 08:57:57 -0800 | [diff] [blame] | 79 | 'includes': ['../common-mk/generate-dbus-adaptors.gypi'], |
Alex Vakulenko | 420e49f | 2014-12-01 17:53:27 -0800 | [diff] [blame] | 80 | 'actions': [ |
| 81 | { |
| 82 | 'action_name': 'generate-buffet-proxies', |
| 83 | 'variables': { |
| 84 | 'dbus_service_config': 'dbus_bindings/dbus-service-config.json', |
| 85 | 'proxy_output_file': 'include/buffet/dbus-proxies.h' |
| 86 | }, |
| 87 | 'sources': [ |
| 88 | 'dbus_bindings/org.chromium.Buffet.Command.xml', |
| 89 | 'dbus_bindings/org.chromium.Buffet.Manager.xml', |
| 90 | ], |
| 91 | 'includes': ['../common-mk/generate-dbus-proxies.gypi'], |
| 92 | }, |
Vitaly Buka | 585e9ed | 2015-06-09 10:50:59 -0700 | [diff] [blame] | 93 | { |
| 94 | # Import D-Bus bindings from peerd. |
| 95 | 'action_name': 'generate-peerd-proxies', |
| 96 | 'variables': { |
| 97 | 'dbus_service_config': '../peerd/dbus_bindings/dbus-service-config.json', |
| 98 | 'proxy_output_file': 'include/peerd/dbus-proxies.h' |
| 99 | }, |
| 100 | 'sources': [ |
| 101 | '../peerd/dbus_bindings/org.chromium.peerd.Manager.xml', |
| 102 | '../peerd/dbus_bindings/org.chromium.peerd.Peer.xml', |
| 103 | '../peerd/dbus_bindings/org.chromium.peerd.Service.xml', |
| 104 | ], |
| 105 | 'includes': ['../common-mk/generate-dbus-proxies.gypi'], |
| 106 | }, |
| 107 | { |
| 108 | # Import D-Bus bindings from shill. |
| 109 | 'action_name': 'generate-shill-proxies', |
| 110 | 'variables': { |
| 111 | 'dbus_service_config': '../shill/dbus_bindings/dbus-service-config.json', |
| 112 | 'proxy_output_file': 'include/shill/dbus-proxies.h' |
| 113 | }, |
| 114 | 'sources': [ |
| 115 | '../shill/dbus_bindings/org.chromium.flimflam.Device.xml', |
| 116 | '../shill/dbus_bindings/org.chromium.flimflam.Manager.xml', |
| 117 | '../shill/dbus_bindings/org.chromium.flimflam.Service.xml', |
| 118 | ], |
| 119 | 'includes': ['../common-mk/generate-dbus-proxies.gypi'], |
| 120 | }, |
| 121 | { |
| 122 | # Import D-Bus bindings from apmanager. |
| 123 | 'action_name': 'generate-apmanager-proxies', |
| 124 | 'variables': { |
| 125 | 'dbus_service_config': '../apmanager/dbus_bindings/dbus-service-config.json', |
| 126 | 'proxy_output_file': 'include/apmanager/dbus-proxies.h' |
| 127 | }, |
| 128 | 'sources': [ |
| 129 | '../apmanager/dbus_bindings/org.chromium.apmanager.Config.xml', |
| 130 | '../apmanager/dbus_bindings/org.chromium.apmanager.Device.xml', |
| 131 | '../apmanager/dbus_bindings/org.chromium.apmanager.Manager.xml', |
| 132 | '../apmanager/dbus_bindings/org.chromium.apmanager.Service.xml', |
| 133 | ], |
| 134 | 'includes': ['../common-mk/generate-dbus-proxies.gypi'], |
| 135 | }, |
Alex Vakulenko | 420e49f | 2014-12-01 17:53:27 -0800 | [diff] [blame] | 136 | ], |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 137 | }, |
| 138 | { |
| 139 | 'target_name': 'buffet', |
| 140 | 'type': 'executable', |
Alex Vakulenko | 89d9d5e | 2014-09-12 10:27:23 -0700 | [diff] [blame] | 141 | 'dependencies': [ |
| 142 | 'buffet_common', |
Alex Vakulenko | 89d9d5e | 2014-09-12 10:27:23 -0700 | [diff] [blame] | 143 | ], |
Vitaly Buka | 585e9ed | 2015-06-09 10:50:59 -0700 | [diff] [blame] | 144 | 'variables': { |
| 145 | 'exported_deps': [ |
| 146 | 'libwebserv-<(libbase_ver)', |
| 147 | ], |
| 148 | 'deps': ['<@(exported_deps)'], |
| 149 | }, |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 150 | 'sources': [ |
| 151 | 'main.cc', |
| 152 | ], |
Alex Vakulenko | 89d9d5e | 2014-09-12 10:27:23 -0700 | [diff] [blame] | 153 | }, |
| 154 | { |
| 155 | 'target_name': 'buffet_test_daemon', |
| 156 | 'type': 'executable', |
Alex Vakulenko | 89d9d5e | 2014-09-12 10:27:23 -0700 | [diff] [blame] | 157 | 'sources': [ |
| 158 | 'test_daemon/main.cc', |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 159 | ], |
| 160 | }, |
| 161 | { |
| 162 | 'target_name': 'buffet_client', |
| 163 | 'type': 'executable', |
| 164 | 'sources': [ |
| 165 | 'buffet_client.cc', |
Alex Vakulenko | 3cb466c | 2014-04-15 11:36:32 -0700 | [diff] [blame] | 166 | ], |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 167 | }, |
Alex Vakulenko | e23caf2 | 2014-08-08 15:03:23 -0700 | [diff] [blame] | 168 | ], |
| 169 | 'conditions': [ |
| 170 | ['USE_test == 1', { |
| 171 | 'targets': [ |
| 172 | { |
| 173 | 'target_name': 'buffet_testrunner', |
| 174 | 'type': 'executable', |
| 175 | 'dependencies': [ |
| 176 | 'buffet_common', |
| 177 | ], |
Alex Vakulenko | 4866ac9 | 2014-08-20 12:53:33 -0700 | [diff] [blame] | 178 | 'variables': { |
| 179 | 'deps': [ |
| 180 | 'libchrome-test-<(libbase_ver)', |
Alex Vakulenko | cca2093 | 2014-08-20 17:35:12 -0700 | [diff] [blame] | 181 | 'libchromeos-test-<(libbase_ver)', |
Alex Vakulenko | 4866ac9 | 2014-08-20 12:53:33 -0700 | [diff] [blame] | 182 | ], |
| 183 | }, |
Alex Vakulenko | e23caf2 | 2014-08-08 15:03:23 -0700 | [diff] [blame] | 184 | 'includes': ['../common-mk/common_test.gypi'], |
| 185 | 'sources': [ |
Vitaly Buka | 912b698 | 2015-07-06 11:13:03 -0700 | [diff] [blame] | 186 | '../libweave/src/base_api_handler_unittest.cc', |
| 187 | '../libweave/src/buffet_config_unittest.cc', |
| 188 | '../libweave/src/buffet_testrunner.cc', |
| 189 | '../libweave/src/commands/cloud_command_proxy_unittest.cc', |
| 190 | '../libweave/src/commands/command_definition_unittest.cc', |
| 191 | '../libweave/src/commands/command_dictionary_unittest.cc', |
| 192 | '../libweave/src/commands/command_instance_unittest.cc', |
| 193 | '../libweave/src/commands/command_manager_unittest.cc', |
| 194 | '../libweave/src/commands/command_queue_unittest.cc', |
| 195 | '../libweave/src/commands/dbus_command_dispatcher_unittest.cc', |
| 196 | '../libweave/src/commands/dbus_command_proxy_unittest.cc', |
| 197 | '../libweave/src/commands/object_schema_unittest.cc', |
| 198 | '../libweave/src/commands/schema_utils_unittest.cc', |
| 199 | '../libweave/src/commands/unittest_utils.cc', |
| 200 | '../libweave/src/device_registration_info_unittest.cc', |
| 201 | '../libweave/src/notification/notification_parser_unittest.cc', |
| 202 | '../libweave/src/notification/xml_node_unittest.cc', |
| 203 | '../libweave/src/notification/xmpp_channel_unittest.cc', |
| 204 | '../libweave/src/notification/xmpp_iq_stanza_handler_unittest.cc', |
| 205 | '../libweave/src/notification/xmpp_stream_parser_unittest.cc', |
| 206 | '../libweave/src/privet/privet_handler_unittest.cc', |
| 207 | '../libweave/src/privet/security_manager_unittest.cc', |
| 208 | '../libweave/src/privet/wifi_ssid_generator_unittest.cc', |
| 209 | '../libweave/src/states/state_change_queue_unittest.cc', |
| 210 | '../libweave/src/states/state_manager_unittest.cc', |
| 211 | '../libweave/src/states/state_package_unittest.cc', |
Alex Vakulenko | e23caf2 | 2014-08-08 15:03:23 -0700 | [diff] [blame] | 212 | ], |
| 213 | }, |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 214 | ], |
Alex Vakulenko | e23caf2 | 2014-08-08 15:03:23 -0700 | [diff] [blame] | 215 | }], |
Chris Sosa | 45d9f10 | 2014-03-24 11:18:54 -0700 | [diff] [blame] | 216 | ], |
| 217 | } |