Print extern declaration when generating .cpp from .glsl

git-svn-id: https://svn.eduke32.com/eduke32@7800 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2019-07-16 09:35:13 +00:00 committed by Christoph Oelckers
parent d1b43acc06
commit 6a06a74886

View file

@ -1014,7 +1014,8 @@ $$($1_obj)/%.$$o: $$($1_obj)/%.c | $$($1_obj)
$$($1_obj)/%.$$o: $$($1_src)/%.glsl | $$($1_obj)
@echo Creating $$($1_obj)/$$(<F).cpp from $$<
@$$(call RAW_ECHO,char const *$$(basename $$(<F)) = R"shader$$(paren_open)) > $$($1_obj)/$$(<F).cpp
@$$(call RAW_ECHO,extern char const *$$(basename $$(<F));) > $$($1_obj)/$$(<F).cpp
@$$(call RAW_ECHO,char const *$$(basename $$(<F)) = R"shader$$(paren_open)) >> $$($1_obj)/$$(<F).cpp
@$$(call CAT,$$<) >> $$($1_obj)/$$(<F).cpp
@$$(call RAW_ECHO,$$(paren_close)shader";) >> $$($1_obj)/$$(<F).cpp
$$(COMPILE_STATUS)