|  | { | 
|  | 'target_defaults': { | 
|  | 'variables': { | 
|  | 'deps': [ | 
|  | 'dbus-1', | 
|  | 'libchrome-<(libbase_ver)', | 
|  | 'libchromeos-<(libbase_ver)', | 
|  | ], | 
|  | }, | 
|  | 'include_dirs': ['.'], | 
|  | }, | 
|  | 'targets': [ | 
|  | { | 
|  | 'target_name': 'buffet_common', | 
|  | 'type': 'static_library', | 
|  | 'variables': { | 
|  | 'dbus_adaptors_out_dir': 'include/buffet', | 
|  | 'dbus_service_config': 'dbus_bindings/dbus-service-config.json', | 
|  | }, | 
|  | 'sources': [ | 
|  | 'buffet_config.cc', | 
|  | 'commands/command_definition.cc', | 
|  | 'commands/command_dictionary.cc', | 
|  | 'commands/command_instance.cc', | 
|  | 'commands/command_manager.cc', | 
|  | 'commands/command_queue.cc', | 
|  | 'commands/dbus_command_dispatcher.cc', | 
|  | 'commands/dbus_command_proxy.cc', | 
|  | 'commands/cloud_command_proxy.cc', | 
|  | 'commands/object_schema.cc', | 
|  | 'commands/prop_constraints.cc', | 
|  | 'commands/prop_types.cc', | 
|  | 'commands/prop_values.cc', | 
|  | 'commands/schema_constants.cc', | 
|  | 'commands/schema_utils.cc', | 
|  | 'device_registration_info.cc', | 
|  | 'dbus_bindings/org.chromium.Buffet.Command.xml', | 
|  | 'dbus_bindings/org.chromium.Buffet.Manager.xml', | 
|  | 'dbus_constants.cc', | 
|  | 'manager.cc', | 
|  | 'registration_status.cc', | 
|  | 'storage_impls.cc', | 
|  | 'states/error_codes.cc', | 
|  | 'states/state_change_queue.cc', | 
|  | 'states/state_manager.cc', | 
|  | 'states/state_package.cc', | 
|  | 'utils.cc', | 
|  | 'xmpp/xmpp_client.cc', | 
|  | 'xmpp/xmpp_connection.cc', | 
|  | ], | 
|  | 'includes': ['../common-mk/generate-dbus-adaptors.gypi'], | 
|  | 'actions': [ | 
|  | { | 
|  | 'action_name': 'generate-buffet-proxies', | 
|  | 'variables': { | 
|  | 'dbus_service_config': 'dbus_bindings/dbus-service-config.json', | 
|  | 'proxy_output_file': 'include/buffet/dbus-proxies.h' | 
|  | }, | 
|  | 'sources': [ | 
|  | 'dbus_bindings/org.chromium.Buffet.Command.xml', | 
|  | 'dbus_bindings/org.chromium.Buffet.Manager.xml', | 
|  | ], | 
|  | 'includes': ['../common-mk/generate-dbus-proxies.gypi'], | 
|  | }, | 
|  | ], | 
|  | }, | 
|  | { | 
|  | 'target_name': 'buffet', | 
|  | 'type': 'executable', | 
|  | 'dependencies': [ | 
|  | 'buffet_common', | 
|  | ], | 
|  | 'sources': [ | 
|  | 'main.cc', | 
|  | ], | 
|  | }, | 
|  | { | 
|  | 'target_name': 'buffet_test_daemon', | 
|  | 'type': 'executable', | 
|  | 'sources': [ | 
|  | 'test_daemon/main.cc', | 
|  | ], | 
|  | }, | 
|  | { | 
|  | 'target_name': 'buffet_client', | 
|  | 'type': 'executable', | 
|  | 'sources': [ | 
|  | 'buffet_client.cc', | 
|  | ], | 
|  | }, | 
|  | ], | 
|  | 'conditions': [ | 
|  | ['USE_test == 1', { | 
|  | 'targets': [ | 
|  | { | 
|  | 'target_name': 'buffet_testrunner', | 
|  | 'type': 'executable', | 
|  | 'dependencies': [ | 
|  | 'buffet_common', | 
|  | ], | 
|  | 'variables': { | 
|  | 'deps': [ | 
|  | 'libchrome-test-<(libbase_ver)', | 
|  | 'libchromeos-test-<(libbase_ver)', | 
|  | ], | 
|  | }, | 
|  | 'includes': ['../common-mk/common_test.gypi'], | 
|  | 'sources': [ | 
|  | 'buffet_testrunner.cc', | 
|  | 'commands/command_definition_unittest.cc', | 
|  | 'commands/command_dictionary_unittest.cc', | 
|  | 'commands/command_instance_unittest.cc', | 
|  | 'commands/command_manager_unittest.cc', | 
|  | 'commands/command_queue_unittest.cc', | 
|  | 'commands/dbus_command_dispatcher_unittest.cc', | 
|  | 'commands/dbus_command_proxy_unittest.cc', | 
|  | 'commands/object_schema_unittest.cc', | 
|  | 'commands/schema_utils_unittest.cc', | 
|  | 'commands/unittest_utils.cc', | 
|  | 'device_registration_info_unittest.cc', | 
|  | 'states/state_change_queue_unittest.cc', | 
|  | 'states/state_manager_unittest.cc', | 
|  | 'states/state_package_unittest.cc', | 
|  | 'xmpp/xmpp_client_unittest.cc', | 
|  | ], | 
|  | }, | 
|  | ], | 
|  | }], | 
|  | ], | 
|  | } |