forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
32
Kha/Backends/Kinc-hxcpp/khacpp/tools/hxcpp/Manifester.hx
Normal file
32
Kha/Backends/Kinc-hxcpp/khacpp/tools/hxcpp/Manifester.hx
Normal file
@ -0,0 +1,32 @@
|
||||
class Manifester
|
||||
{
|
||||
public var mExe:String;
|
||||
public var mFlags:Array<String>;
|
||||
public var mOutPre:String;
|
||||
public var mOutPost:String;
|
||||
|
||||
public function new(inExe:String)
|
||||
{
|
||||
mFlags = [];
|
||||
mExe = inExe;
|
||||
mOutPre = "";
|
||||
mOutPost = "";
|
||||
}
|
||||
|
||||
public function add(binName:String,manifestName:String, isExe:Bool)
|
||||
{
|
||||
var args = new Array<String>();
|
||||
args = args.concat(mFlags);
|
||||
|
||||
//only windows for now
|
||||
mOutPost = isExe ? ";1" : ";2";
|
||||
|
||||
var result = ProcessManager.runCommand("", mExe, args.concat([manifestName,mOutPre + binName + mOutPost]) );
|
||||
if (result!=0)
|
||||
{
|
||||
Tools.exit(result);
|
||||
//throw "Error : " + result + " - build cancelled";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user