gsc-tool/premake5.lua

495 lines
8.6 KiB
Lua
Raw Normal View History

2020-05-21 07:32:38 -04:00
dependencies = { base = path.getrelative(os.getcwd(), path.getabsolute("deps")) }
function dependencies.load()
dir = path.join(dependencies.base, "*.lua")
deps = os.matchfiles(dir)
for i, dep in pairs(deps) do
dep = dep:gsub(".lua", "")
require(dep)
end
end
dependencies.load()
-------------------------------------------------
workspace "gsc-tool"
2023-01-23 17:31:08 -05:00
startproject "xsk-tool"
2020-05-21 07:32:38 -04:00
location "./build"
objdir "%{wks.location}/obj/%{cfg.buildcfg}/%{prj.name}"
targetdir "%{wks.location}/bin/%{cfg.platform}/%{cfg.buildcfg}"
2020-05-21 07:32:38 -04:00
targetname "%{prj.name}"
configurations { "debug", "release" }
if os.istarget("darwin") then
platforms { "x64", "arm64" }
else
platforms { "x86", "x64" }
end
filter "platforms:x86"
architecture "x86"
filter {}
filter "platforms:x64"
architecture "x86_64"
filter {}
filter "platforms:arm64"
architecture "ARM64"
filter {}
filter { "language:C++", "toolset:not msc*" }
buildoptions "-std=c++20"
filter {}
filter "toolset:msc*"
2020-05-21 07:32:38 -04:00
buildoptions "/bigobj"
buildoptions "/Zc:__cplusplus"
buildoptions "/std:c++20"
2021-12-25 14:10:30 -05:00
filter {}
2020-05-21 07:32:38 -04:00
filter { "system:windows" }
systemversion "latest"
filter {}
filter { "system:macosx" }
systemversion "12.0"
filter {}
2020-05-21 07:32:38 -04:00
symbols "On"
staticruntime "On"
2022-03-16 11:13:33 -04:00
warnings "Extra"
2020-05-21 07:32:38 -04:00
if os.istarget("linux") or os.istarget("darwin") then
buildoptions "-pthread"
linkoptions "-pthread"
end
filter "configurations:release"
2020-05-21 07:32:38 -04:00
optimize "Full"
2022-03-15 12:01:13 -04:00
defines { "NDEBUG" }
2022-03-16 11:13:33 -04:00
flags { "FatalCompileWarnings" }
2021-12-25 14:10:30 -05:00
filter {}
2020-05-21 07:32:38 -04:00
filter "configurations:debug"
2020-05-21 07:32:38 -04:00
optimize "Debug"
2022-03-15 12:01:13 -04:00
defines { "DEBUG", "_DEBUG" }
2021-12-25 14:10:30 -05:00
filter {}
2020-05-21 07:32:38 -04:00
2023-01-23 17:31:08 -05:00
project "xsk-tool"
2020-05-21 07:32:38 -04:00
kind "ConsoleApp"
language "C++"
targetname "gsc-tool"
2023-01-23 17:31:08 -05:00
dependson "xsk-utils"
dependson "xsk-gsc"
dependson "xsk-iw5_pc"
dependson "xsk-iw5_ps"
dependson "xsk-iw5_xb"
dependson "xsk-iw6_pc"
dependson "xsk-iw6_ps"
dependson "xsk-iw6_xb"
dependson "xsk-s1_pc"
dependson "xsk-s1_ps"
dependson "xsk-s1_xb"
dependson "xsk-iw7"
dependson "xsk-iw8"
dependson "xsk-iw9"
dependson "xsk-h1"
dependson "xsk-h2"
dependson "xsk-s2"
dependson "xsk-s4"
dependson "xsk-t6"
2020-05-21 07:32:38 -04:00
files {
"./src/tool/**.h",
"./src/tool/**.hpp",
"./src/tool/**.cpp"
}
links {
2023-01-23 17:31:08 -05:00
"xsk-utils",
"xsk-gsc",
"xsk-iw5_pc",
"xsk-iw5_ps",
"xsk-iw5_xb",
"xsk-iw6_pc",
"xsk-iw6_ps",
"xsk-iw6_xb",
"xsk-s1_pc",
"xsk-s1_ps",
"xsk-s1_xb",
"xsk-iw7",
"xsk-iw8",
"xsk-iw9",
"xsk-h1",
"xsk-h2",
"xsk-s2",
"xsk-s4",
"xsk-t6",
2020-05-21 07:32:38 -04:00
}
includedirs {
"./src/tool",
"./src"
}
2023-01-23 17:31:08 -05:00
fmt:link()
2020-05-21 07:32:38 -04:00
zlib:link()
2023-01-23 17:31:08 -05:00
project "xsk-utils"
2020-05-21 07:32:38 -04:00
kind "StaticLib"
language "C++"
files {
"./src/utils/**.h",
"./src/utils/**.hpp",
"./src/utils/**.cpp"
}
includedirs {
"./src/utils",
"./src"
}
2023-01-23 17:31:08 -05:00
fmt:include()
2020-05-21 07:32:38 -04:00
zlib:include()
2023-01-23 17:31:08 -05:00
project "xsk-gsc"
kind "StaticLib"
language "C++"
2022-08-23 07:49:51 -04:00
2023-01-23 17:31:08 -05:00
files {
"./src/gsc/**.h",
"./src/gsc/**.hpp",
"./src/gsc/**.cpp"
}
2022-08-23 07:49:51 -04:00
2023-01-23 17:31:08 -05:00
includedirs {
"./src/gsc",
"./src"
}
2022-08-23 07:49:51 -04:00
2023-01-23 17:31:08 -05:00
fmt:include()
2022-08-23 07:49:51 -04:00
2023-01-23 17:31:08 -05:00
project "xsk-iw5_pc"
kind "StaticLib"
language "C++"
2022-08-23 07:49:51 -04:00
2023-01-23 17:31:08 -05:00
files {
"./src/iw5/iw5_pc.hpp",
"./src/iw5/iw5_pc.cpp",
"./src/iw5/iw5_pc_code.cpp",
"./src/iw5/iw5_pc_func.cpp",
"./src/iw5/iw5_pc_meth.cpp",
"./src/iw5/iw5_pc_token.cpp"
}
2022-08-23 07:49:51 -04:00
2023-01-23 17:31:08 -05:00
includedirs {
"./src/iw5",
"./src"
}
2022-08-23 07:49:51 -04:00
2023-01-23 17:31:08 -05:00
fmt:include()
2022-08-23 07:49:51 -04:00
2023-01-23 17:31:08 -05:00
project "xsk-iw5_ps"
2020-05-21 07:32:38 -04:00
kind "StaticLib"
language "C++"
files {
2023-01-23 17:31:08 -05:00
"./src/iw5/iw5_ps.hpp",
"./src/iw5/iw5_ps.cpp",
"./src/iw5/iw5_ps_code.cpp",
"./src/iw5/iw5_ps_func.cpp",
"./src/iw5/iw5_ps_meth.cpp",
"./src/iw5/iw5_ps_token.cpp"
2020-05-21 07:32:38 -04:00
}
includedirs {
"./src/iw5",
"./src"
}
2023-01-23 17:31:08 -05:00
fmt:include()
project "xsk-iw5_xb"
2020-05-21 07:32:38 -04:00
kind "StaticLib"
language "C++"
2023-01-23 17:31:08 -05:00
files {
"./src/iw5/iw5_xb.hpp",
"./src/iw5/iw5_xb.cpp",
"./src/iw5/iw5_xb_code.cpp",
"./src/iw5/iw5_xb_func.cpp",
"./src/iw5/iw5_xb_meth.cpp",
"./src/iw5/iw5_xb_token.cpp"
}
includedirs {
"./src/iw5",
"./src"
}
fmt:include()
project "xsk-iw6_pc"
kind "StaticLib"
language "C++"
2020-05-21 07:32:38 -04:00
files {
2023-01-23 17:31:08 -05:00
"./src/iw6/iw6_pc.hpp",
"./src/iw6/iw6_pc.cpp",
"./src/iw6/iw6_pc_code.cpp",
"./src/iw6/iw6_pc_func.cpp",
"./src/iw6/iw6_pc_meth.cpp",
"./src/iw6/iw6_pc_token.cpp"
2020-05-21 07:32:38 -04:00
}
includedirs {
"./src/iw6",
"./src"
}
2023-01-23 17:31:08 -05:00
fmt:include()
project "xsk-iw6_ps"
2020-05-21 07:32:38 -04:00
kind "StaticLib"
language "C++"
files {
2023-01-23 17:31:08 -05:00
"./src/iw6/iw6_ps.hpp",
"./src/iw6/iw6_ps.cpp",
"./src/iw6/iw6_ps_code.cpp",
"./src/iw6/iw6_ps_func.cpp",
"./src/iw6/iw6_ps_meth.cpp",
"./src/iw6/iw6_ps_token.cpp"
2020-05-21 07:32:38 -04:00
}
includedirs {
2023-01-23 17:31:08 -05:00
"./src/iw6",
2020-05-21 07:32:38 -04:00
"./src"
}
2023-01-23 17:31:08 -05:00
fmt:include()
project "xsk-iw6_xb"
2021-05-08 13:18:20 -04:00
kind "StaticLib"
language "C++"
files {
2023-01-23 17:31:08 -05:00
"./src/iw6/iw6_xb.hpp",
"./src/iw6/iw6_xb.cpp",
"./src/iw6/iw6_xb_code.cpp",
"./src/iw6/iw6_xb_func.cpp",
"./src/iw6/iw6_xb_meth.cpp",
"./src/iw6/iw6_xb_token.cpp"
2021-05-08 13:18:20 -04:00
}
includedirs {
2023-01-23 17:31:08 -05:00
"./src/iw6",
2021-05-08 13:18:20 -04:00
"./src"
}
2023-01-23 17:31:08 -05:00
fmt:include()
project "xsk-s1_pc"
2022-09-22 08:14:37 -04:00
kind "StaticLib"
language "C++"
files {
2023-01-23 17:31:08 -05:00
"./src/s1/s1_pc.hpp",
"./src/s1/s1_pc.cpp",
"./src/s1/s1_pc_code.cpp",
"./src/s1/s1_pc_func.cpp",
"./src/s1/s1_pc_meth.cpp",
"./src/s1/s1_pc_token.cpp"
2022-09-22 08:14:37 -04:00
}
includedirs {
2023-01-23 17:31:08 -05:00
"./src/s1",
2022-09-22 08:14:37 -04:00
"./src"
}
2023-01-23 17:31:08 -05:00
fmt:include()
project "xsk-s1_ps"
2020-05-21 07:32:38 -04:00
kind "StaticLib"
language "C++"
files {
2023-01-23 17:31:08 -05:00
"./src/s1/s1_ps.hpp",
"./src/s1/s1_ps.cpp",
"./src/s1/s1_ps_code.cpp",
"./src/s1/s1_ps_func.cpp",
"./src/s1/s1_ps_meth.cpp",
"./src/s1/s1_ps_token.cpp"
2020-05-21 07:32:38 -04:00
}
includedirs {
"./src/s1",
"./src"
}
2023-01-23 17:31:08 -05:00
fmt:include()
project "xsk-s1_xb"
2020-05-21 07:32:38 -04:00
kind "StaticLib"
language "C++"
files {
2023-01-23 17:31:08 -05:00
"./src/s1/s1_xb.hpp",
"./src/s1/s1_xb.cpp",
"./src/s1/s1_xb_code.cpp",
"./src/s1/s1_xb_func.cpp",
"./src/s1/s1_xb_meth.cpp",
"./src/s1/s1_xb_token.cpp"
2020-05-21 07:32:38 -04:00
}
includedirs {
2023-01-23 17:31:08 -05:00
"./src/s1",
2020-05-21 07:32:38 -04:00
"./src"
}
2023-01-23 17:31:08 -05:00
fmt:include()
project "xsk-iw7"
2021-09-13 11:50:36 -04:00
kind "StaticLib"
language "C++"
files {
2023-01-23 17:31:08 -05:00
"./src/iw7/**.h",
"./src/iw7/**.hpp",
"./src/iw7/**.cpp"
2021-09-13 11:50:36 -04:00
}
includedirs {
2023-01-23 17:31:08 -05:00
"./src/iw7",
2021-09-13 11:50:36 -04:00
"./src"
}
2023-01-23 17:31:08 -05:00
fmt:include()
project "xsk-iw8"
2020-05-21 07:32:38 -04:00
kind "StaticLib"
language "C++"
files {
2023-01-23 17:31:08 -05:00
"./src/iw8/**.h",
"./src/iw8/**.hpp",
"./src/iw8/**.cpp"
2020-05-21 07:32:38 -04:00
}
includedirs {
2023-01-23 17:31:08 -05:00
"./src/iw8",
2020-05-21 07:32:38 -04:00
"./src"
}
2023-01-23 17:31:08 -05:00
fmt:include()
project "xsk-iw9"
2022-02-18 13:07:37 -05:00
kind "StaticLib"
language "C++"
2023-01-23 17:31:08 -05:00
files {
"./src/iw9/**.h",
"./src/iw9/**.hpp",
"./src/iw9/**.cpp"
}
includedirs {
"./src/iw9",
"./src"
}
fmt:include()
project "xsk-h1"
kind "StaticLib"
language "C++"
2022-02-18 13:07:37 -05:00
files {
2023-01-23 17:31:08 -05:00
"./src/h1/**.h",
"./src/h1/**.hpp",
"./src/h1/**.cpp"
2022-02-18 13:07:37 -05:00
}
includedirs {
2023-01-23 17:31:08 -05:00
"./src/h1",
2022-02-18 13:07:37 -05:00
"./src"
}
2023-01-23 17:31:08 -05:00
fmt:include()
project "xsk-h2"
kind "StaticLib"
language "C++"
2023-01-23 17:31:08 -05:00
files {
"./src/h2/**.h",
"./src/h2/**.hpp",
"./src/h2/**.cpp"
}
includedirs {
"./src/h2",
"./src"
}
fmt:include()
project "xsk-s2"
kind "StaticLib"
language "C++"
files {
2023-01-23 17:31:08 -05:00
"./src/s2/**.h",
"./src/s2/**.hpp",
"./src/s2/**.cpp"
}
includedirs {
2023-01-23 17:31:08 -05:00
"./src/s2",
"./src"
}
2023-01-23 17:31:08 -05:00
fmt:include()
project "xsk-s4"
kind "StaticLib"
language "C++"
2023-01-23 17:31:08 -05:00
files {
"./src/s4/**.h",
"./src/s4/**.hpp",
"./src/s4/**.cpp"
}
includedirs {
"./src/s4",
"./src"
}
fmt:include()
project "xsk-t6"
kind "StaticLib"
language "C++"
files {
2023-01-23 17:31:08 -05:00
"./src/t6/**.h",
"./src/t6/**.hpp",
"./src/t6/**.cpp"
}
includedirs {
2023-01-23 17:31:08 -05:00
"./src/t6",
"./src"
}
2023-01-23 17:31:08 -05:00
fmt:include()
2020-05-21 07:32:38 -04:00
group "Dependencies"
2023-01-23 17:31:08 -05:00
fmt:project()
2020-05-21 07:32:38 -04:00
zlib:project()