diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-06-25 21:56:36 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-06-25 21:56:36 +0100 |
commit | 94f3528c2248c3f9f6bbff26901294b64c4bba44 (patch) | |
tree | 80905ce4e9e4a5d1d21565a33908fad364d79e38 | |
parent | Un-const to allow move, no nvro here (diff) | |
download | ilt-94f3528c2248c3f9f6bbff26901294b64c4bba44.tar.bz2 ilt-94f3528c2248c3f9f6bbff26901294b64c4bba44.tar.xz ilt-94f3528c2248c3f9f6bbff26901294b64c4bba44.zip |
Build stb_image impl as a thirdparty lib
-rw-r--r-- | Jamroot.jam | 1 | ||||
-rw-r--r-- | thirdparty/Jamfile.jam | 6 | ||||
-rw-r--r-- | thirdparty/stb_image.c (renamed from gfx/models/stb_image.impl.c) | 0 |
3 files changed, 7 insertions, 0 deletions
diff --git a/Jamroot.jam b/Jamroot.jam index 967021d..185571b 100644 --- a/Jamroot.jam +++ b/Jamroot.jam @@ -90,6 +90,7 @@ lib ilt : <toolset>gcc,<variant>debug:<cflags>-Wuseless-cast <include>. <include>lib + <library>thirdparty//stb <library>thirdparty//glad <implicit-dependency>thirdparty//glad <library>sdl2 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 : <warnings-as-errors>off <glad.version>3.3 ; +lib stb : stb_image.c : + <link>static + <cflags>-fPIC + <warnings>off + <warnings-as-errors>off + ; diff --git a/gfx/models/stb_image.impl.c b/thirdparty/stb_image.c index 38c72e9..38c72e9 100644 --- a/gfx/models/stb_image.impl.c +++ b/thirdparty/stb_image.c |