hicolor icons and mimetypes.

This commit is contained in:
Roman Telezhynskyi 2023-01-10 19:19:11 +02:00
parent 2c38bb5cee
commit 282f9c789a
4 changed files with 280 additions and 8 deletions

View File

@ -108,6 +108,76 @@ Module {
qbs.installDir: "share/icons/hicolor/scalable/apps" qbs.installDir: "share/icons/hicolor/scalable/apps"
} }
Group {
condition: product.freedesktop2._fdoSupported
fileTagsFilter: [ "freedesktop.48x48AppsIcons" ]
qbs.install: true
qbs.installDir: "share/icons/hicolor/48x48/apps"
}
Group {
condition: product.freedesktop2._fdoSupported
fileTagsFilter: [ "freedesktop.64x64AppsIcons" ]
qbs.install: true
qbs.installDir: "share/icons/hicolor/64x64/apps"
}
Group {
condition: product.freedesktop2._fdoSupported
fileTagsFilter: [ "freedesktop.128x128AppsIcons" ]
qbs.install: true
qbs.installDir: "share/icons/hicolor/128x128/apps"
}
Group {
condition: product.freedesktop2._fdoSupported
fileTagsFilter: [ "freedesktop.256x256AppsIcons" ]
qbs.install: true
qbs.installDir: "share/icons/hicolor/256x256/apps"
}
Group {
condition: product.freedesktop2._fdoSupported
fileTagsFilter: [ "freedesktop.512x512AppsIcons" ]
qbs.install: true
qbs.installDir: "share/icons/hicolor/512x512/apps"
}
Group {
condition: product.freedesktop2._fdoSupported
fileTagsFilter: [ "freedesktop.48x48MimetypesIcons" ]
qbs.install: true
qbs.installDir: "share/icons/hicolor/48x48/mimetypes"
}
Group {
condition: product.freedesktop2._fdoSupported
fileTagsFilter: [ "freedesktop.64x64MimetypesIcons" ]
qbs.install: true
qbs.installDir: "share/icons/hicolor/64x64/mimetypes"
}
Group {
condition: product.freedesktop2._fdoSupported
fileTagsFilter: [ "freedesktop.128x128MimetypesIcons" ]
qbs.install: true
qbs.installDir: "share/icons/hicolor/128x128/mimetypes"
}
Group {
condition: product.freedesktop2._fdoSupported
fileTagsFilter: [ "freedesktop.256x256MimetypesIcons" ]
qbs.install: true
qbs.installDir: "share/icons/hicolor/256x256/mimetypes"
}
Group {
condition: product.freedesktop2._fdoSupported
fileTagsFilter: [ "freedesktop.512x512MimetypesIcons" ]
qbs.install: true
qbs.installDir: "share/icons/hicolor/512x512/mimetypes"
}
FileTagger { FileTagger {
patterns: [ "*.metainfo.xml", "*.appdata.xml" ] patterns: [ "*.metainfo.xml", "*.appdata.xml" ]
fileTags: [ "freedesktop.appstream" ] fileTags: [ "freedesktop.appstream" ]

View File

@ -278,4 +278,74 @@ VToolApp {
return [cmd]; return [cmd];
} }
} }
Group {
name: "48x48/apps"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "48x48", "apps", FileInfo.pathSeparator())
files: "puzzle.png"
fileTags: "freedesktop.48x48AppsIcons"
}
Group {
name: "64x64/apps"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "64x64", "apps", FileInfo.pathSeparator())
files: "puzzle.png"
fileTags: "freedesktop.64x64AppsIcons"
}
Group {
name: "128x128/apps"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "128x128", "apps", FileInfo.pathSeparator())
files: "puzzle.png"
fileTags: "freedesktop.128x128AppsIcons"
}
Group {
name: "256x256/apps"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "256x256", "apps", FileInfo.pathSeparator())
files: "puzzle.png"
fileTags: "freedesktop.256x256AppsIcons"
}
Group {
name: "512x512/apps"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "512x512", "apps", FileInfo.pathSeparator())
files: "puzzle.png"
fileTags: "freedesktop.512x512AppsIcons"
}
Group {
name: "apps48x48/mimetypes"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "48x48", "mimetypes", FileInfo.pathSeparator())
files: "application-x-valentina-layout.png"
fileTags: "freedesktop.48x48MimetypesIcons"
}
Group {
name: "apps64x64/mimetypes"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "64x64", "mimetypes", FileInfo.pathSeparator())
files: "application-x-valentina-layout.png"
fileTags: "freedesktop.64x64MimetypesIcons"
}
Group {
name: "apps128x128/mimetypes"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "128x128", "mimetypes", FileInfo.pathSeparator())
files: "application-x-valentina-layout.png"
fileTags: "freedesktop.128x128MimetypesIcons"
}
Group {
name: "apps256x256/mimetypes"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "256x256", "mimetypes", FileInfo.pathSeparator())
files: "application-x-valentina-layout.png"
fileTags: "freedesktop.256x256MimetypesIcons"
}
Group {
name: "apps512x512/mimetypes"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "512x512", "mimetypes", FileInfo.pathSeparator())
files: "application-x-valentina-layout.png"
fileTags: "freedesktop.512x512MimetypesIcons"
}
} }

View File

