stb_image Project

- stb_image is now built inside a project as a static library
This commit is contained in:
Light 2021-07-23 15:03:47 +04:30
parent 42d58089d9
commit 2121e0ea16
7 changed files with 49 additions and 1 deletions

View file

@ -25,3 +25,4 @@ group "Dependencies"
include "../Dependencies/GLFW/build.lua"
include "../Dependencies/GLAD/build.lua"
include "../Dependencies/imgui/build.lua"
include "../Dependencies/stb_image/build.lua"

44
Dependencies/stb_image/build.lua vendored Normal file
View file

@ -0,0 +1,44 @@
project "stb_image"
location "%{wks.location}/Dependencies/stb_image"
-- Output Directories --
targetdir ("%{wks.location}/bin/" .. outputdir)
objdir ("%{wks.location}/bin-int/" .. outputdir)
-- Compiler --
kind "StaticLib"
language "C"
runtime "Release"
optimize "on"
defines "STB_IMAGE_IMPLEMENTATION"
-- Project Files ---
files
{
"**.c",
"**.h",
"build.lua"
}
-- Dependencies --
includedirs
{
"%{prj.location}/include/"
}
--- Filters ---
-- windows
filter "system:windows"
systemversion "latest"
staticruntime "On"
defines
{
"_CRT_SECURE_NO_WARNINGS",
}
flags { "MultiProcessorCompile" }

1
Dependencies/stb_image/stb_image.cpp vendored Normal file
View file

@ -0,0 +1 @@
#include "stb_image.h"

View file

@ -56,6 +56,7 @@ project "Engine"
"GLFW" ,
"GLAD" ,
"ImGui" ,
"stb_image" ,
}
--- Filters ---

View file

@ -5,7 +5,6 @@
#include "Graphics/Shader.h"
#include "Graphics/Texture.h"
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
namespace Light {

View file

@ -42,6 +42,7 @@ project "Mirror"
"GLFW",
"GLAD",
"ImGui",
"stb_image" ,
}
--- Filters ---

View file

@ -42,6 +42,7 @@ project "Sandbox"
"GLFW",
"GLAD",
"ImGui",
"stb_image" ,
}
--- Filters ---