Add raw templater

This commit is contained in:
Jan
2022-09-05 23:25:11 +02:00
parent 4ef38264c8
commit 1464329245
21 changed files with 996 additions and 7 deletions

View File

@ -39,7 +39,7 @@ function Raw:project()
}
}
filter "files:**"
filter "files:not **/*.template"
buildmessage 'Copying rawfile %{file.relpath}'
buildcommands {
-- Relpath contains two .. so build/raw is getting reverted in the target path
@ -50,4 +50,14 @@ function Raw:project()
"%{cfg.targetdir}/build/raw/%{file.relpath}"
}
filter {}
filter "files:**/*.template"
buildmessage 'Templating %{file.relpath}'
buildcommands {
"echo \"%{cfg.targetdir}/build/raw/%{file.reldirectory}\""
}
buildoutputs {
"%{cfg.targetdir}/build/raw/%{file.relpath}"
}
filter {}
end