Questions tagged [hxml]

An hxml file is a build file that enumerates options to pass to the Haxe compiler.

In a Haxe software project, an hxml file describes a set of options that are passed to the Haxe compiler. Basic usage and format are described in the Haxe compiler documentation.

Typically a Haxe build is invoked by passing the hxml file to the compiler:

haxe build.hxml
6 questions
10
votes
3 answers

Where's the HXML docs?

I've looked all over the Haxe Flash Command-line compiler website but was unable to find any detailed documentation of the HXML files (scroll down to the "Changing SWF properties" section) which describe the compile. Anybody know of a reference…
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
3
votes
1 answer

Do Haxe .hxml build configs support variables?

My Haxe build has several targets and I have to manually c/p changes to each target. Can .hxml files handle variables?
Indolering
  • 3,058
  • 30
  • 45
1
vote
1 answer

How do I restore "compile" when double clicking my hxml files?

I have opened an hxml file with notepad, keeping "always use this app..." checked by accident. Cannot run hxml files anymore. I have tried reinstalling haxe and opening the file with haxe.exe and haxelib.exe as found in the haxe folder in…
Dominic Grenier
  • 337
  • 1
  • 4
  • 14
1
vote
1 answer

In Haxe hxml file, how to target main class not in the root package

I'm trying to compile a project where the main entry point isn't in the root package (which virtually all examples use, e.g. -main Main), but I keep getting this error message: Error: Invalid commandline class : rtp.qt.QTPrinter should be…
Jeff Ward
  • 16,563
  • 6
  • 48
  • 57
1
vote
1 answer

How to configure haxe build file (HXML) to build from src directory?

I'm trying to build a pre-existing HaxePunk project in sublime (switching away from FlashDevelop). problem: Error: Could not process argument Here's my .hxml file: -neko -cp "c:/path/to/project/src" -main Main I've read somewhere that you shouldn't…
FlavorScape
  • 13,301
  • 12
  • 75
  • 117
1
vote
2 answers

Compile to multiple languages with a single .hxml file in Haxe

Here's the basic Haxe "Hello World!" program: class Main { public static function main() { trace("Hello world"); } } Here's the build file for the above program: -main Main -java java Now I want to compile this program to…
Anderson Green
  • 30,230
  • 67
  • 195
  • 328