stash
This commit is contained in:
19
generate.sh
19
generate.sh
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user