s1x-client/deps/premake/gsc-tool.lua

63 lines
1.4 KiB
Lua
Raw Normal View History

2022-09-14 09:33:48 +02:00
gsc_tool = {
2023-03-02 19:20:30 +01:00
source = path.join(dependencies.basePath, "gsc-tool"),
2022-09-14 09:33:48 +02:00
}
function gsc_tool.import()
links { "xsk-gsc-s1", "xsk-gsc-utils" }
gsc_tool.includes()
end
function gsc_tool.includes()
includedirs {
2023-03-02 19:20:30 +01:00
path.join(gsc_tool.source, "include"),
2022-09-14 09:33:48 +02:00
}
end
function gsc_tool.project()
project "xsk-gsc-utils"
kind "StaticLib"
language "C++"
files {
2023-03-02 19:20:30 +01:00
path.join(gsc_tool.source, "include/xsk/utils/*.hpp"),
path.join(gsc_tool.source, "src/utils/*.cpp"),
2022-09-14 09:33:48 +02:00
}
includedirs {
2023-03-02 19:20:30 +01:00
path.join(gsc_tool.source, "include"),
2022-09-14 09:33:48 +02:00
}
zlib.includes()
project "xsk-gsc-s1"
kind "StaticLib"
language "C++"
filter "action:vs*"
buildoptions "/Zc:__cplusplus"
filter {}
files {
2023-03-02 19:20:30 +01:00
path.join(gsc_tool.source, "include/xsk/stdinc.hpp"),
path.join(gsc_tool.source, "include/xsk/gsc/engine/s1_pc.hpp"),
path.join(gsc_tool.source, "src/gsc/engine/s1_pc.cpp"),
path.join(gsc_tool.source, "src/gsc/engine/s1_pc_code.cpp"),
path.join(gsc_tool.source, "src/gsc/engine/s1_pc_func.cpp"),
path.join(gsc_tool.source, "src/gsc/engine/s1_pc_meth.cpp"),
path.join(gsc_tool.source, "src/gsc/engine/s1_pc_token.cpp"),
path.join(gsc_tool.source, "src/gsc/*.cpp"),
path.join(gsc_tool.source, "src/gsc/common/*.cpp"),
path.join(gsc_tool.source, "include/xsk/gsc/common/*.hpp"),
2022-09-14 09:33:48 +02:00
}
includedirs {
2023-03-02 19:20:30 +01:00
path.join(gsc_tool.source, "include"),
2022-09-14 09:33:48 +02:00
}
end
table.insert(dependencies, gsc_tool)