Scroll to navigation

HAXE(1) User Commands HAXE(1)

NAME

haxe - manual page for haxe 4.3.6

SYNOPSIS

haxe <target> [options] [hxml files and dot paths...]

DESCRIPTION

Haxe Compiler 4.3.6 - (C)2005-2024 Haxe Foundation

Target:

generate JavaScript code into target file
generate Lua code into target file
generate Flash SWF bytecode into target file
generate Neko bytecode into target file
generate PHP code into target directory
generate C++ code into target directory
generate Cppia bytecode into target file
generate C# code into target directory
generate Java code into target directory
generate JVM bytecode into target file
generate Python code into target file
generate HashLink .hl bytecode or .c code into target file
interpret the program using internal macro system
interpret a Haxe module with command line arguments

Compilation:

add a directory to find source files
select startup class
use a haxelib library
define a conditional compilation flag
add a named resource file
run the specified command after successful compilation
remap a package to another one
call the given macro before typing anything else
set current working directory
pass --global argument to haxelib
enable or disable specific warnings

Optimization:

set the dead code elimination mode (default std)
don't compile trace calls in the program
compiles but does not generate any file
disable inlining
disable code optimizations

Debug:

turn on verbose mode
add debug information to the compiled code
prompt on error
measure compilation times

Batch:

separate several haxe compilations
append preceding parameters to all Haxe compilations separated by --next

Services:

display code tips
generate XML types description
generate JSON types description

Compilation Server:

wait on the given port (or use standard i/o) for commands to run
connect to the given port and wait for commands to run
connect on the given port and run commands there

Target-specific:

change the SWF version
define SWF header (width:height:fps:color)
more type strict flash API
add the SWF library to the compiled SWF
use the SWF library for type checking
add an external JAR or directory of JAR files
use an external JAR or directory of JAR files for type checking
add an external .NET DLL file
add a root std .NET DLL search path
pass option <arg> to the native Java/C# compiler

Miscellaneous:

print version and exit
show extended help information
print help for all compiler specific defines
print help for all user defines
print help for all compiler metadatas
print help for all user metadatas
August 2024 haxe 4.3.6