Remove stb from thirdparty and use xmake instead
This commit is contained in:
parent
b657cde5b5
commit
9d1c821a16
|
|
@ -3,13 +3,14 @@
|
||||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||||
|
|
||||||
#include <Nazara/Utility/Formats/STBLoader.hpp>
|
#include <Nazara/Utility/Formats/STBLoader.hpp>
|
||||||
#include <stb/stb_image.h>
|
|
||||||
#include <Nazara/Core/CallOnExit.hpp>
|
#include <Nazara/Core/CallOnExit.hpp>
|
||||||
#include <Nazara/Core/Endianness.hpp>
|
#include <Nazara/Core/Endianness.hpp>
|
||||||
#include <Nazara/Core/Error.hpp>
|
#include <Nazara/Core/Error.hpp>
|
||||||
#include <Nazara/Core/Stream.hpp>
|
#include <Nazara/Core/Stream.hpp>
|
||||||
#include <Nazara/Utility/Image.hpp>
|
#include <Nazara/Utility/Image.hpp>
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
|
#define STB_IMAGE_IMPLEMENTATION
|
||||||
|
#include <stb_image.h>
|
||||||
#include <Nazara/Utility/Debug.hpp>
|
#include <Nazara/Utility/Debug.hpp>
|
||||||
|
|
||||||
namespace Nz
|
namespace Nz
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,13 @@
|
||||||
// This file is part of the "Nazara Engine - Utility module"
|
// This file is part of the "Nazara Engine - Utility module"
|
||||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||||
|
|
||||||
#include <stb/stb_image_write.h>
|
#include <Nazara/Utility/Formats/STBLoader.hpp>
|
||||||
#include <Nazara/Utility/Image.hpp>
|
#include <Nazara/Utility/Image.hpp>
|
||||||
#include <Nazara/Utility/PixelFormat.hpp>
|
#include <Nazara/Utility/PixelFormat.hpp>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
#define STB_IMAGE_WRITE_IMPLEMENTATION
|
||||||
|
#include <stb_image_write.h>
|
||||||
#include <Nazara/Utility/Debug.hpp>
|
#include <Nazara/Utility/Debug.hpp>
|
||||||
|
|
||||||
namespace Nz
|
namespace Nz
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -1,2 +0,0 @@
|
||||||
#define STB_IMAGE_IMPLEMENTATION
|
|
||||||
#include <stb/stb_image.h>
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
#define STB_IMAGE_WRITE_IMPLEMENTATION
|
|
||||||
#include <stb/stb_image_write.h>
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
target("stb_image")
|
|
||||||
set_kind("static")
|
|
||||||
set_group("Thirdparties")
|
|
||||||
add_files("src/stb/*.cpp")
|
|
||||||
|
|
@ -64,8 +64,8 @@ local modules = {
|
||||||
Deps = {"NazaraUtility"}
|
Deps = {"NazaraUtility"}
|
||||||
},
|
},
|
||||||
Utility = {
|
Utility = {
|
||||||
Deps = {"stb_image", "NazaraCore"},
|
Deps = {"NazaraCore"},
|
||||||
Packages = {"freetype"}
|
Packages = {"freetype", "stb"}
|
||||||
},
|
},
|
||||||
VulkanRenderer = {
|
VulkanRenderer = {
|
||||||
Deps = {"NazaraRenderer"},
|
Deps = {"NazaraRenderer"},
|
||||||
|
|
@ -86,7 +86,7 @@ local modules = {
|
||||||
|
|
||||||
add_repositories("local-repo xmake-repo")
|
add_repositories("local-repo xmake-repo")
|
||||||
|
|
||||||
add_requires("chipmunk2d", "freetype", "libsndfile", "libsdl")
|
add_requires("chipmunk2d", "freetype", "libsndfile", "libsdl", "stb")
|
||||||
add_requires("newtondynamics", { debug = is_plat("windows") and is_mode("debug") }) -- Newton doesn't like compiling in Debug on Linux
|
add_requires("newtondynamics", { debug = is_plat("windows") and is_mode("debug") }) -- Newton doesn't like compiling in Debug on Linux
|
||||||
|
|
||||||
set_project("NazaraEngine")
|
set_project("NazaraEngine")
|
||||||
|
|
@ -123,8 +123,6 @@ if is_plat("windows") then
|
||||||
add_cxflags("/wd4251") -- Disable warning: class needs to have dll-interface to be used by clients of class blah blah blah
|
add_cxflags("/wd4251") -- Disable warning: class needs to have dll-interface to be used by clients of class blah blah blah
|
||||||
end
|
end
|
||||||
|
|
||||||
includes("thirdparty/xmake.lua")
|
|
||||||
|
|
||||||
for name, module in pairs(modules) do
|
for name, module in pairs(modules) do
|
||||||
target("Nazara" .. name)
|
target("Nazara" .. name)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue