mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Updated the Wascana generator.
This commit is contained in:
parent
867745478d
commit
4467225060
1 changed files with 34 additions and 16 deletions
|
@ -91,6 +91,8 @@ public class MinGWGenerator implements IApplication {
|
||||||
|
|
||||||
String mingwSubdir = "mingw";
|
String mingwSubdir = "mingw";
|
||||||
|
|
||||||
|
boolean toolGroups = true;
|
||||||
|
|
||||||
// MinGW Runtime DLL
|
// MinGW Runtime DLL
|
||||||
Version runtimeVersion = new Version("4.15.2");
|
Version runtimeVersion = new Version("4.15.2");
|
||||||
IInstallableUnit runtimeDLLIU = createIU(
|
IInstallableUnit runtimeDLLIU = createIU(
|
||||||
|
@ -102,7 +104,7 @@ public class MinGWGenerator implements IApplication {
|
||||||
GZ_COMPRESSION,
|
GZ_COMPRESSION,
|
||||||
null,
|
null,
|
||||||
publicDomainLic,
|
publicDomainLic,
|
||||||
false);
|
toolGroups);
|
||||||
|
|
||||||
// MinGW Runtime Library
|
// MinGW Runtime Library
|
||||||
IInstallableUnit runtimeLibIU = createIU(
|
IInstallableUnit runtimeLibIU = createIU(
|
||||||
|
@ -116,7 +118,7 @@ public class MinGWGenerator implements IApplication {
|
||||||
createStrictRequiredCap(runtimeDLLIU)
|
createStrictRequiredCap(runtimeDLLIU)
|
||||||
},
|
},
|
||||||
publicDomainLic,
|
publicDomainLic,
|
||||||
false);
|
toolGroups);
|
||||||
|
|
||||||
// w32api
|
// w32api
|
||||||
IInstallableUnit w32apiIU = createIU(
|
IInstallableUnit w32apiIU = createIU(
|
||||||
|
@ -128,7 +130,7 @@ public class MinGWGenerator implements IApplication {
|
||||||
GZ_COMPRESSION,
|
GZ_COMPRESSION,
|
||||||
null,
|
null,
|
||||||
publicDomainLic,
|
publicDomainLic,
|
||||||
false);
|
toolGroups);
|
||||||
|
|
||||||
// binutils
|
// binutils
|
||||||
IInstallableUnit binutilsIU = createIU(
|
IInstallableUnit binutilsIU = createIU(
|
||||||
|
@ -140,7 +142,7 @@ public class MinGWGenerator implements IApplication {
|
||||||
GZ_COMPRESSION,
|
GZ_COMPRESSION,
|
||||||
null,
|
null,
|
||||||
gplLic,
|
gplLic,
|
||||||
false);
|
toolGroups);
|
||||||
|
|
||||||
// gcc-4 core
|
// gcc-4 core
|
||||||
Version gcc4version = new Version("4.3.3.tdm-1");
|
Version gcc4version = new Version("4.3.3.tdm-1");
|
||||||
|
@ -158,7 +160,7 @@ public class MinGWGenerator implements IApplication {
|
||||||
createRequiredCap(binutilsIU)
|
createRequiredCap(binutilsIU)
|
||||||
},
|
},
|
||||||
gplLic,
|
gplLic,
|
||||||
false);
|
toolGroups);
|
||||||
|
|
||||||
// gcc-4 g++
|
// gcc-4 g++
|
||||||
IInstallableUnit gcc4gppIU = createIU(
|
IInstallableUnit gcc4gppIU = createIU(
|
||||||
|
@ -172,7 +174,7 @@ public class MinGWGenerator implements IApplication {
|
||||||
createStrictRequiredCap(gcc4coreIU)
|
createStrictRequiredCap(gcc4coreIU)
|
||||||
},
|
},
|
||||||
gplLic,
|
gplLic,
|
||||||
false);
|
toolGroups);
|
||||||
|
|
||||||
// gdb
|
// gdb
|
||||||
IInstallableUnit gdbIU = createIU(
|
IInstallableUnit gdbIU = createIU(
|
||||||
|
@ -184,12 +186,12 @@ public class MinGWGenerator implements IApplication {
|
||||||
BZ2_COMPRESSION,
|
BZ2_COMPRESSION,
|
||||||
null,
|
null,
|
||||||
gplLic,
|
gplLic,
|
||||||
false);
|
toolGroups);
|
||||||
|
|
||||||
InstallableUnitDescription toolchainIUDesc = createIUDesc(
|
InstallableUnitDescription toolchainIUDesc = createIUDesc(
|
||||||
"wascana.toolchain",
|
"wascana.toolchain",
|
||||||
new Version("4.3.3"),
|
new Version("4.3.3"), // Same as gcc
|
||||||
"Wascana Toolchain (gcc, g++, gdb)",
|
"Wascana Toolchain (gcc, gdb, runtime libs)",
|
||||||
null);
|
null);
|
||||||
toolchainIUDesc.setProperty(IInstallableUnit.PROP_TYPE_GROUP, Boolean.TRUE.toString());
|
toolchainIUDesc.setProperty(IInstallableUnit.PROP_TYPE_GROUP, Boolean.TRUE.toString());
|
||||||
toolchainIUDesc.setRequiredCapabilities(new IRequiredCapability[] {
|
toolchainIUDesc.setRequiredCapabilities(new IRequiredCapability[] {
|
||||||
|
@ -207,7 +209,7 @@ public class MinGWGenerator implements IApplication {
|
||||||
IInstallableUnit msysIU = createIU(
|
IInstallableUnit msysIU = createIU(
|
||||||
"wascana.msys.core",
|
"wascana.msys.core",
|
||||||
new Version("1.0.11.20080826"),
|
new Version("1.0.11.20080826"),
|
||||||
"Wascana MSYS Shell",
|
"Wascana Shell (MSYS)",
|
||||||
"http://downloads.sourceforge.net/mingw/msysCORE-1.0.11-20080826.tar.gz",
|
"http://downloads.sourceforge.net/mingw/msysCORE-1.0.11-20080826.tar.gz",
|
||||||
"msys",
|
"msys",
|
||||||
GZ_COMPRESSION,
|
GZ_COMPRESSION,
|
||||||
|
@ -251,15 +253,26 @@ public class MinGWGenerator implements IApplication {
|
||||||
wxLic,
|
wxLic,
|
||||||
true);
|
true);
|
||||||
|
|
||||||
|
InstallableUnitDescription libsIUDesc = createIUDesc(
|
||||||
|
"wascana.libraries",
|
||||||
|
wascanaVersion,
|
||||||
|
"Wascana Libraries",
|
||||||
|
null);
|
||||||
|
libsIUDesc.setProperty(IInstallableUnit.PROP_TYPE_CATEGORY, Boolean.TRUE.toString());
|
||||||
|
libsIUDesc.setRequiredCapabilities(new IRequiredCapability[] {
|
||||||
|
createRequiredCap(zlibIU),
|
||||||
|
createRequiredCap(sdlIU),
|
||||||
|
createRequiredCap(wxIU),
|
||||||
|
});
|
||||||
|
IInstallableUnit libsIU = MetadataFactory.createInstallableUnit(libsIUDesc);
|
||||||
|
|
||||||
// Libraries toolchain category
|
// Libraries toolchain category
|
||||||
InstallableUnitDescription wascanaIUDesc = createIUDesc("wascana", wascanaVersion, "Wascana Desktop Developer", null);;
|
InstallableUnitDescription wascanaIUDesc = createIUDesc("wascana", wascanaVersion, "Wascana Desktop Developer", null);;
|
||||||
wascanaIUDesc.setProperty(IInstallableUnit.PROP_TYPE_CATEGORY, Boolean.TRUE.toString());
|
wascanaIUDesc.setProperty(IInstallableUnit.PROP_TYPE_CATEGORY, Boolean.TRUE.toString());
|
||||||
wascanaIUDesc.setRequiredCapabilities(new IRequiredCapability[] {
|
wascanaIUDesc.setRequiredCapabilities(new IRequiredCapability[] {
|
||||||
createRequiredCap(toolchainIU),
|
createRequiredCap(toolchainIU),
|
||||||
createRequiredCap(msysIU),
|
createRequiredCap(msysIU),
|
||||||
createRequiredCap(zlibIU),
|
createRequiredCap(libsIU),
|
||||||
createRequiredCap(sdlIU),
|
|
||||||
createRequiredCap(wxIU),
|
|
||||||
});
|
});
|
||||||
IInstallableUnit wascanaIU = MetadataFactory.createInstallableUnit(wascanaIUDesc);
|
IInstallableUnit wascanaIU = MetadataFactory.createInstallableUnit(wascanaIUDesc);
|
||||||
|
|
||||||
|
@ -273,11 +286,14 @@ public class MinGWGenerator implements IApplication {
|
||||||
gdbIU,
|
gdbIU,
|
||||||
msysIU,
|
msysIU,
|
||||||
|
|
||||||
|
toolchainIU,
|
||||||
|
|
||||||
wxIU,
|
wxIU,
|
||||||
zlibIU,
|
zlibIU,
|
||||||
sdlIU,
|
sdlIU,
|
||||||
|
|
||||||
toolchainIU,
|
libsIU,
|
||||||
|
|
||||||
wascanaIU
|
wascanaIU
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -314,16 +330,18 @@ public class MinGWGenerator implements IApplication {
|
||||||
iuDesc.setTouchpointType(NATIVE_TOUCHPOINT);
|
iuDesc.setTouchpointType(NATIVE_TOUCHPOINT);
|
||||||
Map<String, String> tpdata = new HashMap<String, String>();
|
Map<String, String> tpdata = new HashMap<String, String>();
|
||||||
|
|
||||||
String cmd;
|
String cmd, uncmd;
|
||||||
if (compression.equals(ZIP_COMPRESSION)) {
|
if (compression.equals(ZIP_COMPRESSION)) {
|
||||||
cmd = "unzip(source:@artifact, target:${installFolder}/" + subdir + ");";
|
cmd = "unzip(source:@artifact, target:${installFolder}/" + subdir + ");";
|
||||||
|
uncmd = "cleanupzip(source:@artifact, target:${installFolder}/" + subdir + ");";
|
||||||
} else {
|
} else {
|
||||||
cmd = "untar(source:@artifact, target:${installFolder}/" + subdir
|
cmd = "untar(source:@artifact, target:${installFolder}/" + subdir
|
||||||
+ ", compression:" + compression + ");";
|
+ ", compression:" + compression + ");";
|
||||||
|
uncmd = "cleanup" + cmd;
|
||||||
}
|
}
|
||||||
|
|
||||||
tpdata.put("install", cmd);
|
tpdata.put("install", cmd);
|
||||||
tpdata.put("uninstall", "cleanup" + cmd);
|
tpdata.put("uninstall", uncmd);
|
||||||
|
|
||||||
iuDesc.addTouchpointData(MetadataFactory.createTouchpointData(tpdata));
|
iuDesc.addTouchpointData(MetadataFactory.createTouchpointData(tpdata));
|
||||||
IArtifactKey artiKey = PublisherHelper.createBinaryArtifactKey(id, version);
|
IArtifactKey artiKey = PublisherHelper.createBinaryArtifactKey(id, version);
|
||||||
|
|
Loading…
Add table
Reference in a new issue