Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
LOCAL_C_INCLUDES := \
$(MESA_TOP)/include/vulkan
-LOCAL_GENERATED_SOURCES := \
- $(intermediates)/util/vk_enum_to_str.c \
- $(intermediates)/util/vk_enum_to_str.h
+LOCAL_GENERATED_SOURCES := $(addprefix $(intermediates)/, \
+ $(VULKAN_UTIL_GENERATED_FILES))
vulkan_api_xml = $(MESA_TOP)/src/vulkan/registry/vk.xml
util/gen_enum_to_str.py
BUILT_SOURCES = \
- util/vk_enum_to_str.c \
- util/vk_enum_to_str.h
+ $(VULKAN_UTIL_GENERATED_FILES)
util/vk_enum_to_str.c util/vk_enum_to_str.h: util/gen_enum_to_str.py $(vulkan_api_xml)
$(MKDIR_GEN)
$(PYTHON_GEN) $(srcdir)/util/gen_enum_to_str.py --outdir $(top_builddir)/src/vulkan/util
-libvulkan_util_la_SOURCES = $(VULKAN_UTIL_FILES)
+libvulkan_util_la_SOURCES = $(VULKAN_UTIL_GENERATED_FILES)
AM_CPPFLAGS = \
$(DEFINES) \
wsi/wsi_common_x11.c \
wsi/wsi_common_x11.h
-VULKAN_UTIL_FILES := \
+VULKAN_UTIL_GENERATED_FILES := \
util/vk_enum_to_str.c \
util/vk_enum_to_str.h