hxbuild

Build tool for Haxe
https://github.com/notcl4y14/HaxeBuild

To install, run:

haxelib install hxbuild 1.1.0 

See using Haxelib in Haxelib documentation for more information.

README.md

HaxeBuild

HaxeBuild (or HxBuild) is a build tool for Haxe inspired by C++ build tools like premake. Currently, it has a few features: - Different combinations with Configs and Releases - Automatic copying the included files/directories with include - Installing libraries the hxbuild.json file contains (the ones in configs/targets should be specified with --config and/or --target) - Exporting to .hxml file - Getting the initial outDir value from config/target via ${outDir}

+ Example: `"outDir": "build"`, `"${outDir}" = "build"`, `"${outDir}/hl" -> "build/hl"`

Configuring

  1. Create hxbuild.json file in the source directory of the project
  2. Add the properties. Example:
{
	"main": "MainClass",

	"outDir": "build",
	"outFile": "Project",

	"configs:Release": {
		"defines": "Release"
	},

	"targets:HashLink": {
		"target": "hl",
		"outDir": "${outDir}/build"
	}
}
  1. Type in haxelib run hxbuild build --config Release --target HashLink to run the project

Tags

  • main - Main class
  • classpath - Class path (directory that contains all the classes)
  • include (array) - Files/Directories to be copied to build directory
  • defines (array) - An array of defines (-D)
  • libraries (array) - An array of libraries (-L) + Can be used to install the libraries with hxbuild install
  • configs:(config_name) (object) - Specified configuration, example names: Release, Debug; Selected with --config
  • targets:(target_name) (object) - Specified target, example names: HashLink, C++; Selected with --target
  • target - Target for Haxe to compile, like: -hl, -cpp, -js, etc.
Contributors
notcl4y14
Version
1.1.0
Published
1 year ago
Dependencies
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub