haxe man page

haxe — manual page for haxe 3.2.1

Description

Haxe Compiler 3.2.1 - (C)2005-2015 Haxe Foundation

Usage : haxe -main <class> [-swf|-js|-neko|-php|-cpp|-as3] <output> [options] Options :

-cp <path> : add a directory to find source files

-js <file> : compile code to JavaScript 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 <directory> : generate PHP code into target directory

-cpp <directory> : generate C++ code into target directory

-cs <directory> : generate C# code into target directory

-java <directory> : generate Java code into target directory

-python <file> : generate Python code as target file

-xml <file> : generate XML types description

-main <class> : select startup class

-lib <library[:version]> : use a haxelib library

-D <var> : define a conditional compilation flag

-v : turn on verbose mode

-debug : add debug information to the compiled code

-dce [std|full|no] : set the dead code elimination mode

-swf-version <version> : change the SWF version

-swf-header <header> : define SWF header (width:height:fps:color)

-swf-lib <file> : add the SWF library to the compiled SWF

-swf-lib-extern <file> : use the SWF library for type checking

-java-lib <file> : add an external JAR or class directory library

-net-lib <file>[@std] : add an external .NET DLL file

-net-std <file> : add a root std .NET DLL search path

-c-arg <arg> : pass option <arg> to the native Java/C# compiler

-x <file> : shortcut for compiling and executing a neko file

-resource <file>[@name] : add a named resource file

-prompt : prompt on error

-cmd : run the specified command after successful compilation

--flash-strict : more type strict flash API

--no-traces : don't compile trace calls in the program

--gen-hx-classes : generate hx headers for all input classes

--next : separate several haxe compilations

--each : append preceding parameters to all haxe compilations separated by --next

--display : display code tips

--no-output : compiles but does not generate any file

--times : measure compilation times

--no-inline : disable inlining

--no-opt : disable code optimizations

--php-front <filename> : select the name for the php front file

--php-lib <filename> : select the name for the php lib folder

--php-prefix <name> : prefix all classes with given name

--remap <package:target> : remap a package to another one

--interp : interpret the program using internal macro system

--macro
: call the given macro before typing anything else
--eval
: evaluates argument as Haxe module code

--wait <[host:]port> : wait on the given port for commands to run)

--connect <[host:]port> : connect on the given port and run commands there)

--cwd <dir> : set current working directory

-version : print version and exit

--help-defines : print help for all compiler specific defines

--help-metas : print help for all compiler metadatas

-help
Display this list of options
--help
Display this list of options

Info

November 2016 haxe 3.2.1 User Commands