mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
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:
parent
d1b43acc06
commit
6a06a74886
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue