blob: ab6d7ec3922f8b61ac3ee809f9e826739ba435d1 [file] [log] [blame]
{
'target_defaults': {
'variables': {
'deps': [
'libchrome-<(libbase_ver)',
],
},
},
'targets' : [
{
'target_name': 'libcros_config',
'type': 'shared_library',
'sources': [
'libcros_config/cros_config.cc',
'libcros_config/fake_cros_config.cc',
'libcros_config/lookup.cc',
],
'link_settings': {
'libraries': [
'-lfdt',
],
},
},
{
'target_name': 'cros_config',
'type': 'executable',
'variables': {
'deps': [
'libbrillo-<(libbase_ver)',
],
},
'dependencies': ['libcros_config'],
'sources': [
'cros_config_main.cc',
],
},
],
'conditions': [
['USE_test == 1', {
'targets': [
{
'target_name': 'cros_config_unittest',
'type': 'executable',
'includes': ['../common-mk/common_test.gypi'],
'include_dirs': [
'libcros_config',
],
'dependencies': [
'libcros_config',
],
'sources': [
'libcros_config/cros_config_unittest.cc',
],
},
{
'target_name': 'cros_config_main_unittest',
'type': 'executable',
'includes': ['../common-mk/common_test.gypi'],
'dependencies': [
'cros_config',
],
'sources': [
'cros_config_main_unittest.cc',
],
},
{
'target_name': 'fake_cros_config_unittest',
'type': 'executable',
'includes': ['../common-mk/common_test.gypi'],
'include_dirs': [
'libcros_config',
],
'dependencies': [
'libcros_config',
],
'sources': [
'libcros_config/fake_cros_config_unittest.cc',
],
},
],
}],
],
}