wdisplays_github/src/meson.build

35 lines
819 B
Meson
Raw Normal View History

# SPDX-FileCopyrightText: 2020 Jason Francis <jason@cycles.network>
# SPDX-License-Identifier: CC0-1.0
2019-07-06 05:51:52 +03:00
cc = meson.get_compiler('c')
m_dep = cc.find_library('m', required : false)
rt_dep = cc.find_library('rt', required : false)
gdk = dependency('gdk-3.0', version: '>= 3.24')
gtk = dependency('gtk+-3.0', version: '>= 3.24')
2019-07-06 05:51:52 +03:00
assert(gdk.get_pkgconfig_variable('targets').split().contains('wayland'), 'Wayland GDK backend not present')
epoxy = dependency('epoxy')
2019-07-06 05:51:52 +03:00
2019-12-10 00:32:55 +02:00
configure_file(input: 'config.h.in', output: 'config.h', configuration: conf)
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',
'glviewport.c',
2020-05-09 20:37:18 +03:00
'headform.c',
'outputs.c',
2019-08-13 01:38:46 +03:00
'overlay.c',
2020-05-09 20:37:18 +03:00
'render.c',
2019-07-06 05:51:52 +03:00
resources,
],
dependencies : [
m_dep,
rt_dep,
2019-07-06 05:51:52 +03:00
wayland_client,
client_protos,
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
)