new build system config

This commit is contained in:
Sara 2023-11-20 12:04:55 +01:00
parent 96867d6e1b
commit 5ab93d62ad
50 changed files with 81 additions and 46 deletions

15
Build.lua Normal file
View file

@ -0,0 +1,15 @@
-- project "Fencer-Template" change this
architecture "x64"
configurations { "Debug", "Release", "Dist" }
startproject "Game"
filter "system:windows"
buildoptions { "/EHsc", "/Zc:preprocessor" }
OutputDir = "%{cfg.system}-%{cfg.architecture}/${cfg.buildcfg}"
group "Core"
include "core/Build-Core.lua"
group ""
include "game/Build-Game.lua"

32
core/Build-Core.lua Normal file
View file

@ -0,0 +1,32 @@
project "Fencer-Core"
kind "StaticLib"
language "C"
targetdir "bin/%{cfg.buildcfg}"
staticruntime "off"
files { "src/**.c" }
includedirs { "src/" }
targetdir ( "../bin" .. OutputDir .. "/%{prj.name}" )
objdir ( "../intermediate" .. OutputDir .. "/%{prj.name}" )
filter "system:windows"
systemversion "latest"
defines {}
filter "configurations:Debug"
defines { "DEBUG" }
runtime "Debug"
symbols "On"
filter "configurations:Release"
defines { "RELEASE" }
runtime "Release"
optimize "On"
symbols "On"
filter "configurations:Dist"
defines { "DIST" }
runtime "Release"
optimize "On"
symbols "Off"

View file

@ -1,26 +0,0 @@
# Mechanics
## Movement
Slow and considered.
The walking speed is slow, the running speed slightly less so.
Walkable parts of environments are relatively small.
## Combat
## Exploration
Resources are scattered throughout the environment.
It should be rewarding to stop and gather them.
## Upgrades
# Dynamics
## Careful Progress
The player should be careful and considered during second to second gameplay.

34
game/Build-Game.lua Normal file
View file

@ -0,0 +1,34 @@
project "Game"
kind "ConsoleApp"
language "C"
staticruntime "Off"
targetdir "bin/%{cfg.buildcfg}"
files { "src/*.c" }
includedirs {
"src/",
"../core/src"
}
links {
"Fencer-Core"
}
targetdir ("../bin" .. OutputDir .. "/%{prj.name}" )
objdir ("../intermediate" .. OutputDir .. "/%{prj.name}" )
filter "configurations:Debug"
defines { "DEBUG" }
runtime "Debug"
symbols "On"
filter "configurations:Release"
defines { "RELEASE" }
runtime "Release"
optimize "On"
symbols "On"
filter "configurations:Dist"
defines { "DIST" }
runtime "Release"
optimize "On"
symbols "Off"

View file

@ -1,20 +0,0 @@
workspace "fencer"
configurations { "Debug", "Release" }
location "."
project "fencer"
kind "WindowedApp"
language "C"
location "build/"
files { "src/**.c" }
links { "SDL2", "SDL2_image", "cjson", "m" }
buildoptions { "-Wall", "-DVMATH_SDL=1" }
targetdir "bin/"
filter "configurations:Debug"
defines { "DEBUG" }
buildoptions { "-g3" }
symbols "On"
filter "configurations:Release"
buildoptions { "-g0" }
defines { "NDEBUG" }
optimize "On"