From 48ad4eb60becb53b3010103924ded0bc1cb0d750 Mon Sep 17 00:00:00 2001 From: ambigipathyv Date: Mon, 18 Mar 2024 14:13:42 +0100 Subject: [PATCH] Modified config --- .gitmodules | 3 +++ bakanet/premake5.lua | 21 ++++++++++++++++++++- premake5.lua | 9 +++++---- sandbox/premake5.lua | 3 ++- 4 files changed, 30 insertions(+), 6 deletions(-) diff --git a/.gitmodules b/.gitmodules index 8088b92..b4d53b5 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "vendor/bakatools"] path = vendor/bakatools url = https://github.com/anulax1225/bakatools +[submodule "vendor/spdlog"] + path = vendor/spdlog + url = https://github.com/gabime/spdlog diff --git a/bakanet/premake5.lua b/bakanet/premake5.lua index 685cbcc..d6a55d0 100755 --- a/bakanet/premake5.lua +++ b/bakanet/premake5.lua @@ -9,6 +9,7 @@ project "bakanet" includedirs { + "%{IncludeDirs.spdlog}", "%{IncludeDirs.bakanet}", "%{IncludeDirs.bakatools}" } @@ -17,7 +18,6 @@ project "bakanet" { "%{prj.location}/src/bakanet/**.h", "%{prj.location}/src/bakanet/**.cpp", - "%{prj.location}/src/bakanet.h", "%{prj.location}/src/baknetpch.h", } @@ -54,3 +54,22 @@ project "bakanet" "%{prj.location}/src/platform/linux/**.h", "%{prj.location}/src/platform/linux/**.cpp", } + + filter "configurations:Debug" + defines + { + "BK_DEBUG", + "DEBUG" + } + runtime "Debug" + symbols "on" + + + filter "configurations:Release" + defines + { + "BK_RELEASE", + "NDEBUG" + } + runtime "Release" + optimize "on" \ No newline at end of file diff --git a/premake5.lua b/premake5.lua index 1719cf8..2740937 100755 --- a/premake5.lua +++ b/premake5.lua @@ -12,15 +12,16 @@ outputdir = "%{cfg.system}-%{cfg.architecture}-%{cfg.buildcfg}" IncludeDirs = {} IncludeDirs["bakanet"] = "%{wks.location}/bakanet/src/" IncludeDirs["bakatools"] = "%{wks.location}/vendor/bakatools/src/" - -group "NetCore" - include "bakanet" -group "" +IncludeDirs["spdlog"] = "%{wks.location}/vendor/spdlog/include" group "BakaModules" include "vendor/bakatools" group "" +group "NetCore" + include "bakanet" +group "" + group "Sandbox" include "sandbox" group "" \ No newline at end of file diff --git a/sandbox/premake5.lua b/sandbox/premake5.lua index 9d87fbc..e90bbf2 100755 --- a/sandbox/premake5.lua +++ b/sandbox/premake5.lua @@ -10,14 +10,15 @@ project "server" includedirs { + "%{IncludeDirs.spdlog}", "%{IncludeDirs.bakanet}", + "%{IncludeDirs.bakatools}" } files { "%{prj.location}/**.h", "%{prj.location}/**.cpp", - "./commun.h" } links