Get rid of build dir

Move license into specific files
This commit is contained in:
Jeffery Myers committed 2024-03-07 19:36:22 -08:00
1 parent 349253c484
commit c343df3b59
12 files changed
+169 -30

No files matched your search

+2
View File
@@ -4,3 +4,5 @@ _bin
.vs
/bin
/build
Makefile
obj
-16
View File
@@ -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.
+18
View File
@@ -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.
+17
View File
@@ -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"
+17 -1
View File
@@ -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*"
+19
View File
@@ -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();
+19
View File
@@ -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"
+17 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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