mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
Some checks are pending
Depend on SDL and wxWidgets doing the necessary work. Also remove WGL from glad. Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
18 lines
596 B
Bash
Executable file
18 lines
596 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
# In case glad is not installed system wide or not installed via pip assume glad
|
|
# repository was fetched into glad subdirectory.
|
|
export PYTHONPATH="glad"
|
|
|
|
python -m glad --api="gl:core=2.1" --extensions="extensions/gl.txt" --out-path="." c
|
|
python -m glad --api="gles2=2.0" --extensions="extensions/gles2.txt" --out-path="." c
|
|
python -m glad --api="vulkan=1.1" --extensions="extensions/vulkan.txt" --out-path="." c
|
|
|
|
patch -p1 --ignore-whitespace --fuzz 1 <fix_macos.patch
|
|
|
|
mv src/gl.c src/gl.cpp
|
|
mv src/gles2.c src/gles2.cpp
|
|
mv src/vulkan.c src/vulkan.cpp
|