This commit is contained in:
andromeda
2026-01-27 09:32:23 +01:00
parent 4858c3ee2e
commit f17acc45e0
4 changed files with 28 additions and 8 deletions

View File

@@ -1,11 +1,22 @@
echo "#"
echo "# generating library RGFW.Generated in folder lib"
echo "#"
echo "# copying header..."
mkdir lib
mkdir lib/include
cp rgfw/RGFW.h lib/include/RGFW.h
echo "# creating c file to generate from..."
clang -E -DRGFW_IMPLEMENTATION -DRGFW_OPENGL lib/include/RGFW.h -o lib/include/RGFW.c
echo "# generating library RGFW.Generated..."
hs-bindgen-cli preprocess \
-Irgfw \
-Ilib/include \
--create-output-dirs \
--overwrite-files \
--hs-output-dir lib \
--module RGFW.Generated \
--clang-option=-DRGFW_OPENGL \
--clang-option=-DRGFW_EXPORT \
RGFW.h