iw5-mod/deps/premake/gsc-tool.lua

73 lines
1.6 KiB
Lua
Raw Normal View History

2022-12-03 10:41:24 -05:00
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"),
2023-02-12 07:43:29 -05:00
path.join(gsc_tool.source, "gsc"),
gsc_tool.source,
2022-12-03 10:41:24 -05:00
path.join(dependencies.basePath, "extra/gsc-tool"),
}
end
function gsc_tool.project()
project "xsk-gsc-utils"
kind "StaticLib"
language "C++"
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()
2023-02-12 07:43:29 -05:00
fmt.includes()
2022-12-03 10:41:24 -05:00
project "xsk-gsc-iw5"
kind "StaticLib"
language "C++"
2023-02-12 07:43:29 -05:00
filter "action:vs*"
2022-12-03 10:41:24 -05:00
buildoptions "/Zc:__cplusplus"
filter {}
files {
2023-02-12 07:43:29 -05:00
path.join(gsc_tool.source, "iw5/iw5_pc.hpp"),
path.join(gsc_tool.source, "iw5/iw5_pc.cpp"),
path.join(gsc_tool.source, "iw5/iw5_pc_code.cpp"),
path.join(gsc_tool.source, "iw5/iw5_pc_func.cpp"),
path.join(gsc_tool.source, "iw5/iw5_pc_meth.cpp"),
path.join(gsc_tool.source, "iw5/iw5_pc_token.cpp"),
path.join(gsc_tool.source, "gsc/misc/*.hpp"),
path.join(gsc_tool.source, "gsc/misc/*.cpp"),
path.join(gsc_tool.source, "gsc/*.hpp"),
path.join(gsc_tool.source, "gsc/*.cpp"),
path.join(dependencies.basePath, "extra/gsc-tool/gsc_interface.cpp"),
2022-12-03 10:41:24 -05:00
}
includedirs {
path.join(gsc_tool.source, "iw5"),
gsc_tool.source,
path.join(dependencies.basePath, "extra/gsc-tool"),
}
2023-02-12 07:43:29 -05:00
fmt.includes()
2022-12-03 10:41:24 -05:00
end
table.insert(dependencies, gsc_tool)