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

62 lines
1.4 KiB
Lua
Raw Normal View History

2022-08-24 13:07:14 -04:00
gsc_tool = {
2023-03-07 13:34:33 -05:00
source = path.join(dependencies.basePath, "gsc-tool"),
2022-08-24 13:07:14 -04:00
}
function gsc_tool.import()
2023-03-07 13:34:33 -05:00
links { "xsk-gsc-h2", "xsk-gsc-utils" }
gsc_tool.includes()
2022-08-24 13:07:14 -04:00
end
function gsc_tool.includes()
2023-03-07 13:34:33 -05:00
includedirs {
path.join(gsc_tool.source, "include"),
}
2022-08-24 13:07:14 -04:00
end
function gsc_tool.project()
2023-03-07 13:34:33 -05:00
project "xsk-gsc-utils"
kind "StaticLib"
language "C++"
2022-08-24 13:07:14 -04:00
2023-03-07 13:34:33 -05:00
files {
path.join(gsc_tool.source, "include/xsk/utils/*.hpp"),
path.join(gsc_tool.source, "src/utils/*.cpp"),
}
2022-08-24 13:07:14 -04:00
2023-03-07 13:34:33 -05:00
includedirs {
path.join(gsc_tool.source, "include"),
}
2022-08-24 13:07:14 -04:00
2023-03-07 13:34:33 -05:00
zlib.includes()
2022-08-24 13:07:14 -04:00
2023-03-07 13:34:33 -05:00
project "xsk-gsc-h2"
kind "StaticLib"
language "C++"
2022-08-24 13:07:14 -04:00
2023-03-07 13:34:33 -05:00
filter "action:vs*"
buildoptions "/Zc:__cplusplus"
filter {}
2022-08-24 13:07:14 -04:00
2023-03-07 13:34:33 -05:00
files {
path.join(gsc_tool.source, "include/xsk/stdinc.hpp"),
2022-08-24 13:07:14 -04:00
2023-03-07 13:34:33 -05:00
path.join(gsc_tool.source, "include/xsk/gsc/engine/h2.hpp"),
path.join(gsc_tool.source, "src/gsc/engine/h2.cpp"),
2022-08-24 13:07:14 -04:00
2023-03-07 13:34:33 -05:00
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"),
2022-08-24 13:07:14 -04:00
2023-03-07 13:34:33 -05:00
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"),
}
2022-08-24 13:07:14 -04:00
end
2023-03-07 13:34:33 -05:00
table.insert(dependencies, gsc_tool)