blob: 182c2fc7ac603ca858ca54f224285d86f6886029 [file] [log] [blame]
{
'target_defaults': {
'variables': {
'deps': [
'dbus-1',
'libchrome-<(libbase_ver)',
'libchromeos-<(libbase_ver)',
],
},
'include_dirs': ['.'],
},
'targets': [
{
'target_name': 'libbuffet-<(libbase_ver)',
'type': 'shared_library',
'sources': [
'libbuffet/command.cc',
'libbuffet/command_listener.cc',
'libbuffet/dbus_constants.cc',
'libbuffet/private/command_property_set.cc',
],
'includes': ['../common-mk/deps.gypi'],
},
{
'target_name': 'buffet_common',
'type': 'static_library',
'sources': [
'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/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',
'manager.cc',
'storage_impls.cc',
'states/error_codes.cc',
'states/state_manager.cc',
'states/state_package.cc',
'utils.cc',
],
},
{
'target_name': 'buffet',
'type': 'executable',
'dependencies': [
'buffet_common',
'libbuffet-<(libbase_ver)',
],
'sources': [
'main.cc',
],
},
{
'target_name': 'buffet_test_daemon',
'type': 'executable',
'dependencies': [
'libbuffet-<(libbase_ver)',
],
'sources': [
'test_daemon/main.cc',
],
},
{
'target_name': 'buffet_client',
'type': 'executable',
'dependencies': [
'libbuffet-<(libbase_ver)',
],
'sources': [
'buffet_client.cc',
],
},
],
'conditions': [
['USE_test == 1', {
'targets': [
{
'target_name': 'buffet_testrunner',
'type': 'executable',
'dependencies': [
'buffet_common',
'libbuffet-<(libbase_ver)',
],
'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_manager_unittest.cc',
'states/state_package_unittest.cc',
],
},
],
}],
],
}