blob: c1c07ac5a6c304153a666929aff92bfe228d6241 [file] [log] [blame]
{
'target_defaults': {
'variables': {
'deps': [
'libminijail',
],
},
'include_dirs': [
'.',
],
'defines': [
'USE_device_mapper=<(USE_device_mapper)',
],
'conditions': [
['USE_device_mapper == 1', {
'variables': {
'deps': [
'devmapper',
],
},
}],
],
},
'targets': [
{
'target_name': 'libcontainer',
'type': 'shared_library',
'cflags': [
'-fvisibility=default',
],
'sources': [
'container_cgroup.c',
'libcontainer.c',
],
},
],
'conditions': [
['USE_test == 1', {
'targets': [
{
'target_name': 'libcontainer_unittest',
'type': 'executable',
'sources': [
'libcontainer.c',
'libcontainer_unittest.c',
],
},
{
'target_name': 'container_cgroup_unittest',
'type': 'executable',
'sources': [
'container_cgroup.c',
'container_cgroup_unittest.c',
],
},
]},
],
],
}