Move ZoneCodeGenerator and RawTemplater to buildtools output folder

This commit is contained in:
Jan 2023-06-19 19:11:03 +02:00
parent dd1114dd3d
commit 787fe967e3
5 changed files with 7 additions and 6 deletions

View File

@ -27,7 +27,7 @@ function RawTemplater:project()
local links = Links:create()
project(self:name())
targetdir(TargetDirectoryBin)
targetdir(TargetDirectoryBuildTools)
location "%{wks.location}/src/%{prj.name}"
kind "ConsoleApp"
language "C++"

View File

@ -297,7 +297,7 @@ function ZoneCode:project()
filter "files:**.gen"
buildmessage "Generating ZoneCode for game %{file.basename}"
buildcommands {
'"' .. TargetDirectoryBin .. '/' .. ExecutableByOs('ZoneCodeGenerator') .. '"'
'"' .. TargetDirectoryBuildTools .. '/' .. ExecutableByOs('ZoneCodeGenerator') .. '"'
.. ' -h "' .. path.join(path.getabsolute(ProjectFolder()), 'ZoneCode/Game/%{file.basename}/%{file.basename}.h') .. '"'
.. ' -c "' .. path.join(path.getabsolute(ProjectFolder()), 'ZoneCode/Game/%{file.basename}/%{file.basename}_Commands.txt') .. '"'
.. ' -o "%{wks.location}/src/ZoneCode/Game/%{file.basename}/XAssets"'
@ -309,7 +309,7 @@ function ZoneCode:project()
path.join(ProjectFolder(), "ZoneCode/Game/%{file.basename}/%{file.basename}.h"),
path.join(ProjectFolder(), "ZoneCode/Game/%{file.basename}/%{file.basename}_Commands.txt"),
path.join(ProjectFolder(), "Common/Game/%{file.basename}/%{file.basename}_Assets.h"),
TargetDirectoryBin .. "/" .. ExecutableByOs('ZoneCodeGenerator')
TargetDirectoryBuildTools .. "/" .. ExecutableByOs('ZoneCodeGenerator')
}
filter {}

View File

@ -27,7 +27,7 @@ function ZoneCodeGenerator:project()
local links = Links:create()
project(self:name())
targetdir(TargetDirectoryBin)
targetdir(TargetDirectoryBuildTools)
location "%{wks.location}/src/%{prj.name}"
kind "ConsoleApp"
language "C++"

View File

@ -26,5 +26,6 @@ end
-- Target Directories
TargetDirectoryBin = "%{wks.location}/bin/%{cfg.buildcfg}_%{cfg.platform}"
TargetDirectoryBuildTools = "%{wks.location}/buildtools/%{cfg.buildcfg}_%{cfg.platform}"
TargetDirectoryLib = "%{wks.location}/lib/%{cfg.buildcfg}_%{cfg.platform}"
TargetDirectoryTest = "%{wks.location}/lib/%{cfg.buildcfg}_%{cfg.platform}/tests"

View File

@ -56,10 +56,10 @@ function Raw:project()
filter "files:**/*.template"
buildmessage 'Templating %{file.relpath}'
buildinputs {
TargetDirectoryBin .. "/" .. ExecutableByOs('RawTemplater')
TargetDirectoryBuildTools .. "/" .. ExecutableByOs('RawTemplater')
}
buildcommands {
'"' .. TargetDirectoryBin .. '/' .. ExecutableByOs('RawTemplater') .. '"'
'"' .. TargetDirectoryBuildTools .. '/' .. ExecutableByOs('RawTemplater') .. '"'
.. " -o %{cfg.targetdir}/build/raw/%{file.reldirectory}"
.. " --build-log \"%{prj.location}/build/%{file.relpath}.log\""
.. " %{file.relpath}"