@ -159,4 +159,74 @@ VToolApp {
qbs.install: true qbs.install: true
qbs.installDir: buildconfig.installDataPath + FileInfo.pathSeparator() + "tables" + FileInfo.pathSeparator() + "templates" qbs.installDir: buildconfig.installDataPath + FileInfo.pathSeparator() + "tables" + FileInfo.pathSeparator() + "templates"
} }
Group {
name: "48x48/apps"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "48x48", "apps", FileInfo.pathSeparator())
files: "tape.png"
fileTags: "freedesktop.48x48AppsIcons"
}
Group {
name: "64x64/apps"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "64x64", "apps", FileInfo.pathSeparator())
files: "tape.png"
fileTags: "freedesktop.64x64AppsIcons"
}
Group {
name: "128x128/apps"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "128x128", "apps", FileInfo.pathSeparator())
files: "tape.png"
fileTags: "freedesktop.128x128AppsIcons"
}
Group {
name: "256x256/apps"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "256x256", "apps", FileInfo.pathSeparator())
files: "tape.png"
fileTags: "freedesktop.256x256AppsIcons"
}
Group {
name: "512x512/apps"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "512x512", "apps", FileInfo.pathSeparator())
files: "tape.png"
fileTags: "freedesktop.512x512AppsIcons"
}
Group {
name: "apps48x48/mimetypes"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "48x48", "mimetypes", FileInfo.pathSeparator())
files: ["application-x-valentina-i-measurements.png", "application-x-valentina-s-measurements.png"]
fileTags: "freedesktop.48x48MimetypesIcons"
}
Group {
name: "apps64x64/mimetypes"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "64x64", "mimetypes", FileInfo.pathSeparator())
files: ["application-x-valentina-i-measurements.png", "application-x-valentina-s-measurements.png"]
fileTags: "freedesktop.64x64MimetypesIcons"
}
Group {
name: "apps128x128/mimetypes"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "128x128", "mimetypes", FileInfo.pathSeparator())
files: ["application-x-valentina-i-measurements.png", "application-x-valentina-s-measurements.png"]
fileTags: "freedesktop.128x128MimetypesIcons"
}
Group {
name: "apps256x256/mimetypes"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "256x256", "mimetypes", FileInfo.pathSeparator())
files: ["application-x-valentina-i-measurements.png", "application-x-valentina-s-measurements.png"]
fileTags: "freedesktop.256x256MimetypesIcons"
}
Group {
name: "apps512x512/mimetypes"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "512x512", "mimetypes", FileInfo.pathSeparator())
files: ["application-x-valentina-i-measurements.png", "application-x-valentina-s-measurements.png"]
fileTags: "freedesktop.512x512MimetypesIcons"
}
} }

View File

@ -155,14 +155,6 @@ VToolApp {
bundle.isBundle: false bundle.isBundle: false
} }
Group {
name: "valentina.png"
condition: qbs.targetOS.contains("linux")
files: [ "../../../share/icons/64x64/apps/valentina.png" ]
qbs.install: true
qbs.installDir: "share/pixmaps"
}
Export { Export {
Depends { name: "cpp" } Depends { name: "cpp" }
cpp.defines: { cpp.defines: {
@ -403,4 +395,74 @@ VToolApp {
return [cmd]; return [cmd];
} }
} }
Group {
name: "48x48/apps"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "48x48", "apps", FileInfo.pathSeparator())
files: "valentina.png"
fileTags: "freedesktop.48x48AppsIcons"
}
Group {
name: "64x64/apps"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "64x64", "apps", FileInfo.pathSeparator())
files: "valentina.png"
fileTags: "freedesktop.64x64AppsIcons"
}
Group {
name: "128x128/apps"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "128x128", "apps", FileInfo.pathSeparator())
files: "valentina.png"
fileTags: "freedesktop.128x128AppsIcons"
}
Group {
name: "256x256/apps"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "256x256", "apps", FileInfo.pathSeparator())
files: "valentina.png"
fileTags: "freedesktop.256x256AppsIcons"
}
Group {
name: "512x512/apps"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "512x512", "apps", FileInfo.pathSeparator())
files: "valentina.png"
fileTags: "freedesktop.512x512AppsIcons"
}
Group {
name: "apps48x48/mimetypes"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "48x48", "mimetypes", FileInfo.pathSeparator())
files: "application-x-valentina-pattern.png"
fileTags: "freedesktop.48x48MimetypesIcons"
}
Group {
name: "apps64x64/mimetypes"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "64x64", "mimetypes", FileInfo.pathSeparator())
files: "application-x-valentina-pattern.png"
fileTags: "freedesktop.64x64MimetypesIcons"
}
Group {
name: "apps128x128/mimetypes"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "128x128", "mimetypes", FileInfo.pathSeparator())
files: "application-x-valentina-pattern.png"
fileTags: "freedesktop.128x128MimetypesIcons"
}
Group {
name: "apps256x256/mimetypes"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "256x256", "mimetypes", FileInfo.pathSeparator())
files: "application-x-valentina-pattern.png"
fileTags: "freedesktop.256x256MimetypesIcons"
}
Group {
name: "apps512x512/mimetypes"
prefix: FileInfo.joinPaths(project.sourceDirectory, "share", "icons", "512x512", "mimetypes", FileInfo.pathSeparator())
files: "application-x-valentina-pattern.png"
fileTags: "freedesktop.512x512MimetypesIcons"
}
} }