tazdij / raylib-pas

A complete header translation (binding) of the raylib 2.6.0-dev to Pascal. Without any funky helper functions for memory alignment issues. Inspired and partially based on the drezgames/raylib-pascal binding, however a little cleaner and more recent, with FPC 3.0.4 support.
28 stars 5 forks source link

make now mimic raylib with RAYLIB_LIBTYPE=STATIC option for build.*.sh… #8

Closed ludoza closed 4 years ago

ludoza commented 4 years ago

…. also moved src/animation_test.pas to models example

make RAYLIB_LIBTYPE=STATIC

Now works on ubuntu and macos.

Also moved src/animation_test.pas.

TODO please update build.bat I don't have access to a windows platform atm.

Btw models_animation.pas gives me AV on 2.6-dev... and the other examples still need some <3

ludoza commented 4 years ago

I got a windows vm up and changed build.bat to build all the examples.

Will add the SHARED parameter for it next and maybe a DEBUG flag as well because I see you used it.

ludoza commented 4 years ago

ok build.*sh also now takes --debug to tell fpc to add -g -o1 when we compile examples.

So make support the following two arguments:

make RAYLIB_LIBTYPE=STATIC DEBUG=TRUE

If your happy with these changes please merge!

Have a great week!

tazdij commented 4 years ago

Interesting. I will need to spin up a linux computer and see if I can figure out the AV issue.

Again thanks for the help.