build: drop unused dependencies per -Wl,--as-needed

- pixman and libinput are only used by wlroots
- xfixes is used directly, not just via xdamage
This commit is contained in:
Jan Beich 2020-10-20 17:58:23 +00:00 committed by Simon Ser
parent 0416b5fe08
commit 6250685f0a

View file

@ -26,10 +26,10 @@ dep_xdamage = dependency('xdamage')
dep_xcomposite = dependency('xcomposite') dep_xcomposite = dependency('xcomposite')
dep_xrender = dependency('xrender') dep_xrender = dependency('xrender')
dep_xext = dependency('xext') dep_xext = dependency('xext')
dep_xfixes = dependency('xfixes')
dep_xxf86vm = dependency('xxf86vm') dep_xxf86vm = dependency('xxf86vm')
dep_xtst = dependency('xtst') dep_xtst = dependency('xtst')
pixman_dep = dependency('pixman-1')
drm_dep = dependency('libdrm') drm_dep = dependency('libdrm')
vulkan_dep = dependency('vulkan') vulkan_dep = dependency('vulkan')
@ -37,8 +37,6 @@ cc = meson.get_compiler('c')
wayland_server = dependency('wayland-server') wayland_server = dependency('wayland-server')
wayland_protos = dependency('wayland-protocols', version: '>=1.17') wayland_protos = dependency('wayland-protocols', version: '>=1.17')
pixman = dependency('pixman-1')
libinput = dependency('libinput')
xkbcommon = dependency('xkbcommon') xkbcommon = dependency('xkbcommon')
math = cc.find_library('m') math = cc.find_library('m')
thread_dep = dependency('threads') thread_dep = dependency('threads')
@ -75,9 +73,9 @@ executable(
'src/vblankmanager.cpp', 'src/vblankmanager.cpp',
[ 'src/rendervulkan.cpp', spirv_shader ], [ 'src/rendervulkan.cpp', spirv_shader ],
dependencies : [ dependencies : [
dep_x11, dep_xdamage, dep_xcomposite, dep_xrender, dep_xext, dep_x11, dep_xdamage, dep_xcomposite, dep_xrender, dep_xext, dep_xfixes,
dep_xxf86vm, pixman_dep, drm_dep, wayland_server, wayland_protos, dep_xxf86vm, drm_dep, wayland_server, wayland_protos,
libinput, xkbcommon, math, thread_dep, sdl_dep, wlroots_static_dep, xkbcommon, math, thread_dep, sdl_dep, wlroots_static_dep,
vulkan_dep, libftoff_dep, dep_xtst, cap_dep vulkan_dep, libftoff_dep, dep_xtst, cap_dep
], ],
install: true, install: true,