1include Makefile.sources 2 3noinst_LTLIBRARIES = libvulkan_wsi.la libvulkan_util.la 4 5vulkan_includedir = $(includedir)/vulkan 6vulkan_api_xml = $(top_srcdir)/src/vulkan/registry/vk.xml 7vk_android_native_buffer_xml = $(top_srcdir)/src/vulkan/registry/vk_android_native_buffer.xml 8 9MKDIR_GEN = $(AM_V_at)$(MKDIR_P) $(@D) 10PYTHON_GEN = $(AM_V_GEN)$(PYTHON2) $(PYTHON_FLAGS) 11 12EXTRA_DIST = \ 13 $(top_srcdir)/include/vulkan/vk_android_native_buffer.h \ 14 util/gen_enum_to_str.py \ 15 util/meson.build \ 16 wsi/meson.build \ 17 meson.build 18 19VULKAN_UTIL_SOURCES = \ 20 $(VULKAN_UTIL_FILES) \ 21 $(VULKAN_UTIL_GENERATED_FILES) 22 23BUILT_SOURCES = \ 24 $(VULKAN_UTIL_GENERATED_FILES) 25 26util/vk_enum_to_str.c util/vk_enum_to_str.h: util/gen_enum_to_str.py \ 27 $(vulkan_api_xml) $(vk_android_native_buffer_xml) 28 $(MKDIR_GEN) 29 $(PYTHON_GEN) $(srcdir)/util/gen_enum_to_str.py \ 30 --xml $(vulkan_api_xml) \ 31 --xml $(vk_android_native_buffer_xml) \ 32 --outdir $(top_builddir)/src/vulkan/util 33 34libvulkan_util_la_SOURCES = $(VULKAN_UTIL_SOURCES) 35 36AM_CPPFLAGS = \ 37 $(DEFINES) \ 38 -I$(top_srcdir)/include \ 39 -I$(top_srcdir)/src \ 40 -I$(top_srcdir)/src/vulkan/util \ 41 -I$(top_srcdir)/src/gallium/auxiliary \ 42 -I$(top_srcdir)/src/gallium/include 43 44AM_CFLAGS = \ 45 $(LIBDRM_CFLAGS) \ 46 $(VISIBILITY_CFLAGS) 47 48VULKAN_WSI_SOURCES = \ 49 $(VULKAN_WSI_FILES) 50 51if HAVE_PLATFORM_X11 52AM_CPPFLAGS += \ 53 $(XCB_DRI3_CFLAGS) \ 54 -DVK_USE_PLATFORM_XCB_KHR \ 55 -DVK_USE_PLATFORM_XLIB_KHR 56 57VULKAN_WSI_SOURCES += $(VULKAN_WSI_X11_FILES) 58endif 59 60BUILT_SOURCES += $(VULKAN_WSI_WAYLAND_GENERATED_FILES) 61CLEANFILES = $(BUILT_SOURCES) 62 63WL_DRM_XML = $(top_srcdir)/src/egl/wayland/wayland-drm/wayland-drm.xml 64 65wsi/wayland-drm-protocol.c : $(WL_DRM_XML) 66 $(MKDIR_GEN) 67 $(AM_V_GEN)$(WAYLAND_SCANNER) code < $< > $@ 68 69wsi/wayland-drm-client-protocol.h : $(WL_DRM_XML) 70 $(MKDIR_GEN) 71 $(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@ 72 73if HAVE_PLATFORM_WAYLAND 74AM_CPPFLAGS += \ 75 -I$(top_builddir)/src/vulkan/wsi \ 76 $(WAYLAND_CLIENT_CFLAGS) \ 77 -DVK_USE_PLATFORM_WAYLAND_KHR 78 79VULKAN_WSI_SOURCES += \ 80 $(VULKAN_WSI_WAYLAND_FILES) \ 81 $(VULKAN_WSI_WAYLAND_GENERATED_FILES) 82 83endif 84 85libvulkan_wsi_la_SOURCES = $(VULKAN_WSI_SOURCES) 86