Conditional compilation based on -lib

20 views
Skip to first unread message

Michel

unread,
Oct 15, 2014, 3:42:01 PM10/15/14
to haxe...@googlegroups.com
Hi all

Is it possible to do conditional compilation based on which libraries are included using -lib?

Like:

#if bindx
...
#end

I know it could be done using -D LIB_BINDX (for example), but was wondering if there is a way to get them directly from -lib.

Thanks

Franco Ponticelli

unread,
Oct 15, 2014, 4:22:32 PM10/15/14
to haxe...@googlegroups.com
-lib should autodefine their own -D ... so lib "somelib" will automagically define -D somelib.

You can add additional ones in extraParams.hxml in the lib itself.

--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages