new build system config
This commit is contained in:
parent
96867d6e1b
commit
5ab93d62ad
15
Build.lua
Normal file
15
Build.lua
Normal 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
32
core/Build-Core.lua
Normal 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"
|
|
@ -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
34
game/Build-Game.lua
Normal 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"
|
20
premake5.lua
20
premake5.lua
|
@ -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"
|
Loading…
Reference in a new issue