From 59addb2272f89f4093d54f441f46abb3e2cf6354 Mon Sep 17 00:00:00 2001 From: Jeffery Myers Date: Wed, 18 Dec 2024 08:08:43 -0800 Subject: [PATCH 1/2] 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) From 9279259870dd3f9631b1b187f61a89e1b42d95b7 Mon Sep 17 00:00:00 2001 From: Jeff Myers Date: Thu, 26 Dec 2024 13:40:47 -0800 Subject: [PATCH 2/2] change to cc0 --- src/main.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/main.c b/src/main.c index bf47274..aa18f0f 100644 --- a/src/main.c +++ b/src/main.c @@ -3,24 +3,7 @@ Raylib example file. This is an example main file for a simple raylib project. Use this as a starting point or replace it with your code. -For a C++ project simply rename the file to .cpp and re-run the build script - --- Copyright (c) 2020-2024 Jeffery Myers --- ---This software is provided "as-is", without any express or implied warranty. In no event ---will the authors be held liable for any damages arising from the use of this software. - ---Permission is granted to anyone to use this software for any purpose, including commercial ---applications, and to alter it and redistribute it freely, subject to the following restrictions: - --- 1. The origin of this software must not be misrepresented; you must not claim that you --- wrote the original software. If you use this software in a product, an acknowledgment --- in the product documentation would be appreciated but is not required. --- --- 2. Altered source versions must be plainly marked as such, and must not be misrepresented --- as being the original software. --- --- 3. This notice may not be removed or altered from any source distribution. +by Jeffery Myers is marked with CC0 1.0. To view a copy of this license, visit https://creativecommons.org/publicdomain/zero/1.0/ */