xCross is a tool that enable you to build standalone binaries from an haXe/Neko program. By running a single command, xCross will create three binaries, for Windows, OSX (Universal) and Linux with no required dependencies.
- install haXe + Neko from http://haxe.org
- run
haxelib install xcross
- run "haxelib run xcross
myfile.n
" - this will produce three standalone executables
myfile-win.exe
,myfile-osx
andmyfile-linux
- you can create an OSX bundle instead of a binary with
haxelib run xcross -bundle MyBundle myfile.n
- the NekoVM itself (
neko.dll
orlibneko.so
) - the Boehm GC used by NekoVM (
gc.dll
orlibgc.so
) - the Neko standard library (
std.ndll
) which contains filesystem access, sockets, threads, etc. - the
zlib.ndll
andregexp.ndll
libraries (for zip and regular expressions support) - a very tiny UI toolkit used by haXe Installer (see https://github.com/robksawyer/xcross/tree/master/xcross)
If you want to use additional libraries, you'll have to make a custom build of xCross.