mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 08:05:45 +00:00
Integrating templating into rawfile pipeline
This commit is contained in:
parent
f574204e61
commit
6a45031c96
@ -288,7 +288,7 @@ namespace templating
|
|||||||
if (m_write_output_to_file)
|
if (m_write_output_to_file)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
m_output_file = fileName;
|
m_output_file = (m_output_directory / fileName).string();
|
||||||
m_output_stream = std::ofstream(m_output_file);
|
m_output_stream = std::ofstream(m_output_file);
|
||||||
if (!m_output_stream.is_open())
|
if (!m_output_stream.is_open())
|
||||||
{
|
{
|
||||||
|
@ -53,8 +53,13 @@ function Raw:project()
|
|||||||
|
|
||||||
filter "files:**/*.template"
|
filter "files:**/*.template"
|
||||||
buildmessage 'Templating %{file.relpath}'
|
buildmessage 'Templating %{file.relpath}'
|
||||||
|
buildinputs {
|
||||||
|
TargetDirectoryBin .. "/" .. ExecutableByOs('RawTemplater')
|
||||||
|
}
|
||||||
buildcommands {
|
buildcommands {
|
||||||
"echo \"%{cfg.targetdir}/build/raw/%{file.reldirectory}\""
|
'"' .. TargetDirectoryBin .. '/' .. ExecutableByOs('RawTemplater') .. '"'
|
||||||
|
.. " -o %{cfg.targetdir}/build/raw/%{file.reldirectory}"
|
||||||
|
.. " %{file.relpath}"
|
||||||
}
|
}
|
||||||
buildoutputs {
|
buildoutputs {
|
||||||
"%{cfg.targetdir}/build/raw/%{file.relpath}"
|
"%{cfg.targetdir}/build/raw/%{file.relpath}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user