Can I add -swf-lib or -swf-lib-extern from a macro?

10 views
Skip to first unread message

杨博

unread,
Feb 20, 2013, 9:47:24 PM2/20/13
to haxe...@googlegroups.com
I have a SWF library. I want to use a flag to determinate if load them at runtime:

haxe -D load_foo_at_runtime --macro SwfLib.fooLibrary(foo.swf)

I want SwfLib.fooLibrary checks load_foo_at_runtime and add -swf-lib or -swf-lib-extern to compiler. How can I implement such a macro?
Reply all
Reply to author
Forward
0 new messages