mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 07:42:54 +00:00
Move ZoneCodeGenerator and RawTemplater to buildtools output folder
This commit is contained in:
parent
dd1114dd3d
commit
787fe967e3
@ -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++"
|
||||
|
@ -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 {}
|
||||
|
||||
|
@ -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++"
|
||||
|
@ -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"
|
@ -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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user