automatically copy/link dylib's when compiling for mac via lime?

14 views
Skip to first unread message

Chase de Languillette

unread,
Jul 10, 2014, 1:12:54 PM7/10/14
to haxef...@googlegroups.com
Hey all,

I recently did some work adding some mac support to the HaxeNet repo (https://github.com/Ohmnivore/HaxeNet) - it's some haxe bindings for enet, a c-based library.

My implementation is pretty cludgey right now - you have to to compile the enet .dylib that the haxe code will talk to, then manually copy the dylib into the .app file that Lime builds when running 'lime test mac'

I'm wondering if there's some way to automate the latter half of this process, but I'm a bit unfamiliar with the the lime compile process.  Basically, I just want the dylib to automatically be copied into the .app - is it just a matter of dumping the dylib somewhere? or adding a line to project.xml or something?

I tried putting the dylib in assets/data, but that gets put into myapp.app/Contents/Resources/assets/data.  It seems like the dylib needs to go into myapp.app/Contents/MacOS in order for it to be referenced correctly, so how can I get there automagically?

Thanks!
Reply all
Reply to author
Forward
0 new messages