forked from qt-creator/qt-creator
Utils: Use new mimetypes implementation when using qbs
It is default for the cmake build, so switch for qbs as well. Change-Id: Icb325c58e587ecee2c621bf68c191869520e963a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -5,7 +5,9 @@ Project {
|
|||||||
name: "Utils"
|
name: "Utils"
|
||||||
|
|
||||||
QtcLibrary {
|
QtcLibrary {
|
||||||
cpp.includePaths: base.concat("mimetypes", ".")
|
property bool useNewMimeDatabase: true
|
||||||
|
|
||||||
|
cpp.includePaths: base.concat((useNewMimeDatabase ? "mimetypes2" : "mimetypes"), ".")
|
||||||
cpp.defines: base.concat([
|
cpp.defines: base.concat([
|
||||||
"UTILS_LIBRARY"
|
"UTILS_LIBRARY"
|
||||||
])
|
])
|
||||||
@@ -394,7 +396,7 @@ Project {
|
|||||||
|
|
||||||
Group {
|
Group {
|
||||||
name: "MimeTypes"
|
name: "MimeTypes"
|
||||||
prefix: "mimetypes/"
|
prefix: useNewMimeDatabase ? "mimetypes2/" : "mimetypes/"
|
||||||
files: [
|
files: [
|
||||||
"mimedatabase.cpp",
|
"mimedatabase.cpp",
|
||||||
"mimedatabase.h",
|
"mimedatabase.h",
|
||||||
@@ -439,7 +441,8 @@ Project {
|
|||||||
|
|
||||||
Export {
|
Export {
|
||||||
Depends { name: "Qt"; submodules: ["concurrent", "widgets" ] }
|
Depends { name: "Qt"; submodules: ["concurrent", "widgets" ] }
|
||||||
cpp.includePaths: base.concat("mimetypes")
|
cpp.includePaths: base.concat(exportingProduct.useNewMimeDatabase ? "mimetypes2"
|
||||||
|
: "mimetypes")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user