1HAXE(1) User Commands HAXE(1)
2
3
4
6 haxe - manual page for haxe 4.0.5
7
9 haxe <target> [options] [hxml files...]
10
12 Haxe Compiler 4.0.5 - (C)2005-2019 Haxe Foundation
13
14 Target:
15 --js <file>
16 compile code to JavaScript file
17
18 --lua <file>
19 compile code to Lua file
20
21 --swf <file>
22 compile code to Flash SWF file
23
24 --as3 <directory>
25 generate AS3 code into target directory
26
27 --neko <file>
28 compile code to Neko Binary
29
30 --php <directory>
31 generate PHP code into target directory
32
33 --cpp <directory>
34 generate C++ code into target directory
35
36 --cppia <file>
37 generate Cppia code into target file
38
39 --cs <directory>
40 generate C# code into target directory
41
42 --java <directory>
43 generate Java code into target directory
44
45 --python <file>
46 generate Python code as target file
47
48 --hl <file>
49 compile HL code as target file
50
51 --interp
52 interpret the program using internal macro system
53
54 Compilation:
55 -p, --class-path <path>
56 add a directory to find source files
57
58 -m, --main <class>
59 select startup class
60
61 -L, --library <name[:ver]>
62 use a haxelib library
63
64 -D, --define <var[=value]>
65 define a conditional compilation flag
66
67 -r, --resource <file>[@name]
68 add a named resource file
69
70 --cmd <command>
71 run the specified command after successful compilation
72
73 --remap <package:target>
74 remap a package to another one
75
76 --macro <macro>
77 call the given macro before typing anything else
78
79 -C, --cwd <dir>
80 set current working directory
81
82 --haxelib-global
83 pass --global argument to haxelib
84
85 Optimization:
86 --dce [std|full|no]
87 set the dead code elimination mode (default std)
88
89 --no-traces
90 don't compile trace calls in the program
91
92 --no-output
93 compiles but does not generate any file
94
95 --no-inline
96 disable inlining
97
98 --no-opt
99 disable code optimizations
100
101 Debug:
102 -v, --verbose
103 turn on verbose mode
104
105 --debug
106 add debug information to the compiled code
107
108 --prompt
109 prompt on error
110
111 --times
112 measure compilation times
113
114 Batch:
115 --next separate several haxe compilations
116
117 --each append preceding parameters to all Haxe compilations separated
118 by --next
119
120 Services:
121 --display
122 display code tips
123
124 --xml <file>
125 generate XML types description
126
127 --json <file>
128 generate JSON types description
129
130 Compilation Server:
131 --server-listen [[host:]port]|stdio]
132 wait on the given port (or use standard i/o) for commands to run
133
134 --server-connect [host:]port]
135 connect to the given port and wait for commands to run
136
137 --connect <[host:]port>
138 connect on the given port and run commands there
139
140 Target-specific:
141 --swf-version <version>
142 change the SWF version
143
144 --swf-header <header>
145 define SWF header (width:height:fps:color)
146
147 --flash-strict
148 more type strict flash API
149
150 --net-std <file>
151 add a root std .NET DLL search path
152
153 --c-arg <arg>
154 pass option <arg> to the native Java/C# compiler
155
156 Miscellaneous:
157 --version
158 print version and exit
159
160 -h, --help
161 show extended help information
162
163 --help-defines
164 print help for all compiler specific defines
165
166 --help-metas
167 print help for all compiler metadatas
168
169 --run <module> [args...]
170 compile and execute a Haxe module with command line arguments
171
172
173
174haxe 4.0.5 March 2020 HAXE(1)