mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-13 06:00:42 +00:00
8271860fb3
I want to support reading VkPhysicalDeviceLimits but it has some arrays. While I don't need to parse them (VkPhysicalDeviceLimits should be treated as read-only), I do need to be able to access them in property list expressions, and vkgen generates the cexpr type descriptors too. However, I will probably want to parse arrays some time in the future.
65 lines
2.7 KiB
Text
65 lines
2.7 KiB
Text
vkgen = vkgen.dat$(EXEEXT)
|
|
noinst_PROGRAMS += @VKGEN_TARGETS@
|
|
|
|
EXTRA_PROGRAMS += vkgen.dat$(EXEEXT)
|
|
|
|
vkgen_dat_src= \
|
|
libs/video/renderer/vulkan/vkgen/vkalias.r \
|
|
libs/video/renderer/vulkan/vkgen/vkenum.r \
|
|
libs/video/renderer/vulkan/vkgen/vkfieldarray.r \
|
|
libs/video/renderer/vulkan/vkgen/vkfieldauto.r \
|
|
libs/video/renderer/vulkan/vkgen/vkfieldcustom.r \
|
|
libs/video/renderer/vulkan/vkgen/vkfielddata.r \
|
|
libs/video/renderer/vulkan/vkgen/vkfielddef.r \
|
|
libs/video/renderer/vulkan/vkgen/vkfieldsingle.r \
|
|
libs/video/renderer/vulkan/vkgen/vkfieldstring.r \
|
|
libs/video/renderer/vulkan/vkgen/vkfieldtype.r \
|
|
libs/video/renderer/vulkan/vkgen/vkfixedarray.r \
|
|
libs/video/renderer/vulkan/vkgen/vkgen.r \
|
|
libs/video/renderer/vulkan/vkgen/vkstruct.r \
|
|
libs/video/renderer/vulkan/vkgen/vktype.r \
|
|
libs/video/renderer/vulkan/vkgen/vulkan.r
|
|
|
|
VKGENUSRINC = /usr/include
|
|
VKGENFLAGS = -I$(top_srcdir)/libs/video/renderer/vulkan/vkgen -I$(VKGENUSRINC)
|
|
|
|
vkgen_dat_SOURCES=$(vkgen_dat_src)
|
|
vkgen_obj=$(vkgen_dat_SOURCES:.r=.o)
|
|
vkgen_dep=$(call qcautodep,$(vkgen_dat_SOURCES:.o=.Qo))
|
|
vkgen.dat$(EXEEXT): $(vkgen_obj) $(QFCC_DEP) ruamoko/lib/libcsqc.a ruamoko/lib/libr.a
|
|
$(V_QFCCLD)$(QLINK) -o $@ $(vkgen_obj) -lcsqc -lr
|
|
include $(vkgen_dep) # am--include-marker
|
|
r_depfiles_remade += $(vkgen_dep)
|
|
|
|
libs/video/renderer/vulkan/vkgen/vkgen.o: $(top_srcdir)/libs/video/renderer/vulkan/vkgen/vkgen.r
|
|
$(V_QFCC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
|
|
$(QCOMPILE) ${VKGENFLAGS} -MT $@ -MD -MP -MF $$depbase.Tqo -c -o $@ $< &&\
|
|
sed -i -e '1s@:@: $(QFCC_DEP)@' $$depbase.Tqo &&\
|
|
$(am__mv) $$depbase.Tqo $$depbase.Qo
|
|
|
|
libs/video/renderer/vulkan/vkgen/vulkan.o: $(top_srcdir)/libs/video/renderer/vulkan/vkgen/vulkan.r
|
|
$(V_QFCC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
|
|
$(QCOMPILE) ${VKGENFLAGS} -MT $@ -MD -MP -MF $$depbase.Tqo -c -o $@ $< &&\
|
|
sed -i -e '1s@:@: $(QFCC_DEP)@' $$depbase.Tqo &&\
|
|
$(am__mv) $$depbase.Tqo $$depbase.Qo
|
|
|
|
EXTRA_DIST += \
|
|
libs/video/renderer/vulkan/vkgen/stddef.h \
|
|
libs/video/renderer/vulkan/vkgen/stdint.h \
|
|
libs/video/renderer/vulkan/vkgen/vkalias.h \
|
|
libs/video/renderer/vulkan/vkgen/vkenum.h \
|
|
libs/video/renderer/vulkan/vkgen/vkfieldarray.h \
|
|
libs/video/renderer/vulkan/vkgen/vkfieldauto.h \
|
|
libs/video/renderer/vulkan/vkgen/vkfieldcustom.h \
|
|
libs/video/renderer/vulkan/vkgen/vkfielddata.h \
|
|
libs/video/renderer/vulkan/vkgen/vkfielddef.h \
|
|
libs/video/renderer/vulkan/vkgen/vkfieldsingle.h \
|
|
libs/video/renderer/vulkan/vkgen/vkfieldstring.h \
|
|
libs/video/renderer/vulkan/vkgen/vkfieldtype.h \
|
|
libs/video/renderer/vulkan/vkgen/vkfixedarray.h \
|
|
libs/video/renderer/vulkan/vkgen/vkgen.h \
|
|
libs/video/renderer/vulkan/vkgen/vkstruct.h \
|
|
libs/video/renderer/vulkan/vkgen/vktype.h
|
|
|
|
CLEANFILES += \
|
|
libs/video/renderer/vkgen/*.sym
|