add option to use single external raylib
This commit is contained in:
@@ -86,7 +86,9 @@ function platform_defines()
|
|||||||
filter{}
|
filter{}
|
||||||
end
|
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'
|
workspaceName = 'MyGame'
|
||||||
baseName = path.getbasename(path.getdirectory(os.getcwd()));
|
baseName = path.getbasename(path.getdirectory(os.getcwd()));
|
||||||
@@ -103,6 +105,7 @@ if (os.isdir('external') == false) then
|
|||||||
os.mkdir('external')
|
os.mkdir('external')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
workspace (workspaceName)
|
workspace (workspaceName)
|
||||||
location "../"
|
location "../"
|
||||||
configurations { "Debug", "Release", "Debug_RGFW", "Release_RGFW"}
|
configurations { "Debug", "Release", "Debug_RGFW", "Release_RGFW"}
|
||||||
@@ -128,7 +131,9 @@ workspace (workspaceName)
|
|||||||
|
|
||||||
targetdir "bin/%{cfg.buildcfg}/"
|
targetdir "bin/%{cfg.buildcfg}/"
|
||||||
|
|
||||||
|
if (downloadRaylib) then
|
||||||
build_externals()
|
build_externals()
|
||||||
|
end
|
||||||
|
|
||||||
startproject(workspaceName)
|
startproject(workspaceName)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user