Currently the build process parses the hxml file and generates arguments list for haxe compilation - this is verbose, doesn't scale well, and has subtle edge case issues (like --macro with quotes in them, see #28).
Is it possible to use the hxml file as is?
It doesn't seem to be possible because we need to replace the JS output target and only a single -js is allowed - maybe using a macro could work? A macro could dynamically replace the output file without touching the hxml
Otherwise we could generate a temporary hxml file
It should include the original hxml content with just the JS output replaced. Other added arguments should still be added to the build command.
Currently the build process parses the hxml file and generates arguments list for haxe compilation - this is verbose, doesn't scale well, and has subtle edge case issues (like
--macrowith quotes in them, see #28).Is it possible to use the hxml file as is?
It doesn't seem to be possible because we need to replace the JS output target and only a single
-jsis allowed - maybe using a macro could work? A macro could dynamically replace the output file without touching the hxmlOtherwise we could generate a temporary hxml file
It should include the original hxml content with just the JS output replaced. Other added arguments should still be added to the build command.