1 2include Makefile.sources 3 4vulkan_includedir = $(includedir)/vulkan 5 6noinst_LTLIBRARIES = libvulkan_wsi.la 7 8AM_CPPFLAGS = \ 9 $(DEFINES) \ 10 -I$(top_srcdir)/include \ 11 -I$(top_srcdir)/src \ 12 -I$(top_srcdir)/src/gallium/auxiliary \ 13 -I$(top_srcdir)/src/gallium/include 14 15AM_CFLAGS = \ 16 $(VISIBILITY_CFLAGS) 17 18VULKAN_LIB_DEPS = 19 20VULKAN_WSI_SOURCES = \ 21 $(VULKAN_WSI_FILES) 22 23if HAVE_PLATFORM_X11 24AM_CPPFLAGS += \ 25 $(XCB_DRI3_CFLAGS) \ 26 -DVK_USE_PLATFORM_XCB_KHR \ 27 -DVK_USE_PLATFORM_XLIB_KHR 28 29VULKAN_WSI_SOURCES += $(VULKAN_WSI_X11_FILES) 30 31# FIXME: Use pkg-config for X11-xcb ldflags. 32VULKAN_LIB_DEPS += $(XCB_DRI3_LIBS) -lX11-xcb 33endif 34 35if HAVE_PLATFORM_WAYLAND 36AM_CPPFLAGS += \ 37 -I$(top_builddir)/src/egl/wayland/wayland-drm \ 38 -I$(top_srcdir)/src/egl/wayland/wayland-drm \ 39 $(WAYLAND_CFLAGS) \ 40 -DVK_USE_PLATFORM_WAYLAND_KHR 41 42VULKAN_WSI_SOURCES += $(VULKAN_WSI_WAYLAND_FILES) 43 44VULKAN_LIB_DEPS += \ 45 $(top_builddir)/src/egl/wayland/wayland-drm/libwayland-drm.la \ 46 $(WAYLAND_LIBS) 47endif 48 49libvulkan_wsi_la_SOURCES = $(VULKAN_WSI_SOURCES) 50