mirror of
https://github.com/chemistry-software/game-premake.git
synced 2026-11-07 09:07:36 +00:00
Get rid of build dir
Move license into specific files
This commit is contained in:
1 parent
349253c484
commit
c343df3b59
12 files changed
+169
-30
No files matched your search
@@ -4,3 +4,5 @@ _bin
|
||||
.vs
|
||||
/bin
|
||||
/build
|
||||
Makefile
|
||||
obj
|
||||
@@ -1,16 +0,0 @@
|
||||
Copyright (c) 2020-2021 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.
|
||||
@@ -109,3 +109,21 @@ link_to("LIB_FOLDER_NAME")
|
||||
|
||||
Rerun premake and it will build your library for you.
|
||||
Note that by default link_to will add include dirs for your library folder and library/include. If you have other include needs you will have to add those to your premake file manually.
|
||||
|
||||
#License
|
||||
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.
|
||||
@@ -5,6 +5,23 @@ Use this as a starting point or replace it with your code.
|
||||
|
||||
For a C++ project simply rename the file to .cpp and run premake
|
||||
|
||||
-- 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.
|
||||
|
||||
*/
|
||||
|
||||
#include "raylib.h"
|
||||
|
||||
@@ -1,9 +1,25 @@
|
||||
-- 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.
|
||||
|
||||
baseName = path.getbasename(os.getcwd());
|
||||
|
||||
project (baseName)
|
||||
kind "ConsoleApp"
|
||||
location "../build"
|
||||
location "./"
|
||||
targetdir "../bin/%{cfg.buildcfg}"
|
||||
|
||||
filter "action:vs*"
|
||||
|
||||
@@ -1,4 +1,23 @@
|
||||
// C library
|
||||
/*
|
||||
-- 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.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
void LibFunction();
|
||||
@@ -1,4 +1,23 @@
|
||||
// C library
|
||||
/*
|
||||
-- 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.
|
||||
|
||||
*/
|
||||
|
||||
#include "lib.h"
|
||||
|
||||
|
||||
@@ -1,9 +1,25 @@
|
||||
-- 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.
|
||||
|
||||
baseName = path.getbasename(os.getcwd());
|
||||
|
||||
project (baseName)
|
||||
kind "StaticLib"
|
||||
location "../build"
|
||||
location "./"
|
||||
targetdir "../bin/%{cfg.buildcfg}"
|
||||
|
||||
vpaths
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
Copyright (c) 2021-2022 Ramon Santamaria (@raysan5)
|
||||
Copyright (c) 2021-2024 Ramon Santamaria (@raysan5)
|
||||
|
||||
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.
|
||||
|
||||
+17
-1
@@ -1,9 +1,25 @@
|
||||
-- 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.
|
||||
|
||||
baseName = path.getbasename(os.getcwd());
|
||||
|
||||
project (workspaceName)
|
||||
kind "ConsoleApp"
|
||||
location "../build"
|
||||
location "./"
|
||||
targetdir "../bin/%{cfg.buildcfg}"
|
||||
|
||||
filter "configurations:Release"
|
||||
|
||||
+22
-6
@@ -1,3 +1,19 @@
|
||||
-- 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.
|
||||
|
||||
newoption
|
||||
{
|
||||
@@ -56,8 +72,8 @@ end
|
||||
workspace (workspaceName)
|
||||
configurations { "Debug", "Release"}
|
||||
platforms { "x64", "x86", "ARM64"}
|
||||
|
||||
defaultplatform ("x64")
|
||||
|
||||
defaultplatform ("x64")
|
||||
|
||||
filter "configurations:Debug"
|
||||
defines { "DEBUG" }
|
||||
@@ -69,8 +85,8 @@ workspace (workspaceName)
|
||||
|
||||
filter { "platforms:x64" }
|
||||
architecture "x86_64"
|
||||
|
||||
filter { "platforms:Arm64" }
|
||||
|
||||
filter { "platforms:Arm64" }
|
||||
architecture "ARM64"
|
||||
|
||||
filter {}
|
||||
@@ -81,8 +97,8 @@ workspace (workspaceName)
|
||||
startproject(workspaceName)
|
||||
end
|
||||
|
||||
cdialect "C99"
|
||||
cppdialect "C++17"
|
||||
cdialect "C99"
|
||||
cppdialect "C++17"
|
||||
check_raylib();
|
||||
|
||||
include ("raylib_premake5.lua")
|
||||
|
||||
+20
-4
@@ -1,3 +1,19 @@
|
||||
-- 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.
|
||||
|
||||
function platform_defines()
|
||||
defines{"PLATFORM_DESKTOP"}
|
||||
@@ -59,11 +75,11 @@ function link_raylib()
|
||||
|
||||
filter "system:windows"
|
||||
defines{"_WIN32"}
|
||||
links {"winmm", "kernel32", "opengl32", "gdi32"}
|
||||
links {"winmm", "kernel32", "gdi32"}
|
||||
libdirs {"../bin/%{cfg.buildcfg}"}
|
||||
|
||||
filter "system:linux"
|
||||
links {"pthread", "GL", "m", "dl", "rt", "X11"}
|
||||
links {"pthread", "m", "dl", "rt", "X11"}
|
||||
|
||||
filter "system:macosx"
|
||||
links {"OpenGL.framework", "Cocoa.framework", "IOKit.framework", "CoreFoundation.framework", "CoreAudio.framework", "CoreVideo.framework", "AudioToolbox.framework"}
|
||||
@@ -86,10 +102,11 @@ end
|
||||
|
||||
project "raylib"
|
||||
kind "StaticLib"
|
||||
raylib_dir = get_raylib_dir();
|
||||
|
||||
platform_defines()
|
||||
|
||||
location "build"
|
||||
location (raylib_dir)
|
||||
language "C"
|
||||
targetdir "bin/%{cfg.buildcfg}"
|
||||
|
||||
@@ -99,7 +116,6 @@ project "raylib"
|
||||
buildoptions { "/Zc:__cplusplus" }
|
||||
filter{}
|
||||
|
||||
raylib_dir = get_raylib_dir();
|
||||
print ("Using raylib dir " .. raylib_dir);
|
||||
includedirs {raylib_dir .. "/src", raylib_dir .. "/src/external/glfw/include" }
|
||||
vpaths
|
||||
|
||||
Reference in new issue
Block a user