blob: baae719ff8563835ec6f9f149cf047b1ae49443b [file] [log] [blame]
Pkg.makePrologue = "include custom.mak";
/* create a repository for all packages in this bundle */
var repository = Pkg.addRepository("packages");
/* compute the set of pkgs to put in this repository from the requires list */
var imports = [];
for (var i = 0; i < Pkg.imports.length; i++) {
var pname = Pkg.imports[i].split('{')[0];
/* only consider packages that are required to build this package */
if (pname[0] == '*') {
/* convert internal package requirement name to normal package name */
pname = pname.substring(1);
if (pname.match(/xdc.tools.sg.swt_/)) {
print("skipping host-specific package: " + pname);
continue;
}
/* get list of all releases supported by package pname */
var rels = Build.getReleaseDescs(pname);
for (var j = 0; j < rels.length; j++) {
var rel = rels[j];
/* use the default release */
if (rel.label == "default") {
imports.push(pname + ':' + rel.name);
break;
}
}
}
}
/* add the selected releases of the packages to the repository */
repository.addPackages(imports);
/* add the empty eclipse plugins and features directory */
Pkg.otherFiles = [ 'eclipse' ];