2019-07-06 05:51:52 +03:00
|
|
|
|
|
|
|
cc = meson.get_compiler('c')
|
|
|
|
m_dep = cc.find_library('m', required : false)
|
2019-07-27 03:26:37 +03:00
|
|
|
rt_dep = cc.find_library('rt', required : false)
|
2019-07-06 05:51:52 +03:00
|
|
|
gdk = dependency('gdk-3.0')
|
|
|
|
gtk = dependency('gtk+-3.0')
|
|
|
|
assert(gdk.get_pkgconfig_variable('targets').split().contains('wayland'), 'Wayland GDK backend not present')
|
2019-07-27 03:26:37 +03:00
|
|
|
epoxy = dependency('epoxy')
|
2019-07-06 05:51:52 +03:00
|
|
|
|
|
|
|
executable(
|
2019-08-01 17:33:45 +03:00
|
|
|
'wdisplays',
|
2019-07-06 05:51:52 +03:00
|
|
|
[
|
|
|
|
'main.c',
|
|
|
|
'outputs.c',
|
2019-07-27 03:26:37 +03:00
|
|
|
'render.c',
|
|
|
|
'glviewport.c',
|
2019-08-13 01:38:46 +03:00
|
|
|
'overlay.c',
|
2019-07-06 05:51:52 +03:00
|
|
|
resources,
|
|
|
|
],
|
|
|
|
dependencies : [
|
|
|
|
m_dep,
|
2019-07-27 03:26:37 +03:00
|
|
|
rt_dep,
|
2019-07-06 05:51:52 +03:00
|
|
|
wayland_client,
|
|
|
|
client_protos,
|
2019-07-27 03:26:37 +03:00
|
|
|
epoxy,
|
2019-07-06 05:51:52 +03:00
|
|
|
gtk
|
2019-07-06 20:12:28 +03:00
|
|
|
],
|
|
|
|
install: true
|
2019-07-06 05:51:52 +03:00
|
|
|
)
|