diff --git a/bakara/premake5.lua b/bakara/premake5.lua new file mode 100644 index 0000000..8e5ec87 --- /dev/null +++ b/bakara/premake5.lua @@ -0,0 +1,25 @@ +project "bakara" + kind "StaticLib" + language "C++" + cppdialect "C++17" + staticruntime "off" + + targetdir("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}") + objdir("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}") + + files + { + "src/**.h", + "src/**.cpp" + } + + includedirs + { + "src", + "vendor" + } + + links + { + "glm" + } \ No newline at end of file diff --git a/premake5.lua b/premake5.lua index c73e076..c74e330 100644 --- a/premake5.lua +++ b/premake5.lua @@ -1,50 +1,22 @@ workspace "Bakara" architecture "x64" configurations { "Debug", "Release" } - startproject "Sandbox" + startproject "sandbox" outputdir = "%{cfg.system}-%{cfg.architecture}-%{cfg.buildcfg}" -project "Bakara" - location "bakara" - kind "StaticLib" - language "C++" - - targetdir("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}") - objdir("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}") - - files - { - "%{prj.location}/src/**.hpp", - "%{prj.location}/src/**.cpp", - } - -project "Sandbox" - location "sandbox" - kind "ConsoleApp" - language "C++" - cppdialect "C++17" - staticruntime "on" - systemversion "latest" - - targetdir("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}") - objdir("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}") - - files - { - "%{prj.location}/src/**.hpp", - "%{prj.location}/src/**.cpp", - } - - includedirs - { - "%{wks.location}/bakara/src", - } - - links - { - "Bakara" - } +group "Dependencies" + include "bakara/vendor" +group "" + +group "Core" + include "bakara" +group "" + +group "App" + include "sandbox" +group "" + diff --git a/sandbox/premake5.lua b/sandbox/premake5.lua new file mode 100644 index 0000000..d65dbc0 --- /dev/null +++ b/sandbox/premake5.lua @@ -0,0 +1,26 @@ +project "sandbox" + kind "ConsoleApp" + language "C++" + cppdialect "C++17" + staticruntime "off" + systemversion "latest" + + targetdir("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}") + objdir("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}") + + files + { + "src/**.h", + "src/**.cpp" + } + + includedirs + { + "%{wks.location}/bakara/vendor", + "%{wks.location}/bakara/src" + } + + links + { + "bakara" + }