Update build script
This commit is contained in:
@@ -1,38 +1,62 @@
|
|||||||
class Build extends hxp.Script { public function new () { super ();
|
import hxp.helpers.ProcessHelper;
|
||||||
|
import hxp.HXML;
|
||||||
|
import sys.io.File;
|
||||||
|
|
||||||
var flash = new hxp.HXML ();
|
class Build {
|
||||||
|
|
||||||
|
public function new () {
|
||||||
|
|
||||||
|
var base = new HXML ({
|
||||||
|
defines: [ "display", "doc-gen", "lime-doc-gen" ],
|
||||||
|
classNames: [ "ImportAll" ],
|
||||||
|
libs: [ "lime" ],
|
||||||
|
noOutput: true
|
||||||
|
});
|
||||||
|
|
||||||
|
var flash = base.clone ();
|
||||||
flash.xml = "xml/Flash.xml";
|
flash.xml = "xml/Flash.xml";
|
||||||
flash.swf = "obj/docs";
|
flash.swf = "obj/docs";
|
||||||
flash.swfVersion = "17.0";
|
flash.swfVersion = "17.0";
|
||||||
flash.define ("display");
|
|
||||||
flash.define ("doc_gen");
|
|
||||||
flash.define ("lime-doc-gen");
|
|
||||||
flash.addClassName ("ImportAll");
|
|
||||||
flash.lib ("lime");
|
|
||||||
flash.noOutput = true;
|
|
||||||
flash.build ();
|
flash.build ();
|
||||||
|
|
||||||
var windows = new hxp.HXML ("
|
var native = base.clone ();
|
||||||
-xml xml/Windows.xml
|
native.cpp = "obj/docs";
|
||||||
-cpp obj/docs
|
native.define ("native");
|
||||||
-D display
|
native.define ("lime-cffi");
|
||||||
-D native
|
|
||||||
-D lime-cffi
|
var windows = native.clone ();
|
||||||
-D windows
|
windows.xml = "xml/Windows.xml";
|
||||||
-D doc_gen
|
windows.define ("windows");
|
||||||
-D lime-doc-gen
|
|
||||||
ImportAll
|
|
||||||
-lib lime
|
|
||||||
--no-output
|
|
||||||
");
|
|
||||||
windows.build ();
|
windows.build ();
|
||||||
|
|
||||||
var mac = new hxp.HXML (sys.io.File.getContent ("hxml/mac.hxml")).build ();
|
var mac = native.clone ();
|
||||||
var linux = new hxp.HXML (sys.io.File.getContent ("hxml/linux.hxml")).build ();
|
mac.xml = "xml/macOS.xml";
|
||||||
var ios = new hxp.HXML (sys.io.File.getContent ("hxml/ios.hxml")).build ();
|
mac.define ("mac");
|
||||||
var android = new hxp.HXML (sys.io.File.getContent ("hxml/android.hxml")).build ();
|
mac.build ();
|
||||||
var html5 = new hxp.HXML (sys.io.File.getContent ("hxml/html5.hxml")).build ();
|
|
||||||
|
|
||||||
Sys.command ("haxelib run dox -i xml -in lime --title \"Lime API Reference\" -D website \"http://lime.software\" -D logo \"/images/logo.png\" -D textColor 0x777777 -theme ../../assets/docs-theme --toplevel-package lime");
|
var linux = native.clone ();
|
||||||
|
linux.xml = "xml/Linux.xml";
|
||||||
|
linux.define ("linux");
|
||||||
|
linux.build ();
|
||||||
|
|
||||||
} }
|
var ios = native.clone ();
|
||||||
|
ios.xml = "xml/iOS.xml";
|
||||||
|
ios.define ("ios");
|
||||||
|
ios.build ();
|
||||||
|
|
||||||
|
var android = native.clone ();
|
||||||
|
android.xml = "xml/Android.xml";
|
||||||
|
android.define ("android");
|
||||||
|
android.build ();
|
||||||
|
|
||||||
|
var html5 = base.clone ();
|
||||||
|
html5.xml = "xml/HTML5.xml";
|
||||||
|
html5.js = "obj/docs";
|
||||||
|
html5.define ("html5");
|
||||||
|
html5.build ();
|
||||||
|
|
||||||
|
ProcessHelper.runCommand ("", "haxelib", [ "run", "dox", "-i", "xml", "-in", "lime", "--title", "Lime API Reference", "-D", "website", "http://lime.software", "-D", "logo", "/images/logo.png", "-D", "textColor", "0x777777", "-theme", "../../assets/docs-theme", "--toplevel-package", "lime" ]);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user