stb_image Project
- stb_image is now built inside a project as a static library
This commit is contained in:
parent
42d58089d9
commit
2121e0ea16
7 changed files with 49 additions and 1 deletions
|
@ -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
44
Dependencies/stb_image/build.lua
vendored
Normal 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
1
Dependencies/stb_image/stb_image.cpp
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
#include "stb_image.h"
|
|
@ -56,6 +56,7 @@ project "Engine"
|
|||
"GLFW" ,
|
||||
"GLAD" ,
|
||||
"ImGui" ,
|
||||
"stb_image" ,
|
||||
}
|
||||
|
||||
--- Filters ---
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include "Graphics/Shader.h"
|
||||
#include "Graphics/Texture.h"
|
||||
|
||||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#include <stb_image.h>
|
||||
|
||||
namespace Light {
|
||||
|
|
|
@ -42,6 +42,7 @@ project "Mirror"
|
|||
"GLFW",
|
||||
"GLAD",
|
||||
"ImGui",
|
||||
"stb_image" ,
|
||||
}
|
||||
|
||||
--- Filters ---
|
||||
|
|
|
@ -42,6 +42,7 @@ project "Sandbox"
|
|||
"GLFW",
|
||||
"GLAD",
|
||||
"ImGui",
|
||||
"stb_image" ,
|
||||
}
|
||||
|
||||
--- Filters ---
|
||||
|
|
Loading…
Add table
Reference in a new issue