From 94f3528c2248c3f9f6bbff26901294b64c4bba44 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 25 Jun 2024 21:56:36 +0100 Subject: Build stb_image impl as a thirdparty lib --- Jamroot.jam | 1 + gfx/models/stb_image.impl.c | 2 -- thirdparty/Jamfile.jam | 6 ++++++ thirdparty/stb_image.c | 2 ++ 4 files changed, 9 insertions(+), 2 deletions(-) delete mode 100644 gfx/models/stb_image.impl.c create mode 100644 thirdparty/stb_image.c diff --git a/Jamroot.jam b/Jamroot.jam index 967021d..185571b 100644 --- a/Jamroot.jam +++ b/Jamroot.jam @@ -90,6 +90,7 @@ lib ilt : gcc,debug:-Wuseless-cast . lib + thirdparty//stb thirdparty//glad thirdparty//glad sdl2 diff --git a/gfx/models/stb_image.impl.c b/gfx/models/stb_image.impl.c deleted file mode 100644 index 38c72e9..0000000 --- a/gfx/models/stb_image.impl.c +++ /dev/null @@ -1,2 +0,0 @@ -#define STB_IMAGE_IMPLEMENTATION -#include "stb/stb_image.h" diff --git a/thirdparty/Jamfile.jam b/thirdparty/Jamfile.jam index 417ef9c..8b76449 100644 --- a/thirdparty/Jamfile.jam +++ b/thirdparty/Jamfile.jam @@ -6,3 +6,9 @@ lib glad : gl.xml : off 3.3 ; +lib stb : stb_image.c : + static + -fPIC + off + off + ; diff --git a/thirdparty/stb_image.c b/thirdparty/stb_image.c new file mode 100644 index 0000000..38c72e9 --- /dev/null +++ b/thirdparty/stb_image.c @@ -0,0 +1,2 @@ +#define STB_IMAGE_IMPLEMENTATION +#include "stb/stb_image.h" -- cgit v1.2.3