blob: d5f56ee95236607374292da031472aa6b564e519 [file] [log] [blame]
{
'target_defaults': {
'variables': {
'deps': [
'libbrillo-<(libbase_ver)',
'libchrome-<(libbase_ver)',
'libmtp',
'libudev',
# system_api depends on protobuf (or protobuf-lite). It must appear
# before protobuf here or the linker flags won't be in the right
# order.
'system_api',
'protobuf-lite',
],
},
},
'targets': [
{
'target_name': 'mtpd-adaptors',
'type': 'none',
'variables': {
'dbus_adaptors_out_dir': 'include/mtpd/dbus_adaptors',
'dbus_service_config': 'dbus_bindings/dbus-service-config.json',
},
'sources': [
'dbus_bindings/org.chromium.Mtpd.xml',
],
'includes': ['../common-mk/generate-dbus-adaptors.gypi'],
},
{
'target_name': 'libmtpd',
'type': 'static_library',
'dependencies': [
'mtpd-adaptors',
],
'sources': [
'assert_matching_file_types.cc',
'device_manager.cc',
'file_entry.cc',
'mtpd_server_impl.cc',
'storage_info.cc',
'string_helpers.cc',
],
},
{
'target_name': 'mtpd',
'type': 'executable',
'dependencies': [
'libmtpd',
'mtpd-adaptors',
],
'sources': [
'main.cc',
],
},
],
'conditions': [
['USE_test == 1', {
'targets': [
{
'target_name': 'mtpd_testrunner',
'type': 'executable',
'includes': ['../common-mk/common_test.gypi'],
'dependencies': [
'libmtpd',
'mtpd-adaptors',
'../common-mk/testrunner.gyp:testrunner',
],
'sources': [
'device_manager_unittest.cc',
],
},
],
}],
],
}