gsc-tool/premake5.lua

357 lines
6.2 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"
location "./build"
objdir "%{wks.location}/obj/%{cfg.buildcfg}/%{prj.name}"
targetdir "%{wks.location}/bin/%{cfg.buildcfg}"
targetname "%{prj.name}"
2022-03-16 11:13:33 -04:00
staticruntime "On"
2020-05-21 07:32:38 -04:00
language "C++"
2022-01-19 14:01:12 -05:00
cppdialect "C++20"
2022-03-16 13:21:16 -04:00
architecture "x86_64"
2020-05-21 07:32:38 -04:00
filter "action:vs*"
buildoptions "/bigobj"
buildoptions "/Zc:__cplusplus"
2021-12-25 14:10:30 -05:00
filter {}
2020-05-21 07:32:38 -04:00
2022-03-15 12:01:13 -04:00
configurations { "Debug", "Release" }
2020-05-21 07:32:38 -04:00
symbols "On"
2022-03-16 11:13:33 -04:00
warnings "Extra"
2020-05-21 07:32:38 -04:00
2022-03-15 12:01:13 -04:00
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
2022-03-15 12:01:13 -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
startproject "xsk-gsc-tool"
project "xsk-gsc-tool"
kind "ConsoleApp"
language "C++"
targetname "gsc-tool"
dependson "xsk-gsc-utils"
2022-08-23 07:49:51 -04:00
dependson "xsk-gsc-h1"
dependson "xsk-gsc-h2"
2020-05-21 07:32:38 -04:00
dependson "xsk-gsc-iw5"
dependson "xsk-gsc-iw6"
dependson "xsk-gsc-iw7"
2021-05-08 13:18:20 -04:00
dependson "xsk-gsc-iw8"
2020-05-21 07:32:38 -04:00
dependson "xsk-gsc-s1"
dependson "xsk-gsc-s2"
2021-09-13 11:50:36 -04:00
dependson "xsk-gsc-s4"
2022-02-18 13:07:37 -05:00
dependson "xsk-arc-t6"
2022-08-23 07:49:51 -04:00
dependson "xsk-gsc-iw5c"
dependson "xsk-gsc-iw6c"
dependson "xsk-gsc-s1c"
2020-05-21 07:32:38 -04:00
pchheader "stdafx.hpp"
pchsource "src/tool/stdafx.cpp"
files {
"./src/tool/**.h",
"./src/tool/**.hpp",
"./src/tool/**.cpp"
}
links {
"xsk-gsc-utils",
2022-08-23 07:49:51 -04:00
"xsk-gsc-h1",
"xsk-gsc-h2",
2020-05-21 07:32:38 -04:00
"xsk-gsc-iw5",
"xsk-gsc-iw6",
"xsk-gsc-iw7",
2021-05-08 13:18:20 -04:00
"xsk-gsc-iw8",
2020-05-21 07:32:38 -04:00
"xsk-gsc-s1",
"xsk-gsc-s2",
2021-09-13 11:50:36 -04:00
"xsk-gsc-s4",
2022-08-23 07:49:51 -04:00
"xsk-arc-t6",
"xsk-gsc-iw5c",
"xsk-gsc-iw6c",
"xsk-gsc-s1c"
2020-05-21 07:32:38 -04:00
}
includedirs {
"./src/tool",
"./src"
}
zlib:link()
project "xsk-gsc-utils"
kind "StaticLib"
language "C++"
pchheader "stdafx.hpp"
pchsource "src/utils/stdafx.cpp"
files {
"./src/utils/**.h",
"./src/utils/**.hpp",
"./src/utils/**.cpp"
}
includedirs {
"./src/utils",
"./src"
}
zlib:include()
2022-08-23 07:49:51 -04:00
project "xsk-gsc-h1"
kind "StaticLib"
language "C++"
pchheader "stdafx.hpp"
pchsource "src/h1/stdafx.cpp"
files {
"./src/h1/**.h",
"./src/h1/**.hpp",
"./src/h1/**.cpp"
}
includedirs {
"./src/h1",
"./src"
}
project "xsk-gsc-h2"
kind "StaticLib"
language "C++"
pchheader "stdafx.hpp"
pchsource "src/h2/stdafx.cpp"
files {
"./src/h2/**.h",
"./src/h2/**.hpp",
"./src/h2/**.cpp"
}
includedirs {
"./src/h2",
"./src"
}
2020-05-21 07:32:38 -04:00
project "xsk-gsc-iw5"
kind "StaticLib"
language "C++"
pchheader "stdafx.hpp"
pchsource "src/iw5/stdafx.cpp"
files {
"./src/iw5/**.h",
"./src/iw5/**.hpp",
"./src/iw5/**.cpp"
}
includedirs {
"./src/iw5",
"./src"
}
project "xsk-gsc-iw6"
kind "StaticLib"
language "C++"
pchheader "stdafx.hpp"
pchsource "src/iw6/stdafx.cpp"
files {
"./src/iw6/**.h",
"./src/iw6/**.hpp",
"./src/iw6/**.cpp"
}
includedirs {
"./src/iw6",
"./src"
}
project "xsk-gsc-iw7"
kind "StaticLib"
language "C++"
pchheader "stdafx.hpp"
pchsource "src/iw7/stdafx.cpp"
files {
"./src/iw7/**.h",
"./src/iw7/**.hpp",
"./src/iw7/**.cpp"
}
includedirs {
"./src/iw7",
"./src"
}
2021-05-08 13:18:20 -04:00
project "xsk-gsc-iw8"
kind "StaticLib"
language "C++"
pchheader "stdafx.hpp"
pchsource "src/iw8/stdafx.cpp"
files {
"./src/iw8/**.h",
"./src/iw8/**.hpp",
"./src/iw8/**.cpp"
}
includedirs {
"./src/iw8",
"./src"
}
2020-05-21 07:32:38 -04:00
project "xsk-gsc-s1"
kind "StaticLib"
language "C++"
pchheader "stdafx.hpp"
pchsource "src/s1/stdafx.cpp"
files {
"./src/s1/**.h",
"./src/s1/**.hpp",
"./src/s1/**.cpp"
}
includedirs {
"./src/s1",
"./src"
}
project "xsk-gsc-s2"
kind "StaticLib"
language "C++"
pchheader "stdafx.hpp"
pchsource "src/s2/stdafx.cpp"
files {
"./src/s2/**.h",
"./src/s2/**.hpp",
"./src/s2/**.cpp"
}
includedirs {
"./src/s2",
"./src"
}
2021-09-13 11:50:36 -04:00
project "xsk-gsc-s4"
kind "StaticLib"
language "C++"
pchheader "stdafx.hpp"
pchsource "src/s4/stdafx.cpp"
files {
"./src/s4/**.h",
"./src/s4/**.hpp",
"./src/s4/**.cpp"
}
includedirs {
"./src/s4",
"./src"
}
2022-08-23 07:49:51 -04:00
project "xsk-arc-t6"
2020-05-21 07:32:38 -04:00
kind "StaticLib"
language "C++"
pchheader "stdafx.hpp"
2022-08-23 07:49:51 -04:00
pchsource "src/t6/stdafx.cpp"
2020-05-21 07:32:38 -04:00
files {
2022-08-23 07:49:51 -04:00
"./src/t6/**.h",
"./src/t6/**.hpp",
"./src/t6/**.cpp"
2020-05-21 07:32:38 -04:00
}
includedirs {
2022-08-23 07:49:51 -04:00
"./src/t6",
2020-05-21 07:32:38 -04:00
"./src"
}
2022-08-23 07:49:51 -04:00
project "xsk-gsc-iw5c"
2022-02-18 13:07:37 -05:00
kind "StaticLib"
language "C++"
pchheader "stdafx.hpp"
2022-08-23 07:49:51 -04:00
pchsource "src/experimental/iw5c/stdafx.cpp"
2022-02-18 13:07:37 -05:00
files {
2022-08-23 07:49:51 -04:00
"./src/experimental/iw5c/**.h",
"./src/experimental/iw5c/**.hpp",
"./src/experimental/iw5c/**.cpp"
2022-02-18 13:07:37 -05:00
}
includedirs {
2022-08-23 07:49:51 -04:00
"./src/experimental/iw5c",
2022-02-18 13:07:37 -05:00
"./src"
}
project "xsk-gsc-iw6c"
kind "StaticLib"
language "C++"
pchheader "stdafx.hpp"
pchsource "src/experimental/iw6c/stdafx.cpp"
files {
"./src/experimental/iw6c/**.h",
"./src/experimental/iw6c/**.hpp",
"./src/experimental/iw6c/**.cpp"
}
includedirs {
"./src/experimental/iw6c",
"./src"
}
project "xsk-gsc-s1c"
kind "StaticLib"
language "C++"
pchheader "stdafx.hpp"
pchsource "src/experimental/s1c/stdafx.cpp"
files {
"./src/experimental/s1c/**.h",
"./src/experimental/s1c/**.hpp",
"./src/experimental/s1c/**.cpp"
}
includedirs {
"./src/experimental/s1c",
"./src"
}
2020-05-21 07:32:38 -04:00
group "Dependencies"
zlib:project()