/** * Construct a Build object, * * A build object contains the information of all build options, prefix, paths... etc * * @param string $version build version * @param string $name build name * @param string $prefix install prefix */ public function __construct($version, $name = null, $installPrefix = null) { $this->version = $version; $this->name = $name ? $name : Utils::canonicalizeBuildName($version); if ($installPrefix) { $this->setInstallPrefix($installPrefix); } else { // TODO: find the install prefix automatically } $this->setBuildSettings(new BuildSettings()); }