diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-05-28 11:45:22 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-05-28 11:45:22 +0100 |
commit | fdea7529ba09a615d92da5823429b49c7e565c9d (patch) | |
tree | 67b12689c60dc2e75a5587988dd11bf36c12da9a /thirdparty | |
parent | Mark main rule as always, so we can always launch it (diff) | |
parent | Swap GLEW for more modern glad (diff) | |
download | ilt-fdea7529ba09a615d92da5823429b49c7e565c9d.tar.bz2 ilt-fdea7529ba09a615d92da5823429b49c7e565c9d.tar.xz ilt-fdea7529ba09a615d92da5823429b49c7e565c9d.zip |
Merge branch 'glad'
Diffstat (limited to 'thirdparty')
-rw-r--r-- | thirdparty/Jamfile.jam | 7 | ||||
l--------- | thirdparty/gl.xml | 1 | ||||
m--------- | thirdparty/glad | 0 | ||||
-rw-r--r-- | thirdparty/glad.jam | 20 |
4 files changed, 28 insertions, 0 deletions
diff --git a/thirdparty/Jamfile.jam b/thirdparty/Jamfile.jam new file mode 100644 index 0000000..bee3392 --- /dev/null +++ b/thirdparty/Jamfile.jam @@ -0,0 +1,7 @@ +import glad ; +lib glad : gl.xml : + <link>static + <cflags>-fPIC + <warnings>off + <warnings-as-errors>off + ; diff --git a/thirdparty/gl.xml b/thirdparty/gl.xml new file mode 120000 index 0000000..bfea0d8 --- /dev/null +++ b/thirdparty/gl.xml @@ -0,0 +1 @@ +glad/glad/files/gl.xml
\ No newline at end of file diff --git a/thirdparty/glad b/thirdparty/glad new file mode 160000 +Subproject 2348b07c1ab4504d60398713781d8a57880234f diff --git a/thirdparty/glad.jam b/thirdparty/glad.jam new file mode 100644 index 0000000..f89750c --- /dev/null +++ b/thirdparty/glad.jam @@ -0,0 +1,20 @@ +import generators : register-standard ; +import feature : feature ; +import toolset : flags ; + +generators.register-standard glad.generate.c : XML : C(%) H(glad/%) XML ; +feature glad.pythonpath : thirdparty/glad : path ; +feature glad.profile : core compatibility ; +feature glad.version : 4.6 ; +flags glad.generate.c PYTHONPATH <glad.pythonpath> ; +flags glad.generate.c PROFILE <glad.profile> ; +flags glad.generate.c VERSION <glad.version> ; + +actions glad.generate.c +{ + rm -rf $(1:D) + PYTHONPATH=$(PYTHONPATH) python -m glad --api=$(2:B):$(PROFILE)=$(VERSION) --merge --out-path=$(1[3]:D) --reproducible --quiet c + mv $(1[3]:D)/src/$(1[1]:BS) $(1[1]) + mkdir -p $(1[2]:D) + mv $(1[3]:D)/include/glad/$(1[2]:BS) $(1[2]) +} |