diff --git a/build/premake5.lua b/build/premake5.lua index 3ca1e01..49c23b5 100644 --- a/build/premake5.lua +++ b/build/premake5.lua @@ -86,7 +86,9 @@ function platform_defines() filter{} end - raylib_dir = "external/raylib-master" +-- if you don't want to download raylib, then set this to false, and set the raylib dir to where you want raylib to be pulled from, must be full sources. +downloadRaylib = true +raylib_dir = "external/raylib-master" workspaceName = 'MyGame' baseName = path.getbasename(path.getdirectory(os.getcwd())); @@ -103,6 +105,7 @@ if (os.isdir('external') == false) then os.mkdir('external') end + workspace (workspaceName) location "../" configurations { "Debug", "Release", "Debug_RGFW", "Release_RGFW"} @@ -128,7 +131,9 @@ workspace (workspaceName) targetdir "bin/%{cfg.buildcfg}/" +if (downloadRaylib) then build_externals() + end startproject(workspaceName)