diff options
author | Oliver Wolff <oliver.wolff@qt.io> | 2020-06-05 09:24:37 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2020-06-06 20:25:49 +0200 |
commit | 45b0f1be686cfba8dcecb9be5c875cae59c69276 (patch) | |
tree | 363dfd46575d147206267d854ce14747157f432e /qmake/generators/win32/msbuild_objectmodel.cpp | |
parent | aa81b90738ce9faee5e433617c8bd243cb238729 (diff) |
Remove winrt
Macros and the await helper function from qfunctions_winrt(_p).h are
needed in other Qt modules which use UWP APIs on desktop windows.
Task-number: QTBUG-84434
Change-Id: Ice09c11436ad151c17bdccd2c7defadd08c13925
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'qmake/generators/win32/msbuild_objectmodel.cpp')
-rw-r--r-- | qmake/generators/win32/msbuild_objectmodel.cpp | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/qmake/generators/win32/msbuild_objectmodel.cpp b/qmake/generators/win32/msbuild_objectmodel.cpp index 82c0983272..4129482990 100644 --- a/qmake/generators/win32/msbuild_objectmodel.cpp +++ b/qmake/generators/win32/msbuild_objectmodel.cpp @@ -612,16 +612,6 @@ void VCXProjectWriter::write(XmlOutput &xml, VCProject &tool) << tag("ItemGroup") << attrTag("Label", "ProjectConfigurations"); - bool isWinRT = false; - for (int i = 0; i < tool.SingleProjects.count(); ++i) { - xml << tag("ProjectConfiguration") - << attrTag("Include" , tool.SingleProjects.at(i).Configuration.Name) - << tagValue("Configuration", tool.SingleProjects.at(i).Configuration.ConfigurationName) - << tagValue("Platform", tool.SingleProjects.at(i).PlatformName) - << closetag(); - isWinRT = isWinRT || tool.SingleProjects.at(i).Configuration.WinRT; - } - xml << closetag() << tag("PropertyGroup") << attrTag("Label", "Globals") @@ -629,13 +619,6 @@ void VCXProjectWriter::write(XmlOutput &xml, VCProject &tool) << tagValue("RootNamespace", tool.Name) << tagValue("Keyword", tool.Keyword); - if (isWinRT) { - xml << tagValue("MinimumVisualStudioVersion", tool.Version) - << tagValue("DefaultLanguage", "en") - << tagValue("AppContainerApplication", "true") - << tagValue("ApplicationType", "Windows Store") - << tagValue("ApplicationTypeRevision", tool.SdkVersion); - } if (!tool.WindowsTargetPlatformVersion.isEmpty()) xml << tagValue("WindowsTargetPlatformVersion", tool.WindowsTargetPlatformVersion); if (!tool.WindowsTargetPlatformMinVersion.isEmpty()) @@ -825,41 +808,6 @@ void VCXProjectWriter::write(XmlOutput &xml, VCProject &tool) } outputFilter(tool, xml, xmlFilter, "Root Files"); - // App manifest - if (isWinRT) { - const QString manifest = QStringLiteral("Package.appxmanifest"); - - // Find all icons referenced in the manifest - QSet<QString> icons; - QFile manifestFile(Option::output_dir + QLatin1Char('/') + manifest); - if (manifestFile.open(QFile::ReadOnly)) { - const QString contents = manifestFile.readAll(); - QRegularExpression regexp("[\\\\/a-zA-Z0-9_\\-\\!]*\\.(png|jpg|jpeg)"); - int pos = 0; - while (pos > -1) { - QRegularExpressionMatch m; - pos = contents.indexOf(regexp, pos, &m); - if (pos >= 0) { - const QString match = m.captured(0); - icons.insert(match); - pos += match.length(); - } - } - } - - // Write out manifest + icons as content items - xml << tag(_ItemGroup) - << tag("AppxManifest") - << attrTag("Include", manifest) - << closetag(); - for (const QString &icon : qAsConst(icons)) { - xml << tag("Image") - << attrTag("Include", icon) - << closetag(); - } - xml << closetag(); - } - xml << import("Project", "$(VCTargetsPath)\\Microsoft.Cpp.targets") << tag("ImportGroup") << attrTag("Label", "ExtensionTargets") |