h2-mod/deps/premake/gsc-tool.lua
2023-03-07 19:34:33 +01:00

62 lines
1.4 KiB
Lua

gsc_tool = {
source = path.join(dependencies.basePath, "gsc-tool"),
}
function gsc_tool.import()
links { "xsk-gsc-h2", "xsk-gsc-utils" }
gsc_tool.includes()
end
function gsc_tool.includes()
includedirs {
path.join(gsc_tool.source, "include"),
}
end
function gsc_tool.project()
project "xsk-gsc-utils"
kind "StaticLib"
language "C++"
files {
path.join(gsc_tool.source, "include/xsk/utils/*.hpp"),
path.join(gsc_tool.source, "src/utils/*.cpp"),
}
includedirs {
path.join(gsc_tool.source, "include"),
}
zlib.includes()
project "xsk-gsc-h2"
kind "StaticLib"
language "C++"
filter "action:vs*"
buildoptions "/Zc:__cplusplus"
filter {}
files {
path.join(gsc_tool.source, "include/xsk/stdinc.hpp"),
path.join(gsc_tool.source, "include/xsk/gsc/engine/h2.hpp"),
path.join(gsc_tool.source, "src/gsc/engine/h2.cpp"),
path.join(gsc_tool.source, "src/gsc/engine/h2_code.cpp"),
path.join(gsc_tool.source, "src/gsc/engine/h2_func.cpp"),
path.join(gsc_tool.source, "src/gsc/engine/h2_meth.cpp"),
path.join(gsc_tool.source, "src/gsc/engine/h2_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"),
}
includedirs {
path.join(gsc_tool.source, "include"),
}
end
table.insert(dependencies, gsc_tool)