2013-01-02 03:32:25 +00:00
|
|
|
{
|
2014-02-06 07:26:25 +00:00
|
|
|
'variables': {
|
|
|
|
'libbase_ver': 242728,
|
|
|
|
},
|
2013-01-02 03:32:25 +00:00
|
|
|
'target_defaults': {
|
2014-02-06 07:26:25 +00:00
|
|
|
'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',
|
|
|
|
],
|
2013-01-02 03:32:25 +00:00
|
|
|
},
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'libmetrics_daemon',
|
|
|
|
'type': 'static_library',
|
2014-02-06 07:26:25 +00:00
|
|
|
'dependencies': [
|
|
|
|
'../metrics/libmetrics-<(libbase_ver).gyp:libmetrics-<(libbase_ver)',
|
|
|
|
],
|
2013-01-02 03:32:25 +00:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-lrootdev',
|
|
|
|
'-lgflags',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'sources': [
|
|
|
|
'counter.cc',
|
|
|
|
'metrics_daemon.cc',
|
|
|
|
'metrics_daemon_main.cc',
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'metrics_client',
|
|
|
|
'type': 'executable',
|
2014-02-06 07:26:25 +00:00
|
|
|
'dependencies': [
|
|
|
|
'../metrics/libmetrics-<(libbase_ver).gyp:libmetrics-<(libbase_ver)',
|
|
|
|
],
|
2013-01-02 03:32:25 +00:00
|
|
|
'sources': [
|
|
|
|
'metrics_client.cc',
|
|
|
|
]
|
|
|
|
},
|
|
|
|
],
|
|
|
|
'conditions': [
|
2013-11-18 22:35:09 +00:00
|
|
|
['USE_passive_metrics == 1', {
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'metrics_daemon',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': ['libmetrics_daemon'],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}],
|
2013-01-02 03:32:25 +00:00
|
|
|
['USE_test == 1', {
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'metrics_library_test',
|
|
|
|
'type': 'executable',
|
2014-02-06 07:26:25 +00:00
|
|
|
'dependencies': [
|
|
|
|
'../metrics/libmetrics-<(libbase_ver).gyp:libmetrics-<(libbase_ver)',
|
|
|
|
],
|
2013-01-02 03:32:25 +00:00
|
|
|
'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',
|
|
|
|
]
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}],
|
2013-11-18 22:35:09 +00:00
|
|
|
['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',
|
|
|
|
]
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}],
|
2013-01-02 03:32:25 +00:00
|
|
|
],
|
|
|
|
}
|