Skip to content

lix-pm/hxcpp

 
 

Repository files navigation

hxcpp

TravisCI Build Status AppVeyor Build Status

hxcpp is the runtime support for the c++ backend of the haxe compiler. This contains the headers, libraries and support code required to generate a fully compiled executable from haxe code.

building

Build the tools.

cd tools/hxcpp
haxe compile.hxml
cd ../build
haxe compile.hxml

Running neko on the build.n script will rebuild the supported architectures on your current platform.

cd project
neko build.n clean
neko build.n

In the same folder, you can cross build to other platforms using the run.n with the said platform name.

For example :

neko build.n android

You can save time if you know that you are only going to use, say, the dynamic libraries (ndlls) on a particular architecture on a particular platform.

neko build.n ndll-android-armv5

You can enable debugging in the standard runtime libraries using the debug flag, eg:

neko build.n windows -debug

which may help with native debugging. Don't forget to rebuild without debugging for release.

For experts, you can configure the compilation scripts that will be used for executables and library production in the 'toolchain' folder.

cppia

You first need to build the cppia host.

cd project
haxe compile-cppia.hxml

Then you can do haxelib run hxcpp file.cppia.

About

Runtime files for c++ backend for haxe

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 84.7%
  • C++ 14.0%
  • Haxe 0.9%
  • Objective-C 0.2%
  • Smarty 0.1%
  • Batchfile 0.1%