summaryrefslogtreecommitdiffstats
path: root/src/vulkan/util/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/vulkan/util/Makefile.am')
-rw-r--r--src/vulkan/util/Makefile.am22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/vulkan/util/Makefile.am b/src/vulkan/util/Makefile.am
new file mode 100644
index 00000000000..87c96d5e5bb
--- /dev/null
+++ b/src/vulkan/util/Makefile.am
@@ -0,0 +1,22 @@
+vulkan_api_xml = $(top_srcdir)/src/vulkan/registry/vk.xml
+
+AM_CPPFLAGS = \
+ -I$(top_srcdir)/include \
+ -I$(top_srcdir)/src
+
+EXTRA_DIST = \
+ gen_enum_to_str.py
+
+BUILT_SOURCES = \
+ vk_enum_to_str.c \
+ vk_enum_to_str.h
+
+vk_enum_to_str.c vk_enum_to_str.h: gen_enum_to_str.py $(vulkan_api_xml)
+ $(AM_V_GEN)$(PYTHON2) $(srcdir)/gen_enum_to_str.py
+
+noinst_LTLIBRARIES = libvulkan_util.la
+
+libvulkan_util_la_SOURCES = \
+ vk_enum_to_str.c \
+ vk_enum_to_str.h
+