Make compilation process compatible to linux on gcc

This commit is contained in:
Jan
2021-03-03 06:21:25 -08:00
parent 1cd06668e0
commit b4d8e9c17b
23 changed files with 210 additions and 23 deletions

View File

@ -188,19 +188,19 @@ function ZoneCode:project()
filter "files:**.gen"
buildmessage "Generating ZoneCode for game %{file.basename}"
buildcommands {
'"' .. TargetDirectoryBin .. '/ZoneCodeGenerator.exe"'
'"' .. TargetDirectoryBin .. '/' .. 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"'
.. ' -g * ZoneLoad'
.. ' -g * ZoneWrite'
.. ' -g * AssetStructTests'
.. ' -g "*" ZoneLoad'
.. ' -g "*" ZoneWrite'
.. ' -g "*" AssetStructTests'
}
buildinputs {
path.join(ProjectFolder(), "ZoneCode/Game/%{file.basename}/%{file.basename}.h"),
path.join(ProjectFolder(), "ZoneCode/Game/%{file.basename}/%{file.basename}_Commands.txt"),
path.join(ProjectFolder(), "ZoneCommon/Game/%{file.basename}/%{file.basename}_Assets.h"),
TargetDirectoryBin .. "/ZoneCodeGenerator.exe"
TargetDirectoryBin .. "/" .. ExecutableByOs('ZoneCodeGenerator')
}
filter {}