20 lines
378 B
Haxe
Raw Normal View History

2025-01-22 16:18:30 +01:00
#if !macro
private typedef Import = haxe.macro.MacroType<[Build.build()]>;
#else
class Build {
static var config : webidl.Options = {
idlFile : "./recast/recast.idl",
nativeLib : "recast",
includeCode : "#include \"recastjs.h\"",
autoGC : false,
outputDir : "../build/",
};
public static function buildLibCpp() {
webidl.Generate.generateCpp(config);
}
}
#end