Haxe: Multiple build targets for same module

I am working with the Haxe plugin for IDEA. The goal of Haxe is to have one code base, and multiple targets (Flash, iOS, Android, HTML5). Here's the problem I'm having:

The project is set up, and the module defines the source folder, and also the "target". So I need to specify which target (Flash, HTML5, etc) at the module level.

The thing is, I need an easy way to build for differnet targets from the same module or source. Ideally, this would be a differnet build configuration, but those are tied to modules. I can't set up a different module for each target because they share the same source, and content root. See where I'm going with this?

Right now, to build for different targets, I have to manually change the target in the module definition. Is there a better way to do it?

1 comment

Hi David,

Unfortunetly there is no other way to configure a target at the moment.

Please vote for http://youtrack.jetbrains.com/issue/HAXE-116.

0

Please sign in to leave a comment.