2e6543ddad
This CL updates metrics to build against libchrome-242728 and also converts libmetrics into slotted libraries (libmetrics-180609 and libmetrics-242728). BUG=chromium:341521 BUG=chromium:342866 CQ-DEPEND=CL:186027 CQ-DEPEND=CL:186026 CQ-DEPEND=CL:186037 CQ-DEPEND=CL:186092 CQ-DEPEND=CL:186028 CQ-DEPEND=CL:186029 CQ-DEPEND=CL:186038 CQ-DEPEND=CL:186093 CQ-DEPEND=CL:186100 CQ-DEPEND=CL:186039 TEST=Trybot run on paladin, release, and chromiumos-sdk builders. Change-Id: I09dc3d47cfe24a22864abf217658c63493b35cba Reviewed-on: https://chromium-review.googlesource.com/185187 Reviewed-by: Ben Chan <benchan@chromium.org> Tested-by: Ben Chan <benchan@chromium.org> Commit-Queue: Ben Chan <benchan@chromium.org>
112 lines
2.6 KiB
Python
112 lines
2.6 KiB
Python
{
|
|
'variables': {
|
|
'libbase_ver': 242728,
|
|
},
|
|
'target_defaults': {
|
|
'dependencies': [
|
|
'../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': [
|
|
'counter.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': 'metrics_library_test',
|
|
'type': 'executable',
|
|
'dependencies': [
|
|
'../metrics/libmetrics-<(libbase_ver).gyp:libmetrics-<(libbase_ver)',
|
|
],
|
|
'includes': ['../common-mk/common_test.gypi'],
|
|
'sources': [
|
|
'metrics_library_test.cc',
|
|
]
|
|
},
|
|
{
|
|
'target_name': 'counter_test',
|
|
'type': 'executable',
|
|
'includes': ['../common-mk/common_test.gypi'],
|
|
'sources': [
|
|
'counter.cc',
|
|
'counter_test.cc',
|
|
]
|
|
},
|
|
{
|
|
'target_name': 'timer_test',
|
|
'type': 'executable',
|
|
'includes': ['../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': ['../common-mk/common_test.gypi'],
|
|
'sources': [
|
|
'metrics_daemon_test.cc',
|
|
]
|
|
},
|
|
],
|
|
}],
|
|
],
|
|
}
|