This fork contains the Hxobjc target.
-
Clone the repository using git. Be sure to initialize and fetch the submodules.
git clone [email protected]:ralcr/haxe.git cd haxe git submodule init git submodule update
-
You now need to hardcode the path to the new std lib. In main.ml file at line 810 change the first path to match yours:
com.class_path <- ["/Users/Cristi/Documents/haxecompiler/haxe/std/";"";"/"]
-
Build Haxe with:
make haxe
-
Or build Haxe and the tools with:
make
-
On Mac you can run the build.sh script that will compile Haxe and will build the demos as well:
./build.sh
-
If something is not working run first:
make clean make
The starting point of your app should look like this, everything else is ignored:
public static function main() {
return new UIApplicationMain ( AppDelegate );
}
Where the AppDelegate.hx conforms with the UIApplicationDelegate. This is the main method of your app, you should put the code before returning.
class AppDelegate extends UIResponder implements UIApplicationDelegate {
public function application (application:UIApplication, didFinishLaunchingWithOptions:NSDictionary) :Bool {
// See the demos from hxcocoa lib please
return true;
}
}
In case i forget this is how i merge the HF/haxe repository in my local fork
git fetch upstream
git merge upstream/development