forked from colemickens/platform2-sommelier
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsommelier.gyp
148 lines (142 loc) · 3.91 KB
/
sommelier.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
'conditions': [
['USE_amd64 == 1', {
'variables': {
'peer_cmd_prefix%': '"/opt/google/cros-containers/lib/ld-linux-x86-64.so.2 --library-path /opt/google/cros-containers/lib --inhibit-rpath \\"\\""',
},
}],
['USE_arm == 1', {
'variables': {
'peer_cmd_prefix%': '"/opt/google/cros-containers/lib/ld-linux-armhf.so.3 --library-path /opt/google/cros-containers/lib --inhibit-rpath \\"\\""',
},
}],
],
'variables': {
# Set this to the Xwayland path.
'xwayland_path%': '"/opt/google/cros-containers/bin/Xwayland"',
# Set this to the GL driver path to use for Xwayland.
'xwayland_gl_driver_path%': '"/opt/google/cros-containers/lib"',
# Set this to the shm driver to use for Xwayland.
'xwayland_shm_driver%': '"virtwl"',
# Set this to the shm driver to use for wayland clients.
'shm_driver%': '"virtwl-dmabuf"',
# Set this to the virtwl device.
'virtwl_device%': '"/dev/wl0"',
# Set this to the frame color to use for Xwayland clients.
'frame_color%': '"#f2f2f2"',
# Set this to the dark frame color to use for Xwayland clients.
'dark_frame_color%': '"#323639"',
},
'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/text-input-unstable-v1.xml',
'protocol/viewporter.xml',
'protocol/xdg-shell.xml',
],
'includes': ['wayland-protocol.gypi'],
},
{
'target_name': 'sommelier',
'type': 'executable',
'variables': {
'exported_deps': [
'gbm',
'libdrm',
'pixman-1',
'wayland-client',
'wayland-server',
'xcb',
'xcb-composite',
'xcb-xfixes',
'xkbcommon',
],
'deps': ['<@(exported_deps)'],
},
'link_settings': {
'libraries': [
'-lm',
],
},
'dependencies': [
'sommelier-protocol',
],
'sources': [
'sommelier-compositor.c',
'sommelier-data-device-manager.c',
'sommelier-display.c',
'sommelier-drm.c',
'sommelier-gtk-shell.c',
'sommelier-output.c',
'sommelier-seat.c',
'sommelier-shell.c',
'sommelier-shm.c',
'sommelier-subcompositor.c',
'sommelier-text-input.c',
'sommelier-viewporter.c',
'sommelier-xdg-shell.c',
'sommelier.c',
],
'defines': [
'_GNU_SOURCE',
'WL_HIDE_DEPRECATED',
'XWAYLAND_PATH=<@(xwayland_path)',
'XWAYLAND_GL_DRIVER_PATH=<@(xwayland_gl_driver_path)',
'XWAYLAND_SHM_DRIVER=<@(xwayland_shm_driver)',
'SHM_DRIVER=<@(shm_driver)',
'VIRTWL_DEVICE=<@(virtwl_device)',
'PEER_CMD_PREFIX=<@(peer_cmd_prefix)',
'FRAME_COLOR=<@(frame_color)',
'DARK_FRAME_COLOR=<@(dark_frame_color)',
],
},
{
'target_name': 'wayland_demo',
'type': 'executable',
'variables': {
'deps': [
'libbrillo-<(libbase_ver)',
'libchrome-<(libbase_ver)',
'wayland-client',
],
},
'link_settings': {
'libraries': [
'-lwayland-client',
],
},
'sources': [
'demos/wayland_demo.cc',
],
},
{
'target_name': 'x11_demo',
'type': 'executable',
'variables': {
'deps': [
'libbrillo-<(libbase_ver)',
'libchrome-<(libbase_ver)',
],
},
'link_settings': {
'libraries': [
'-lX11',
],
},
'sources': [
'demos/x11_demo.cc',
],
},
],
}