Another approach:
https://github.com/elsassph/modular-haxe-example
However it would be improved if we find a way to actually generate externs. Either using a macro or the compiler's XML output.
This something I want to investigate myself to avoid recompiling complex/large dependencies.
Philippe
Maybe you could take a look at this haxelib:
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.
However it would be improved if we find a way to actually generate externs. Either using a macro or the compiler's XML output.
This something I want to investigate myself to avoid recompiling complex/large dependencies.
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.
// haxe dev version
//
#if b_js extern #end class A {
public function new():Void {
trace("new A");
}
}
#if a_js extern #end class B {
public function new():Void {
trace("new B");
}
}
#if b_js extern #end class A {
public static var foo:String = "abc";
public function new():Void {
public function foo(param=false):Void {
#if a_js extern #end class B {
static var value:String;
public static function main():Void{
}
public function foo(param:Bool=false):Void {
}
#if !a_js
static function __init__(){
value = "foooooooo";
}
#end
}
Is there a macro I can invoke from the --macro commandline that does exactly what @:native('') does on an extern? Because I need to rescope library classes, but I can't compile against externs.