-
-
Notifications
You must be signed in to change notification settings - Fork 168
Libraries
Robert Konrad edited this page Jul 7, 2015
·
13 revisions
Libraries have to be added in a libraries element in your project's project.kha like so:
"libraries": [
"Kha2D",
"zBlend"
]
khamake will then search for these libraries in a 'Libraries' subdirectory inside of your project and in your local haxelib installation. When a specific library exists in both places, the library in the Libraries subdirectory will be preferred.
A library has it's own Sources folder where you can place Haxe sources. When your project also contains assets, it additionally needs a project.kha (that is then merged with the project's project.kha). When your project also contains native code, it needs a korefile.js file.
A minimal example library that will bring up a sharing dialog on iOS is available here.
- Introduction
- Getting Started
- Breaking Changes
- FAQ
- System targets
- Graphics targets
- Documentation
- API package descriptions