mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +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)
|
||||
return false;
|
||||
|
||||
m_output_file = fileName;
|
||||
m_output_file = (m_output_directory / fileName).string();
|
||||
m_output_stream = std::ofstream(m_output_file);
|
||||
if (!m_output_stream.is_open())
|
||||
{
|
||||
|
@ -53,8 +53,13 @@ function Raw:project()
|
||||
|
||||
filter "files:**/*.template"
|
||||
buildmessage 'Templating %{file.relpath}'
|
||||
buildinputs {
|
||||
TargetDirectoryBin .. "/" .. ExecutableByOs('RawTemplater')
|
||||
}
|
||||
buildcommands {
|
||||
"echo \"%{cfg.targetdir}/build/raw/%{file.reldirectory}\""
|
||||
'"' .. TargetDirectoryBin .. '/' .. ExecutableByOs('RawTemplater') .. '"'
|
||||
.. " -o %{cfg.targetdir}/build/raw/%{file.reldirectory}"
|
||||
.. " %{file.relpath}"
|
||||
}
|
||||
buildoutputs {
|
||||
"%{cfg.targetdir}/build/raw/%{file.relpath}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user