mirror of
https://github.com/artizirk/wdisplays.git
synced 2024-09-20 22:11:04 +03:00
34 lines
761 B
Meson
34 lines
761 B
Meson
# SPDX-FileCopyrightText: 2020 Jason Francis <jason@cycles.network>
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
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')
|
|
gtk = dependency('gtk+-3.0')
|
|
assert(gdk.get_pkgconfig_variable('targets').split().contains('wayland'), 'Wayland GDK backend not present')
|
|
epoxy = dependency('epoxy')
|
|
|
|
configure_file(input: 'config.h.in', output: 'config.h', configuration: conf)
|
|
|
|
executable(
|
|
'wdisplays',
|
|
[
|
|
'main.c',
|
|
'outputs.c',
|
|
'render.c',
|
|
'glviewport.c',
|
|
'overlay.c',
|
|
resources,
|
|
],
|
|
dependencies : [
|
|
m_dep,
|
|
rt_dep,
|
|
wayland_client,
|
|
client_protos,
|
|
epoxy,
|
|
gtk
|
|
],
|
|
install: true
|
|
)
|