66 lines
1.3 KiB
Lua
66 lines
1.3 KiB
Lua
|
gsc_tool = {
|
||
|
source = path.join(dependencies.basePath, "gsc-tool/src"),
|
||
|
}
|
||
|
|
||
|
function gsc_tool.import()
|
||
|
links { "xsk-gsc-iw5", "xsk-gsc-utils" }
|
||
|
gsc_tool.includes()
|
||
|
end
|
||
|
|
||
|
function gsc_tool.includes()
|
||
|
includedirs {
|
||
|
path.join(gsc_tool.source, "iw5"),
|
||
|
path.join(gsc_tool.source, "utils"),
|
||
|
path.join(dependencies.basePath, "extra/gsc-tool"),
|
||
|
}
|
||
|
end
|
||
|
|
||
|
function gsc_tool.project()
|
||
|
project "xsk-gsc-utils"
|
||
|
kind "StaticLib"
|
||
|
language "C++"
|
||
|
|
||
|
pchheader "stdafx.hpp"
|
||
|
pchsource (path.join(gsc_tool.source, "utils/stdafx.cpp"))
|
||
|
|
||
|
files {
|
||
|
path.join(gsc_tool.source, "utils/**.hpp"),
|
||
|
path.join(gsc_tool.source, "utils/**.cpp"),
|
||
|
}
|
||
|
|
||
|
includedirs {
|
||
|
path.join(gsc_tool.source, "utils"),
|
||
|
gsc_tool.source,
|
||
|
}
|
||
|
|
||
|
zlib.includes()
|
||
|
|
||
|
project "xsk-gsc-iw5"
|
||
|
kind "StaticLib"
|
||
|
|
||
|
language "C++"
|
||
|
cppdialect "C++20"
|
||
|
|
||
|
filter "toolset:msc*"
|
||
|
buildoptions "/bigobj"
|
||
|
buildoptions "/Zc:__cplusplus"
|
||
|
filter {}
|
||
|
|
||
|
pchheader "stdafx.hpp"
|
||
|
pchsource (path.join(gsc_tool.source, "iw5/stdafx.cpp"))
|
||
|
|
||
|
files {
|
||
|
path.join(gsc_tool.source, "iw5/**.hpp"),
|
||
|
path.join(gsc_tool.source, "iw5/**.cpp"),
|
||
|
path.join(dependencies.basePath, "extra/gsc-tool/interface.cpp"),
|
||
|
}
|
||
|
|
||
|
includedirs {
|
||
|
path.join(gsc_tool.source, "iw5"),
|
||
|
gsc_tool.source,
|
||
|
path.join(dependencies.basePath, "extra/gsc-tool"),
|
||
|
}
|
||
|
end
|
||
|
|
||
|
table.insert(dependencies, gsc_tool)
|