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 source?
Found HXML:
Edit: Scroll down for my answer with the complete list of commands.
Got it! Here's the complete list of HXML / command line Options for the Haxe compiler
Have you tried:
haxe --help
.hxml files are just a convenient way to pass commandline parameters as far as I know.
For an advanced usage and some tips here is a great article by Andy Li ( https://stackoverflow.com/users/267998/andy-li )
http://blog.onthewings.net/2013/03/04/hxml-tricks-every-haxe-user-should-know/
Lines starting with hash (#) won't be treated as arguments.
#Yay! Comments!
Use -cmd
to run any command line after successful compilation.
#C++
-cpp bin
-main Test
-cmd ./bin/Test
#Flash
-swf Test.swf
-main Test
-cmd path/to/FlashDebugger Test.swf
#Neko
-neko Test.n
-main Test
-cmd neko Test.n
For Neko target there is special shortcut for building and running -x Test
.
Appending arguments also works, for example if you want to build debug version
haxe project.hxml -debug
Use --next
to separate different target/configuration builds. Use --each
to apply arguments to every build within hxml.
#lib will be used in every '--next' build
-lib jQueryExtern
--each
#build MainPage
-js script/MainPage.js
-main MainPage
--next
#build ContactPage
-js script/ContactPage.js
-main ContactPage
#build AlbumPage
--next
-js script/AlbumPage.js
-main AlbumPage
You can further separate different build configurations by creating an hxml for every configuration.
client.hxml:
-main Client
-js client.js
server.hxml:
-main Server
-neko server.n
all.hxml:
client.hxml
--next
server.hxml
Builds both: haxe all.hxml
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.