47 lines
798 B
Haxe
47 lines
798 B
Haxe
package project;
|
|
|
|
|
|
import haxe.io.Path;
|
|
|
|
|
|
class Library {
|
|
|
|
|
|
public var embed:Null<Bool>;
|
|
public var generate:Bool;
|
|
public var name:String;
|
|
public var preload:Bool;
|
|
public var sourcePath:String;
|
|
public var type:String;
|
|
|
|
|
|
public function new (sourcePath:String, name:String = "", type:String = null, embed:Null<Bool> = null, preload:Bool = false, generate:Bool = false) {
|
|
|
|
this.sourcePath = sourcePath;
|
|
|
|
if (name == "") {
|
|
|
|
this.name = Path.withoutDirectory (Path.withoutExtension (sourcePath));
|
|
|
|
} else {
|
|
|
|
this.name = name;
|
|
|
|
}
|
|
|
|
this.type = type;
|
|
this.embed = embed;
|
|
this.preload = preload;
|
|
this.generate = generate;
|
|
|
|
}
|
|
|
|
|
|
public function clone ():Library {
|
|
|
|
return new Library (sourcePath, name, type, embed, preload, generate);
|
|
|
|
}
|
|
|
|
|
|
} |