Commit 029fd5a5 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Streamline mimetypes.xml files

Change-Id: I4f2a28d4732ea496f574e5f51fb1e1633ebca99d
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 67c3fed2
......@@ -44,6 +44,11 @@ Product {
fileTags: ["pluginSpecIn"]
}
Group {
name: "MimeTypes"
files: [ "*.mimetypes.xml" ]
}
Group {
fileTagsFilter: product.type
qbs.install: true
......
<RCC>
<qresource prefix="/autotoolsproject" >
<file>AutotoolsProject.mimetypes.xml</file>
<file>AutotoolsProjectManager.mimetypes.xml</file>
</qresource>
</RCC>
......@@ -32,5 +32,3 @@ SOURCES = autotoolsprojectplugin.cpp\
makefileparserthread.cpp\
makefileparser.cpp
RESOURCES += autotoolsproject.qrc
OTHER_FILES += AutotoolsProject.mimetypes.xml
......@@ -12,7 +12,6 @@ QtcPlugin {
Depends { name: "CppTools" }
files: [
"AutotoolsProject.mimetypes.xml",
"autogenstep.cpp",
"autogenstep.h",
"autoreconfstep.cpp",
......
......@@ -59,7 +59,7 @@ bool AutotoolsProjectPlugin::initialize(const QStringList &arguments,
{
Q_UNUSED(arguments);
if (!Core::ICore::mimeDatabase()->addMimeTypes(QLatin1String(":autotoolsproject/AutotoolsProject.mimetypes.xml"), errorString))
if (!Core::ICore::mimeDatabase()->addMimeTypes(QLatin1String(":autotoolsproject/AutotoolsProjectManager.mimetypes.xml"), errorString))
return false;
addAutoReleasedObject(new AutotoolsBuildConfigurationFactory);
......
......@@ -35,5 +35,3 @@ FORMS += checkoutdialog.ui \
versionselector.ui
RESOURCES += clearcase.qrc
OTHER_FILES += ClearCase.mimetypes.xml
......@@ -17,7 +17,6 @@ QtcPlugin {
Depends { name: "Locator" }
files: [
"ClearCase.mimetypes.xml",
"activityselector.cpp",
"activityselector.h",
"annotationhighlighter.cpp",
......
<RCC>
<qresource prefix="/cmakeproject">
<file>CMakeProject.mimetypes.xml</file>
<file>CMakeProjectManager.mimetypes.xml</file>
</qresource>
</RCC>
......@@ -34,7 +34,3 @@ SOURCES = cmakeproject.cpp \
cmakevalidator.cpp
RESOURCES += cmakeproject.qrc
FORMS +=
OTHER_FILES += CMakeProject.mimetypes.xml
......@@ -19,7 +19,7 @@ QtcPlugin {
]
files: [
"CMakeProject.mimetypes.xml",
"CMakeProjectManager.mimetypes.xml",
"cmakebuildconfiguration.cpp",
"cmakebuildconfiguration.h",
"cmakeeditor.cpp",
......
......@@ -57,7 +57,7 @@ CMakeProjectPlugin::~CMakeProjectPlugin()
bool CMakeProjectPlugin::initialize(const QStringList & /*arguments*/, QString *errorMessage)
{
if (!Core::ICore::mimeDatabase()->addMimeTypes(QLatin1String(":cmakeproject/CMakeProject.mimetypes.xml"), errorMessage))
if (!Core::ICore::mimeDatabase()->addMimeTypes(QLatin1String(":cmakeproject/CMakeProjectManager.mimetypes.xml"), errorMessage))
return false;
CMakeSettingsPage *cmp = new CMakeSettingsPage();
addAutoReleasedObject(cmp);
......
......@@ -36,7 +36,6 @@ SOURCES += cppeditorplugin.cpp \
cpptypehierarchy.cpp
RESOURCES += cppeditor.qrc
OTHER_FILES += CppEditor.mimetypes.xml
equals(TEST, 1) {
SOURCES += \
......
......@@ -17,7 +17,6 @@ QtcPlugin {
cpp.includePaths: base.concat("../../libs/3rdparty")
files: [
"CppEditor.mimetypes.xml",
"cppautocompleter.cpp",
"cppautocompleter.h",
"cppclasswizard.cpp",
......
......@@ -26,5 +26,3 @@ SOURCES += annotationhighlighter.cpp \
FORMS += settingspage.ui
RESOURCES += cvs.qrc
OTHER_FILES += CVS.mimetypes.xml
......@@ -13,7 +13,6 @@ QtcPlugin {
Depends { name: "Locator" }
files: [
"CVS.mimetypes.xml",
"annotationhighlighter.cpp",
"annotationhighlighter.h",
"checkoutwizard.cpp",
......
......@@ -64,4 +64,4 @@ SOURCES += formeditorplugin.cpp \
RESOURCES += designer.qrc
OTHER_FILES += Designer.mimetypes.xml README.txt
OTHER_FILES += README.txt
......@@ -20,7 +20,6 @@ QtcPlugin {
])
files: [
"Designer.mimetypes.xml",
"README.txt",
"codemodelhelpers.cpp",
"codemodelhelpers.h",
......
<RCC>
<qresource prefix="/genericproject" >
<file>GenericProject.mimetypes.xml</file>
<file>GenericProjectManager.mimetypes.xml</file>
</qresource>
</RCC>
......@@ -25,5 +25,3 @@ SOURCES = genericproject.cpp \
filesselectionwizardpage.cpp
RESOURCES += genericproject.qrc
FORMS += genericmakestep.ui
OTHER_FILES += GenericProject.mimetypes.xml
......@@ -16,7 +16,6 @@ QtcPlugin {
Depends { name: "QtSupport" }
files: [
"GenericProject.mimetypes.xml",
"filesselectionwizardpage.cpp",
"filesselectionwizardpage.h",
"genericbuildconfiguration.cpp",
......
......@@ -71,7 +71,7 @@ bool GenericProjectPlugin::initialize(const QStringList &, QString *errorMessage
Core::MimeDatabase *mimeDB = ICore::mimeDatabase();
const QLatin1String mimetypesXml(":genericproject/GenericProject.mimetypes.xml");
const QLatin1String mimetypesXml(":genericproject/GenericProjectManager.mimetypes.xml");
if (! mimeDB->addMimeTypes(mimetypesXml, errorMessage))
return false;
......
......@@ -64,6 +64,4 @@ include(gitorious/gitorious.pri)
RESOURCES += \
git.qrc
OTHER_FILES += Git.mimetypes.xml
include(gerrit/gerrit.pri)
......@@ -14,7 +14,6 @@ QtcPlugin {
Depends { name: "Locator" }
files: [
"Git.mimetypes.xml",
"annotationhighlighter.cpp",
"annotationhighlighter.h",
"branchadddialog.cpp",
......
......@@ -31,5 +31,4 @@ glslhoverhandler.cpp \
glslcompletionassist.cpp \
reuse.cpp
OTHER_FILES += GLSLEditor.mimetypes.xml
RESOURCES += glsleditor.qrc
......@@ -14,7 +14,6 @@ QtcPlugin {
Depends { name: "CPlusPlus" }
files: [
"GLSLEditor.mimetypes.xml",
"glslautocompleter.cpp",
"glslautocompleter.h",
"glslcompletionassist.cpp",
......
......@@ -20,9 +20,6 @@ SOURCES += \
RESOURCES += \
imageviewer.qrc
OTHER_FILES += \
ImageViewer.mimetypes.xml
greaterThan(QT_MAJOR_VERSION, 4) {
!isEmpty(QT.svg.name): QT += svg
else: DEFINES += QT_NO_SVG
......
......@@ -9,7 +9,6 @@ QtcPlugin {
Depends { name: "Core" }
files: [
"ImageViewer.mimetypes.xml",
"imageview.cpp",
"imageview.h",
"imageviewer.cpp",
......
......@@ -32,5 +32,3 @@ FORMS += settingspage.ui \
submitpanel.ui
RESOURCES += perforce.qrc
OTHER_FILES += Perforce.mimetypes.xml
......@@ -13,7 +13,6 @@ QtcPlugin {
Depends { name: "Locator" }
files: [
"Perforce.mimetypes.xml",
"annotationhighlighter.cpp",
"annotationhighlighter.h",
"changenumberdialog.cpp",
......
......@@ -3,9 +3,6 @@ include(../../qtcreatorplugin.pri)
DEFINES += \
PYTHONEDITOR_LIBRARY
OTHER_FILES += \
pythoneditor.mimetypes.xml
RESOURCES += \
pythoneditorplugin.qrc
......
......@@ -15,7 +15,6 @@ QtcPlugin {
files: [
"pythoneditor.cpp",
"pythoneditor.h",
"pythoneditor.mimetypes.xml",
"pythoneditor_global.h",
"pythoneditorconstants.h",
"pythoneditorfactory.cpp",
......
......@@ -72,7 +72,7 @@ const char EN_PY_CPPMODULE_DESCRIPTION[] =
* MIME type
******************************************************************************/
const char C_PY_MIMETYPE[] = "text/x-python";
const char RC_PY_MIME_XML[] = ":/pythoneditor/pythoneditor.mimetypes.xml";
const char RC_PY_MIME_XML[] = ":/pythoneditor/PythonEditor.mimetypes.xml";
const char C_PY_MIME_ICON[] = "text-x-python";
} // namespace Constants
......
<RCC>
<qresource prefix="/pythoneditor">
<file>pythoneditor.mimetypes.xml</file>
<file>PythonEditor.mimetypes.xml</file>
</qresource>
</RCC>
<RCC>
<qresource prefix="/qmlproject">
<file>QmlProject.mimetypes.xml</file>
<file>QmlProjectManager.mimetypes.xml</file>
<file>images/qmlfolder.png</file>
<file>images/qmlproject.png</file>
<file>images/qml_wizard.png</file>
......
......@@ -34,5 +34,3 @@ SOURCES += qmlproject.cpp \
qmlapplicationwizard.cpp
RESOURCES += qmlproject.qrc
OTHER_FILES += QmlProject.mimetypes.xml
......@@ -21,7 +21,6 @@ QtcPlugin {
"qmlapp.h",
"qmlapplicationwizard.cpp",
"qmlapplicationwizard.h",
"QmlProject.mimetypes.xml",
"qmlproject.cpp",
"qmlproject.h",
"qmlproject.qrc",
......
......@@ -62,7 +62,7 @@ bool QmlProjectPlugin::initialize(const QStringList &, QString *errorMessage)
Core::MimeDatabase *mimeDB = Core::ICore::mimeDatabase();
const QLatin1String mimetypesXml(":/qmlproject/QmlProject.mimetypes.xml");
const QLatin1String mimetypesXml(":/qmlproject/QmlProjectManager.mimetypes.xml");
if (! mimeDB->addMimeTypes(mimetypesXml, errorMessage))
return false;
......
......@@ -146,5 +146,3 @@ RESOURCES += qt4projectmanager.qrc \
include(qt-desktop/qt-desktop.pri)
include(customwidgetwizard/customwidgetwizard.pri)
OTHER_FILES += Qt4ProjectManager.mimetypes.xml
......@@ -26,7 +26,6 @@ QtcPlugin {
]
files: [
"Qt4ProjectManager.mimetypes.xml",
"addlibrarywizard.cpp",
"addlibrarywizard.h",
"buildconfigurationinfo.h",
......
......@@ -63,6 +63,3 @@ FORMS += \
RESOURCES += \
qtsupport.qrc
OTHER_FILES += \
QtSupport.mimetypes.xml
......@@ -108,7 +108,6 @@ QtcPlugin {
"images/qml.png",
"images/qt_project.png",
"images/qt_qrc.png",
"QtSupport.mimetypes.xml",
]
Export {
......
......@@ -15,5 +15,3 @@ resourcewizard.cpp \
resourceeditorw.cpp
RESOURCES += resourceeditor.qrc
OTHER_FILES += ResourceEditor.mimetypes.xml
......@@ -12,7 +12,6 @@ QtcPlugin {
cpp.includePaths: base.concat("qrceditor")
files: [
"ResourceEditor.mimetypes.xml",
"resourceeditor.qrc",
"resourceeditorconstants.h",
"resourceeditorfactory.cpp",
......
......@@ -24,5 +24,3 @@ SOURCES += annotationhighlighter.cpp \
FORMS += settingspage.ui
RESOURCES += subversion.qrc
OTHER_FILES += Subversion.mimetypes.xml
......@@ -13,7 +13,6 @@ QtcPlugin {
Depends { name: "Locator" }
files: [
"Subversion.mimetypes.xml",
"annotationhighlighter.cpp",
"annotationhighlighter.h",
"checkoutwizard.cpp",
......
......@@ -13,5 +13,3 @@ SOURCES += tasklistplugin.cpp \
taskfilefactory.cpp \
RESOURCES += tasklist.qrc
OTHER_FILES += TaskList.mimetypes.xml
......@@ -13,7 +13,6 @@ QtcPlugin {
Depends { name: "TextEditor" }
files: [
"TaskList.mimetypes.xml",
"stopmonitoringhandler.cpp",
"stopmonitoringhandler.h",
"taskfile.cpp",
......
......@@ -237,5 +237,3 @@ FORMS += \
tabsettingswidget.ui \
codestyleselectorwidget.ui
RESOURCES += texteditor.qrc
OTHER_FILES += TextEditor.mimetypes.xml
......@@ -18,7 +18,6 @@ QtcPlugin {
])
files: [
"TextEditor.mimetypes.xml",
"autocompleter.cpp",
"autocompleter.h",
"basefilefind.cpp",
......
......@@ -70,5 +70,3 @@ FORMS += commonsettingspage.ui \
basecheckoutwizardpage.ui \
cleandialog.ui \
submiteditorwidget.ui
OTHER_FILES += VcsBase.mimetypes.xml
......@@ -14,7 +14,6 @@ QtcPlugin {
Depends { name: "CPlusPlus" }
files: [
"VcsBase.mimetypes.xml",
"baseannotationhighlighter.cpp",
"baseannotationhighlighter.h",
"basecheckoutwizard.cpp",
......
......@@ -136,5 +136,8 @@ linux*:QMAKE_LFLAGS += $$QMAKE_LFLAGS_NOUNDEF
INSTALLS += target pluginspec
}
MIMETYPES = $$_PRO_FILE_PWD_/$${TARGET}.mimetypes.xml
exists($$MIMETYPES):OTHER_FILES += $$MIMETYPES
TARGET = $$qtLibraryName($$TARGET)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment