1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-30 03:33:37 +02:00

Added wxWidgets.

This commit is contained in:
Doug Schaefer 2008-12-20 03:40:24 +00:00
parent d735f36b31
commit ba99674efa

View file

@ -72,6 +72,7 @@ public class MinGWGenerator implements IApplication {
License gplLic = MetadataFactory.createLicense(gplURL, gpl); License gplLic = MetadataFactory.createLicense(gplURL, gpl);
License lgplLic = MetadataFactory.createLicense(lgplURL, lgpl); License lgplLic = MetadataFactory.createLicense(lgplURL, lgpl);
License zlibLic = MetadataFactory.createLicense(zlibLicURL, zlibLicText); License zlibLic = MetadataFactory.createLicense(zlibLicURL, zlibLicText);
License wxLic = MetadataFactory.createLicense(wxLicURL, wxLicText);
Version wascanaVersion = new Version("1.0.0"); Version wascanaVersion = new Version("1.0.0");
String mingwSubdir = "mingw"; String mingwSubdir = "mingw";
@ -161,27 +162,13 @@ public class MinGWGenerator implements IApplication {
InstallableUnitDescription mingwToolchainDesc = createIUDesc("wascana.mingw", wascanaVersion, "MinGW Toolchain", null);; InstallableUnitDescription mingwToolchainDesc = createIUDesc("wascana.mingw", wascanaVersion, "MinGW Toolchain", null);;
mingwToolchainDesc.setProperty(IInstallableUnit.PROP_TYPE_CATEGORY, Boolean.TRUE.toString()); mingwToolchainDesc.setProperty(IInstallableUnit.PROP_TYPE_CATEGORY, Boolean.TRUE.toString());
RequiredCapability[] mingwToolchainReqs = new RequiredCapability[] { RequiredCapability[] mingwToolchainReqs = new RequiredCapability[] {
MetadataFactory.createRequiredCapability( createRequiredCap(runtimeId),
IInstallableUnit.NAMESPACE_IU_ID, createRequiredCap(w32apiId),
runtimeIU.getId(), new VersionRange(null), null, false, false), createRequiredCap(binutilsId),
MetadataFactory.createRequiredCapability( createRequiredCap(gcc4coreId),
IInstallableUnit.NAMESPACE_IU_ID, createRequiredCap(gcc4gppId),
w32apiIU.getId(), new VersionRange(null), null, false, false), createRequiredCap(gdbId),
MetadataFactory.createRequiredCapability( createRequiredCap(msysId),
IInstallableUnit.NAMESPACE_IU_ID,
binutilsIU.getId(), new VersionRange(null), null, false, false),
MetadataFactory.createRequiredCapability(
IInstallableUnit.NAMESPACE_IU_ID,
gcc4coreIU.getId(), new VersionRange(null), null, false, false),
MetadataFactory.createRequiredCapability(
IInstallableUnit.NAMESPACE_IU_ID,
gcc4gppIU.getId(), new VersionRange(null), null, false, false),
MetadataFactory.createRequiredCapability(
IInstallableUnit.NAMESPACE_IU_ID,
gdbIU.getId(), new VersionRange(null), null, false, false),
MetadataFactory.createRequiredCapability(
IInstallableUnit.NAMESPACE_IU_ID,
msysIU.getId(), new VersionRange(null), null, false, false),
}; };
mingwToolchainDesc.setRequiredCapabilities(mingwToolchainReqs); mingwToolchainDesc.setRequiredCapabilities(mingwToolchainReqs);
IInstallableUnit mingwToolchainIU = MetadataFactory.createInstallableUnit(mingwToolchainDesc); IInstallableUnit mingwToolchainIU = MetadataFactory.createInstallableUnit(mingwToolchainDesc);
@ -204,16 +191,22 @@ public class MinGWGenerator implements IApplication {
mingwSubdir, mingwSubdir,
InstallArtifactRepository.ZIP_COMPRESSION); InstallArtifactRepository.ZIP_COMPRESSION);
// wxWidgets
String wxId = "wascana.wxWidgets";
Version wxVersion = new Version("2.8.9");
InstallableUnitDescription wxDesc = createIUDesc(wxId, wxVersion, "Wascana wxWidgets Library", wxLic);
IInstallableUnit wxIU = createIU(wxDesc, wxId, wxVersion,
"http://downloads.sourceforge.net/wascana/wxMSW-mingw-2.8.9.zip",
mingwSubdir,
InstallArtifactRepository.ZIP_COMPRESSION);
// Libraries toolchain category // Libraries toolchain category
InstallableUnitDescription libsIUDesc = createIUDesc("wascana.libs", wascanaVersion, "Libraries", null);; InstallableUnitDescription libsIUDesc = createIUDesc("wascana.libs", wascanaVersion, "Libraries", null);;
libsIUDesc.setProperty(IInstallableUnit.PROP_TYPE_CATEGORY, Boolean.TRUE.toString()); libsIUDesc.setProperty(IInstallableUnit.PROP_TYPE_CATEGORY, Boolean.TRUE.toString());
RequiredCapability[] libsReqs = new RequiredCapability[] { RequiredCapability[] libsReqs = new RequiredCapability[] {
MetadataFactory.createRequiredCapability( createRequiredCap(zlibId),
IInstallableUnit.NAMESPACE_IU_ID, createRequiredCap(sdlId),
zlibIU.getId(), new VersionRange(null), null, false, false), createRequiredCap(wxId),
MetadataFactory.createRequiredCapability(
IInstallableUnit.NAMESPACE_IU_ID,
sdlIU.getId(), new VersionRange(null), null, false, false),
}; };
libsIUDesc.setRequiredCapabilities(libsReqs); libsIUDesc.setRequiredCapabilities(libsReqs);
IInstallableUnit libsIU = MetadataFactory.createInstallableUnit(libsIUDesc); IInstallableUnit libsIU = MetadataFactory.createInstallableUnit(libsIUDesc);
@ -228,6 +221,7 @@ public class MinGWGenerator implements IApplication {
msysIU, msysIU,
mingwToolchainIU, mingwToolchainIU,
wxIU,
zlibIU, zlibIU,
sdlIU, sdlIU,
libsIU libsIU
@ -272,6 +266,12 @@ public class MinGWGenerator implements IApplication {
return MetadataFactory.createInstallableUnit(iuDesc); return MetadataFactory.createInstallableUnit(iuDesc);
} }
private RequiredCapability createRequiredCap(String id) {
return MetadataFactory.createRequiredCapability(
IInstallableUnit.NAMESPACE_IU_ID,
id, new VersionRange(null), null, false, false);
}
public static final String publicDomain = "This package is placed in the Public Domain." public static final String publicDomain = "This package is placed in the Public Domain."
+ " No warranty is given; refer to the header files within the package."; + " No warranty is given; refer to the header files within the package.";
@ -286,4 +286,9 @@ public class MinGWGenerator implements IApplication {
public static final String zlibLicURL = "http://www.zlib.net/zlib_license.html"; public static final String zlibLicURL = "http://www.zlib.net/zlib_license.html";
public static final String zlibLicText = "http://www.zlib.net/zlib_license.html"; public static final String zlibLicText = "http://www.zlib.net/zlib_license.html";
public static final String wxLicURL = "http://www.wxwidgets.org/about/newlicen.htm";
public static final String wxLicText = "wxWindows license\n" + wxLicURL;
} }