mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 02:50:09 +01:00
vulkan: Combine wsi and util makefiles
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
e9dcb17962
commit
8e03250fcf
9 changed files with 38 additions and 45 deletions
|
|
@ -2691,8 +2691,7 @@ AC_CONFIG_FILES([Makefile
|
||||||
src/mesa/main/tests/Makefile
|
src/mesa/main/tests/Makefile
|
||||||
src/util/Makefile
|
src/util/Makefile
|
||||||
src/util/tests/hash_table/Makefile
|
src/util/tests/hash_table/Makefile
|
||||||
src/vulkan/util/Makefile
|
src/vulkan/Makefile])
|
||||||
src/vulkan/wsi/Makefile])
|
|
||||||
|
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ SUBDIRS += intel/tools
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if HAVE_VULKAN_COMMON
|
if HAVE_VULKAN_COMMON
|
||||||
SUBDIRS += vulkan/util vulkan/wsi
|
SUBDIRS += vulkan
|
||||||
endif
|
endif
|
||||||
EXTRA_DIST += vulkan/registry/vk.xml
|
EXTRA_DIST += vulkan/registry/vk.xml
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ libvulkan_common_la_SOURCES = $(VULKAN_SOURCES)
|
||||||
|
|
||||||
VULKAN_LIB_DEPS += \
|
VULKAN_LIB_DEPS += \
|
||||||
libvulkan_common.la \
|
libvulkan_common.la \
|
||||||
$(top_builddir)/src/vulkan/wsi/libvulkan_wsi.la \
|
$(top_builddir)/src/vulkan/libvulkan_wsi.la \
|
||||||
$(top_builddir)/src/amd/common/libamd_common.la \
|
$(top_builddir)/src/amd/common/libamd_common.la \
|
||||||
$(top_builddir)/src/amd/addrlib/libamdgpu_addrlib.la \
|
$(top_builddir)/src/amd/addrlib/libamdgpu_addrlib.la \
|
||||||
$(top_builddir)/src/compiler/nir/libnir.la \
|
$(top_builddir)/src/compiler/nir/libnir.la \
|
||||||
|
|
|
||||||
|
|
@ -127,8 +127,8 @@ libvulkan_common_la_SOURCES = $(VULKAN_SOURCES)
|
||||||
|
|
||||||
VULKAN_LIB_DEPS += \
|
VULKAN_LIB_DEPS += \
|
||||||
libvulkan_common.la \
|
libvulkan_common.la \
|
||||||
$(top_builddir)/src/vulkan/util/libvulkan_util.la \
|
$(top_builddir)/src/vulkan/libvulkan_util.la \
|
||||||
$(top_builddir)/src/vulkan/wsi/libvulkan_wsi.la \
|
$(top_builddir)/src/vulkan/libvulkan_wsi.la \
|
||||||
$(top_builddir)/src/mesa/drivers/dri/i965/libi965_compiler.la \
|
$(top_builddir)/src/mesa/drivers/dri/i965/libi965_compiler.la \
|
||||||
$(top_builddir)/src/compiler/nir/libnir.la \
|
$(top_builddir)/src/compiler/nir/libnir.la \
|
||||||
$(top_builddir)/src/util/libmesautil.la \
|
$(top_builddir)/src/util/libmesautil.la \
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,21 @@
|
||||||
|
|
||||||
include Makefile.sources
|
include Makefile.sources
|
||||||
|
|
||||||
vulkan_includedir = $(includedir)/vulkan
|
noinst_LTLIBRARIES = libvulkan_wsi.la libvulkan_util.la
|
||||||
|
|
||||||
noinst_LTLIBRARIES = libvulkan_wsi.la
|
vulkan_includedir = $(includedir)/vulkan
|
||||||
|
vulkan_api_xml = $(top_srcdir)/src/vulkan/registry/vk.xml
|
||||||
|
|
||||||
|
EXTRA_DIST = \
|
||||||
|
util/gen_enum_to_str.py
|
||||||
|
|
||||||
|
BUILT_SOURCES = \
|
||||||
|
util/vk_enum_to_str.c \
|
||||||
|
util/vk_enum_to_str.h
|
||||||
|
|
||||||
|
util/vk_enum_to_str.c util/vk_enum_to_str.h: util/gen_enum_to_str.py $(vulkan_api_xml)
|
||||||
|
$(AM_V_GEN)$(PYTHON2) $(srcdir)/util/gen_enum_to_str.py
|
||||||
|
|
||||||
|
libvulkan_util_la_SOURCES = $(VULKAN_UTIL_FILES)
|
||||||
|
|
||||||
AM_CPPFLAGS = \
|
AM_CPPFLAGS = \
|
||||||
$(DEFINES) \
|
$(DEFINES) \
|
||||||
16
src/vulkan/Makefile.sources
Normal file
16
src/vulkan/Makefile.sources
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
|
||||||
|
VULKAN_WSI_FILES := \
|
||||||
|
wsi/wsi_common.h \
|
||||||
|
wsi/wsi_common_queue.h
|
||||||
|
|
||||||
|
VULKAN_WSI_WAYLAND_FILES := \
|
||||||
|
wsi/wsi_common_wayland.c \
|
||||||
|
wsi/wsi_common_wayland.h
|
||||||
|
|
||||||
|
VULKAN_WSI_X11_FILES := \
|
||||||
|
wsi/wsi_common_x11.c \
|
||||||
|
wsi/wsi_common_x11.h
|
||||||
|
|
||||||
|
VULKAN_UTIL_FILES := \
|
||||||
|
util/vk_enum_to_str.c \
|
||||||
|
util/vk_enum_to_str.h
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
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
|
|
||||||
|
|
||||||
|
|
@ -159,8 +159,8 @@ def xml_parser(filename):
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
enums = xml_parser(VK_XML)
|
enums = xml_parser(VK_XML)
|
||||||
for template, file_ in [(C_TEMPLATE, 'vk_enum_to_str.c'),
|
for template, file_ in [(C_TEMPLATE, 'util/vk_enum_to_str.c'),
|
||||||
(H_TEMPLATE, 'vk_enum_to_str.h')]:
|
(H_TEMPLATE, 'util/vk_enum_to_str.h')]:
|
||||||
with open(file_, 'wb') as f:
|
with open(file_, 'wb') as f:
|
||||||
f.write(template.render(
|
f.write(template.render(
|
||||||
file=os.path.basename(__file__),
|
file=os.path.basename(__file__),
|
||||||
|
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
|
|
||||||
VULKAN_WSI_FILES := \
|
|
||||||
wsi_common.h \
|
|
||||||
wsi_common_queue.h
|
|
||||||
|
|
||||||
VULKAN_WSI_WAYLAND_FILES := \
|
|
||||||
wsi_common_wayland.c \
|
|
||||||
wsi_common_wayland.h
|
|
||||||
|
|
||||||
VULKAN_WSI_X11_FILES := \
|
|
||||||
wsi_common_x11.c \
|
|
||||||
wsi_common_x11.h
|
|
||||||
Loading…
Add table
Reference in a new issue