blob: 1bd753332485e66e2eca9509c871b4accce9fa93 [file] [log] [blame]
{
'targets': [
{
'target_name': 'sommelier-protocol',
'type': 'static_library',
'variables': {
'wayland_in_dir': 'protocol',
'wayland_out_dir': '.',
},
'sources': [
'protocol/aura-shell.xml',
'protocol/drm.xml',
'protocol/gtk-shell.xml',
'protocol/keyboard-extension-unstable-v1.xml',
'protocol/linux-dmabuf-unstable-v1.xml',
'protocol/viewporter.xml',
'protocol/xdg-shell-unstable-v6.xml',
],
'includes': ['wayland-protocol.gypi'],
},
{
'target_name': 'sommelier',
'type': 'executable',
'variables': {
'exported_deps': [
'gbm',
'pixman-1',
'wayland-client',
'wayland-server',
'xcb',
'xcb-composite',
'xcb-xfixes',
'xkbcommon',
],
'deps': ['<@(exported_deps)'],
},
'link_settings': {
'libraries': [
'-lm',
],
},
'dependencies': [
'sommelier-protocol',
],
'sources': [
'sommelier.c',
],
'defines': [
'_GNU_SOURCE',
'WL_HIDE_DEPRECATED',
'XWAYLAND_PATH="/opt/google/cros-containers/bin/Xwayland"',
],
},
],
}