gamescope/meson.build

65 lines
1.8 KiB
Meson
Raw Normal View History

project('gamescope', ['c','cpp'])
add_project_arguments([
'-DWLR_USE_UNSTABLE',
], language: ['c','cpp'])
dep_x11 = dependency('x11')
dep_xdamage = dependency('xdamage')
dep_xcomposite = dependency('xcomposite')
dep_xrender = dependency('xrender')
dep_xext = dependency('xext')
dep_xxf86vm = dependency('xxf86vm')
dep_xtst = dependency('xtst')
pixman_dep = dependency('pixman-1')
drm_dep = dependency('libdrm')
vulkan_dep = dependency('vulkan')
cc = meson.get_compiler('c')
wayland_server = dependency('wayland-server')
wayland_protos = dependency('wayland-protocols', version: '>=1.17')
pixman = dependency('pixman-1')
libinput = dependency('libinput')
xkbcommon = dependency('xkbcommon')
math = cc.find_library('m')
thread_dep = dependency('threads')
sdl_dep = dependency('SDL2')
wlroots_proj = subproject('wlroots')
wlroots_static_dep = wlroots_proj.get_variable('wlroots_static_dep')
shadercompiler = find_program('glslangValidator')
spirv_shader = custom_target('shader_target',
output : 'composite.h',
input : 'src/composite.comp.hlsl',
command : [
shadercompiler, '-V', '-e', 'main', '--vn',
'composite_spv', '@INPUT@', '-o', '@OUTPUT@'
],
install : false,
)
liftoff_proj = subproject('libliftoff')
libftoff_dep = liftoff_proj.get_variable('liftoff')
executable(
'gamescope',
2020-01-23 05:50:01 +00:00
'src/steamcompmgr.cpp',
'src/main.cpp',
2019-11-21 05:16:53 +00:00
'src/wlserver.c',
'src/drm.cpp',
'src/inputsdl.cpp',
'src/vblankmanager.cpp',
[ 'src/rendervulkan.cpp', spirv_shader ],
dependencies : [
2019-12-10 10:03:18 +00:00
dep_x11, dep_xdamage, dep_xcomposite, dep_xrender, dep_xext,
dep_xxf86vm, pixman_dep, drm_dep, wayland_server, wayland_protos,
libinput, xkbcommon, math, thread_dep, sdl_dep, wlroots_static_dep,
vulkan_dep, libftoff_dep, dep_xtst
],
install: true,
)