zacharycarter / nuklear-nim

Nim bindings for https://github.com/vurtun/nuklear/
118 stars 10 forks source link

some compatibility stuff #1

Closed krux02 closed 7 years ago

krux02 commented 7 years ago

with these changes I could compile the project on my linux machine. When it doesn't work on your machine, can you tell me what the problem is on OSX then?

krux02 commented 7 years ago

basically this is:

# remove dynlib pragma
sed 's/,\W*dynlib: libnuklear//g' nuklearpp.nim
# remove bgfx dependencey
sed 's/0x000000//g' roboto_regular.nim
sed 's/uint8_t/uint8/g' roboto_regular.nim
sed 's/import .*//' roboto_regular.nim

Warning that is untested pseudo code, I just tried to replicate what I did in the editor.

And I added the compile pragma and moved the .c and .h file to the folder where also the wrapper is defined.