clemos / haxe-sublime-bundle

Sublime Text bundle for Haxe programming language
Apache License 2.0
237 stars 86 forks source link

Adding defines to build #185

Closed RudolfVonKrugstein closed 9 years ago

RudolfVonKrugstein commented 9 years ago

My haxe (lime/openfl) project has some conditional compiling depending on defines I provide by hand (-DFAST_TESTS). Can I somehow tell the build system to run lime with these defines enabled?

JeriXNet commented 9 years ago

If you use hxml maybe you should add space like this: -D FAST_TESTS

clemos commented 9 years ago

I'm not quite enough into lime, but I bet you can define these flags somewhere in the lime build file (xml ?)

JeriXNet commented 9 years ago

sorry for confusing about this, now I remember that with lime/openfl someone should use xml or hxp project files and hxml is just regenerated every build

RudolfVonKrugstein commented 9 years ago

I believe I can define that in the project.xml file, but actually I want different builds. One with "-D FAST_TESTS" enabled and one with it disabled. Is that possible or do I have to edit my project.xml every time?

clemos commented 9 years ago

You can use several project.xml

RudolfVonKrugstein commented 9 years ago

Well, that it is simple enough.