1 # Copyright © 2015 Intel Corporation
3 # Permission is hereby granted, free of charge, to any person obtaining a
4 # copy of this software and associated documentation files (the "Software"),
5 # to deal in the Software without restriction, including without limitation
6 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 # and/or sell copies of the Software, and to permit persons to whom the
8 # Software is furnished to do so, subject to the following conditions:
10 # The above copyright notice and this permission notice (including the next
11 # paragraph) shall be included in all copies or substantial portions of the
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24 vulkan_includedir = $(includedir)/vulkan
26 vulkan_include_HEADERS = \
27 $(top_srcdir)/include/vulkan/vk_platform.h \
28 $(top_srcdir)/include/vulkan/vulkan.h \
29 $(top_srcdir)/include/vulkan/vulkan_intel.h \
30 $(top_srcdir)/include/vulkan/vk_ext_khr_swapchain.h \
31 $(top_srcdir)/include/vulkan/vk_ext_khr_device_swapchain.h
33 # Used when generating entrypoints to filter out unwanted extensions
34 VULKAN_ENTRYPOINT_CPPFLAGS = \
35 -I$(top_srcdir)/include/vulkan \
36 -DVK_USE_PLATFORM_XCB_KHR \
37 -DVK_USE_PLATFORM_WAYLAND_KHR
39 lib_LTLIBRARIES = libvulkan.la
41 check_LTLIBRARIES = libvulkan-test.la
49 noinst_LTLIBRARIES = $(PER_GEN_LIBS)
51 # The gallium includes are for the util/u_math.h include from main/macros.h
57 -I$(top_srcdir)/include \
59 -I$(top_srcdir)/src/glsl/nir \
60 -I$(top_srcdir)/src/mapi \
61 -I$(top_srcdir)/src/mesa \
62 -I$(top_srcdir)/src/mesa/drivers/dri/common \
63 -I$(top_srcdir)/src/mesa/drivers/dri/i965 \
64 -I$(top_srcdir)/src/gallium/auxiliary \
65 -I$(top_srcdir)/src/gallium/include \
66 -I$(top_builddir)/src/vulkan
68 libvulkan_la_CFLAGS = \
69 -Wall -Wno-unused-parameter -fvisibility=hidden -O0 -g \
70 -Wstrict-prototypes -Wmissing-prototypes -Wno-override-init
76 anv_descriptor_set.c \
86 anv_nir_apply_dynamic_offsets.c \
87 anv_nir_apply_pipeline_layout.c \
88 anv_nir_lower_push_constants.c \
104 libanv_gen7_la_SOURCES = \
109 libanv_gen7_la_CFLAGS = $(libvulkan_la_CFLAGS) -DANV_GENx10=70
111 libanv_gen75_la_SOURCES = \
116 libanv_gen75_la_CFLAGS = $(libvulkan_la_CFLAGS) -DANV_GENx10=75
118 libanv_gen8_la_SOURCES = \
123 libanv_gen8_la_CFLAGS = $(libvulkan_la_CFLAGS) -DANV_GENx10=80
125 libanv_gen9_la_SOURCES = \
130 libanv_gen9_la_CFLAGS = $(libvulkan_la_CFLAGS) -DANV_GENx10=90
132 if HAVE_EGL_PLATFORM_WAYLAND
134 wayland-drm-protocol.c \
135 wayland-drm-client-protocol.h
137 %-protocol.c : $(top_srcdir)/src/egl/wayland/wayland-drm/%.xml
138 $(AM_V_GEN)$(WAYLAND_SCANNER) code < $< > $@
140 %-client-protocol.h : $(top_srcdir)/src/egl/wayland/wayland-drm/%.xml
141 $(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@
143 AM_CPPFLAGS += -I$(top_srcdir)/src/egl/wayland/wayland-drm
145 wayland-drm-protocol.c \
147 libvulkan_la_CFLAGS += -DHAVE_WAYLAND_PLATFORM
150 libvulkan_la_SOURCES = \
154 anv_entrypoints.h : anv_entrypoints_gen.py $(vulkan_include_HEADERS)
155 $(AM_V_GEN) cat $(vulkan_include_HEADERS) | $(CPP) $(VULKAN_ENTRYPOINT_CPPFLAGS) - | $(PYTHON2) $< header > $@
157 anv_entrypoints.c : anv_entrypoints_gen.py $(vulkan_include_HEADERS)
158 $(AM_V_GEN) cat $(vulkan_include_HEADERS) | $(CPP) $(VULKAN_ENTRYPOINT_CPPFLAGS) - | $(PYTHON2) $< code > $@
160 isl_format_layout.c: isl_format_layout_gen.bash \
161 isl_format_layout.csv
162 $(AM_V_GEN)$(srcdir)/isl_format_layout_gen.bash \
163 <$(srcdir)/isl_format_layout.csv >$@
165 CLEANFILES = $(BUILT_SOURCES)
167 libvulkan_la_LIBADD = $(WAYLAND_LIBS) -lxcb -lxcb-dri3 \
168 $(top_builddir)/src/mesa/drivers/dri/i965/libi965_compiler.la \
170 ../mesa/drivers/dri/common/libdri_test_stubs.la \
171 -lpthread -ldl -lstdc++ \
174 # Libvulkan with dummy gem. Used for unit tests.
176 libvulkan_test_la_SOURCES = \
180 libvulkan_test_la_CFLAGS = $(libvulkan_la_CFLAGS)
181 libvulkan_test_la_LIBADD = $(libvulkan_la_LIBADD)
183 include $(top_srcdir)/install-lib-links.mk