a756f7e66f
libchromeos was moved from src/platform to src/platform2. This CL updates the gyp files to use the new location. BUG=chromium:370258 TEST=FEATURES=test emerge-amd64-generic platform2 TEST=trybot run on daisy, link, mario and duck CQ-DEPEND=CL:202334 Change-Id: I939dd5672120d47e8dc388f75b3dfeeb234c47b7 Reviewed-on: https://chromium-review.googlesource.com/202398 Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org> Tested-by: Bertrand Simonnet <bsimonnet@chromium.org> Commit-Queue: Bertrand Simonnet <bsimonnet@chromium.org>
112 lines
2.7 KiB
Python
112 lines
2.7 KiB
Python
{
|
|
'variables': {
|
|
'libbase_ver': 271506,
|
|
},
|
|
'target_defaults': {
|
|
'dependencies': [
|
|
'../../platform2/libchromeos/libchromeos-<(libbase_ver).gyp:libchromeos-<(libbase_ver)',
|
|
],
|
|
'variables': {
|
|
'deps': [
|
|
'dbus-1',
|
|
'dbus-glib-1',
|
|
'glib-2.0',
|
|
'gobject-2.0',
|
|
'gthread-2.0',
|
|
'libchrome-<(libbase_ver)',
|
|
]
|
|
},
|
|
'cflags_cc': [
|
|
'-fno-exceptions',
|
|
],
|
|
},
|
|
'targets': [
|
|
{
|
|
'target_name': 'libmetrics_daemon',
|
|
'type': 'static_library',
|
|
'dependencies': [
|
|
'../metrics/libmetrics-<(libbase_ver).gyp:libmetrics-<(libbase_ver)',
|
|
],
|
|
'link_settings': {
|
|
'libraries': [
|
|
'-lrootdev',
|
|
'-lgflags',
|
|
],
|
|
},
|
|
'sources': [
|
|
'persistent_integer.cc',
|
|
'metrics_daemon.cc',
|
|
'metrics_daemon_main.cc',
|
|
]
|
|
},
|
|
{
|
|
'target_name': 'metrics_client',
|
|
'type': 'executable',
|
|
'dependencies': [
|
|
'../metrics/libmetrics-<(libbase_ver).gyp:libmetrics-<(libbase_ver)',
|
|
],
|
|
'sources': [
|
|
'metrics_client.cc',
|
|
]
|
|
},
|
|
],
|
|
'conditions': [
|
|
['USE_passive_metrics == 1', {
|
|
'targets': [
|
|
{
|
|
'target_name': 'metrics_daemon',
|
|
'type': 'executable',
|
|
'dependencies': ['libmetrics_daemon'],
|
|
},
|
|
],
|
|
}],
|
|
['USE_test == 1', {
|
|
'targets': [
|
|
{
|
|
'target_name': 'persistent_integer_test',
|
|
'type': 'executable',
|
|
'includes': ['../../platform2/common-mk/common_test.gypi'],
|
|
'sources': [
|
|
'persistent_integer.cc',
|
|
'persistent_integer_test.cc',
|
|
]
|
|
},
|
|
{
|
|
'target_name': 'metrics_library_test',
|
|
'type': 'executable',
|
|
'dependencies': [
|
|
'../metrics/libmetrics-<(libbase_ver).gyp:libmetrics-<(libbase_ver)',
|
|
],
|
|
'includes': ['../../platform2/common-mk/common_test.gypi'],
|
|
'sources': [
|
|
'metrics_library_test.cc',
|
|
]
|
|
},
|
|
{
|
|
'target_name': 'timer_test',
|
|
'type': 'executable',
|
|
'includes': ['../../platform2/common-mk/common_test.gypi'],
|
|
'sources': [
|
|
'timer.cc',
|
|
'timer_test.cc',
|
|
]
|
|
},
|
|
],
|
|
}],
|
|
['USE_passive_metrics == 1 and USE_test == 1', {
|
|
'targets': [
|
|
{
|
|
'target_name': 'metrics_daemon_test',
|
|
'type': 'executable',
|
|
'dependencies': [
|
|
'libmetrics_daemon',
|
|
],
|
|
'includes': ['../../platform2/common-mk/common_test.gypi'],
|
|
'sources': [
|
|
'metrics_daemon_test.cc',
|
|
]
|
|
},
|
|
],
|
|
}],
|
|
],
|
|
}
|