From 01924a03d483d44c34e285e81a8cb875887c5805 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 4 Sep 2015 20:02:36 -0700 Subject: [PATCH] vk: Actually link in wayland libraries Turns out this was why I had accidentally broken the universe. Oops... --- src/vulkan/Makefile.am | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/src/vulkan/Makefile.am b/src/vulkan/Makefile.am index b2eb4fb..8b17af2 100644 --- a/src/vulkan/Makefile.am +++ b/src/vulkan/Makefile.am @@ -42,7 +42,6 @@ AM_CPPFLAGS = \ $(DEFINES) \ -I$(top_srcdir)/include \ -I$(top_srcdir)/src \ - -I$(top_srcdir)/src/egl/wayland/wayland-drm \ -I$(top_srcdir)/src/mapi \ -I$(top_srcdir)/src/mesa \ -I$(top_srcdir)/src/mesa/drivers/dri/common \ @@ -83,8 +82,26 @@ VULKAN_SOURCES = \ gen7_cmd_buffer.c \ gen7_pipeline.c +BUILT_SOURCES = \ + anv_entrypoints.h \ + anv_entrypoints.c \ + anv_meta_spirv_autogen.h + if HAVE_EGL_PLATFORM_WAYLAND -VULKAN_SOURCES += anv_wsi_wayland.c +BUILT_SOURCES += \ + wayland-drm-protocol.c \ + wayland-drm-client-protocol.h + +%-protocol.c : $(top_srcdir)/src/egl/wayland/wayland-drm/%.xml + $(AM_V_GEN)$(WAYLAND_SCANNER) code < $< > $@ + +%-client-protocol.h : $(top_srcdir)/src/egl/wayland/wayland-drm/%.xml + $(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@ + +AM_CPPFLAGS += -I$(top_srcdir)/src/egl/wayland/wayland-drm +VULKAN_SOURCES += \ + wayland-drm-protocol.c \ + anv_wsi_wayland.c libvulkan_la_CFLAGS += -DHAVE_WAYLAND_PLATFORM endif @@ -92,11 +109,6 @@ libvulkan_la_SOURCES = \ $(VULKAN_SOURCES) \ anv_gem.c -BUILT_SOURCES = \ - anv_entrypoints.h \ - anv_entrypoints.c \ - anv_meta_spirv_autogen.h - anv_entrypoints.h : anv_entrypoints_gen.py $(vulkan_include_HEADERS) $(AM_V_GEN)cat $(vulkan_include_HEADERS) | $(PYTHON2) $< header > $@ @@ -108,7 +120,7 @@ anv_entrypoints.c : anv_entrypoints_gen.py $(vulkan_include_HEADERS) CLEANFILES = $(BUILT_SOURCES) -libvulkan_la_LIBADD = -lxcb -lxcb-dri3 \ +libvulkan_la_LIBADD = $(WAYLAND_LIBS) -lxcb -lxcb-dri3 \ $(top_builddir)/src/mesa/drivers/dri/i965/libi965_compiler.la # Libvulkan with dummy gem. Used for unit tests. -- 2.7.4