Reference

haxe(1)

compile Haxe programs to SWF, Neko, JavaScript, PHP, C++, Java, C#, Python, Lua, or HashLink.

NAME

haxe - compile Haxe programs to SWF, Neko, JavaScript, PHP, C++, Java, C#, Python, Lua, or HashLink.

SYNOPSIS

haxe -main class [-swf9|-swf|-js|-neko|-php|-cpp|-as3|-cs|-java|-python|-hl|-lua] output [options...]

DESCRIPTION

haxe is a command-line compiler which compiles Haxe programs into Flash SWF, JavaScript, ActionScript, PHP, C++, Java, C#, Python, Lua, Neko bytecode, or HashLink bytecode.

Haxe programs are syntactically similar to JavaScript, but have a full-featured static type system with generics, compile-time macros, generalized algebraic datatypes, and more.

OPTIONS

-cp path

Add a directory to find source files.

-js file

Compile code to JavaScript file.

-lua file

Compile code to Lua file.

-swf file

Compile code to Flash SWF file.

-as3 directory

Generate AS3 code into target directory.

-neko file

Compile code to Neko Binary.

-php file

Generate PHP code into target directory.

-cpp file

Generate C++ code into target directory.

-cppia file

Generate code to Cppia file.

-cs directory

Generate C# code into target directory.

-java directory

Generate Java code into target directory.

-python file

Generate Python code as target file.

-hl file

Compile HL code as target file.

-xml file

Generate XML types description.

-main class

Select startup class.

-lib library[:version]

Use a haxelib library.

-D var[=value]

Define a conditional compilation flag.

-v

Turn on verbose mode.

-debug

Add debug information to the compiled code.

-help

Show extended help information.

--help

Show extended help information.

--help-defines

Print help for all compiler specific defines.

--help-metas

Print help for all compiler metadatas.

<dot-path>

Compile the module specified by dot-path.

AUTHOR

Haxe is currently maintained by the Haxe Foundation. It was originally written by Nicolas Cannasse for Motion-Twin.

SEE ALSO

haxelib(1). https://haxe.org/.

History

--help-defines since Debian 10 (Buster); --help-metas since Debian 10 (Buster); -cpp since Debian 6.0 (Squeeze); -cppia since Debian 10 (Buster); -cs since Debian 10 (Buster); -hl since Debian 10 (Buster); -java since Debian 10 (Buster); -lua since Debian 10 (Buster); -php since Debian 6.0 (Squeeze); -python since Debian 10 (Buster).

--altfmt until Debian 5.0 (Lenny); --auto-xml until Debian 5.0 (Lenny); --dead-code-elimination until Debian 9 (Stretch); --display until Debian 9 (Stretch); --flash-strict until Debian 9 (Stretch); --flash-use-stage until Debian 9 (Stretch); --gen-hx-classes until Debian 9 (Stretch); --interp until Debian 9 (Stretch); --js-namespace until Debian 9 (Stretch); --macro until Debian 9 (Stretch); --neko-source until Debian 9 (Stretch); --next until Debian 9 (Stretch); --no-inline until Debian 9 (Stretch); --no-opt until Debian 9 (Stretch); --no-output until Debian 9 (Stretch); --no-traces until Debian 9 (Stretch); --override until Debian 5.0 (Lenny); --php-front until Debian 9 (Stretch); --php-lib until Debian 9 (Stretch); --remap until Debian 9 (Stretch); --times until Debian 9 (Stretch); -cmd until Debian 9 (Stretch); -exclude until Debian 6.0 (Squeeze); -prompt until Debian 9 (Stretch); -resource until Debian 9 (Stretch); -swf-header until Debian 9 (Stretch); -swf-lib until Debian 9 (Stretch); -swf-version until Debian 9 (Stretch); -swf9 until Debian 6.0 (Squeeze); -x until Debian 9 (Stretch).