mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-09-01 06:27:26 +00:00
Integrating templating into rawfile pipeline
This commit is contained in:
@@ -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}"
|
||||
|
Reference in New Issue
Block a user