lehitoskin/ivy

FLIF Support

Closed this issue · 3 comments

I would like to add FLIF support to Ivy, but a problem I foresee is troubles with packaging the binary. It'd be simple enough to add FLIF to the Windows binary, but I'm not certain how I should proceed with Linux/OS X. As I understand it, OS X's .app files work as a special kind of file/directory hybrid so it's plausible I could add the FLIF library to that, but I'm not certain where. @IonoclastBrigham Could you weigh in on this?

There is a Homebrew available that has a(n outdated) FLIF recipe we could investigate to help automate the build process a little.

Yeah, OS X .apps are actually just a specific directory structure with certain files in known places. If you look at the makefile, it's manually copying the icon files into the app tree (didn't we have an issue filed to change that because raco will do it for us or something..?).

You can embed shared libs and .frameworks (another special directory structure which wraps up a shared lib and C header files) into the app package. I'm not 100% sure how you'd do it if you're linking to it via racket FFI, but I suspect you'd just need to drop it in a certain directory and make sure the racket code uses the correct path prefix.

I gotcha. That makes things a little easier. As for the icns, there's this hint:

~> raco help exe
...
 --icns <.icns-file> : Set Mac OS icon for executable
...

I think we still need to create the icns file, but this flag should set it as the icon.

Resolved quite some time ago. Don't know why I didn't close this earlier.