1
0
mirror of https://github.com/artizirk/wdisplays.git synced 2024-11-10 20:10:59 +02:00
wdisplays/src/meson.build

34 lines
761 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)
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')
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',
'outputs.c',
'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,
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
)