Modified preamke config of glm, glfw, bakara and sandbox to work on windows

dev
ambigipathyv ago%!(EXTRA string=2 years)
parent 6575bad7c1
commit b29d833262
  1. 21
      bakara/premake5.lua
  2. 31
      bakara/vendor/premake5.lua
  3. 8
      sandbox/premake5.lua

@ -1,21 +1,16 @@
project "bakara"
kind "SharedLib"
language "C++"
cppdialect "C++17"
staticruntime "off"
targetdir("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}")
objdir("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}")
files
{
"vendor/glm/glm/**.hpp",
"vendor/glm/glm/**.inl",
"src/**.h",
"src/**.cpp"
}
buildoptions
{
"-Wall",
"src/**.cpp",
}
includedirs
@ -28,7 +23,6 @@ project "bakara"
links
{
"glm",
"GLFW"
}
@ -52,6 +46,8 @@ project "bakara"
optimize "on"
filter "system:windows"
kind "StaticLib"
staticruntime "on"
defines
{
"BK_PLATFORM_WINDOWS"
@ -63,6 +59,13 @@ project "bakara"
}
filter "system:linux"
kind "SharedLib"
staticruntime "off"
files
{
"vendor/glm/glm/**.cpp"
}
defines
{
"BK_PLATFORM_LINUX"

@ -67,6 +67,7 @@ project "GLFW"
"%{prj.location}/src/win32_joystick.c",
"%{prj.location}/src/win32_monitor.c",
"%{prj.location}/src/win32_time.c",
"%{prj.location}/src/win32_module.c",
"%{prj.location}/src/win32_thread.c",
"%{prj.location}/src/win32_window.c",
"%{prj.location}/src/wgl_context.c",
@ -88,33 +89,3 @@ project "GLFW"
runtime "Release"
optimize "on"
project "glm"
location "./glm/glm"
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
{
"%{prj.location}/**.hpp",
"%{prj.location}/**.inl",
"%{prj.location}/**.cpp"
}
includedirs
{
"%{IncludeDirs.glm}"
}
filter "configurations:Debug"
runtime "Debug"
symbols "on"
filter "configurations:Release"
runtime "Release"
optimize "on"

@ -2,7 +2,6 @@ project "sandbox"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
staticruntime "off"
systemversion "latest"
targetdir("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}")
@ -13,11 +12,6 @@ project "sandbox"
"src/**.cpp"
}
buildoptions
{
"-Wall"
}
includedirs
{
"%{IncludeDirs.bakara}",
@ -51,12 +45,14 @@ filter "configurations:Release"
optimize "on"
filter "system:windows"
staticruntime "on"
defines
{
"BK_PLATFORM_WINDOWS"
}
filter "system:linux"
staticruntime "off"
defines
{
"BK_PLATFORM_LINUX"

Loading…
Cancel
Save