mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 14:58:10 -05:00
Add statemap raw files for iw4
This commit is contained in:
52
tools/scripts/raw.lua
Normal file
52
tools/scripts/raw.lua
Normal file
@ -0,0 +1,52 @@
|
||||
Raw = {}
|
||||
|
||||
function Raw:include(includes)
|
||||
if includes:handle(self:name()) then
|
||||
Utils:include(includes)
|
||||
includedirs {
|
||||
RawFolder()
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
function Raw:link(links)
|
||||
end
|
||||
|
||||
function Raw:use()
|
||||
|
||||
end
|
||||
|
||||
function Raw:name()
|
||||
return "Raw"
|
||||
end
|
||||
|
||||
function Raw:project()
|
||||
local folder = RawFolder()
|
||||
|
||||
project(self:name())
|
||||
targetdir(TargetDirectoryBin)
|
||||
location "%{wks.location}/raw"
|
||||
kind "Utility"
|
||||
|
||||
files {
|
||||
path.join(folder, "*/**"),
|
||||
path.join(folder, "*/**")
|
||||
}
|
||||
|
||||
vpaths {
|
||||
["*"] = {
|
||||
folder
|
||||
}
|
||||
}
|
||||
|
||||
filter "files:**"
|
||||
buildmessage 'Copying rawfile %{file.relpath}'
|
||||
buildcommands {
|
||||
-- Relpath contains two .. so build/raw is getting reverted in the target path
|
||||
"cp \"%{file.relpath}\" \"%{cfg.targetdir}/build/raw/%{file.relpath}\""
|
||||
}
|
||||
buildoutputs {
|
||||
"%{cfg.targetdir}/build/raw/%{file.relpath}"
|
||||
}
|
||||
filter {}
|
||||
end
|
Reference in New Issue
Block a user