From 59addb2272f89f4093d54f441f46abb3e2cf6354 Mon Sep 17 00:00:00 2001 From: Jeffery Myers Date: Wed, 18 Dec 2024 08:08:43 -0800 Subject: [PATCH] add option to use single external raylib --- build/premake5.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)