Warning, /sdk/cutehmi/qbs/imports/cutehmi/Extension.qbs is written in an unsupported language. File is not indexed.
0001 import qbs 0002 import qbs.FileInfo 0003 0004 import "CommonProduct.qbs" as CommonProduct 0005 0006 /** 0007 Extension product. This item denotes simple QML extension. No C++ artifacts are generated for the product. Use CppExtension item if 0008 extension is using C++ code. 0009 */ 0010 CommonProduct { 0011 cutehmiType: "extension" 0012 0013 condition: project.buildExtensions 0014 0015 baseName: cutehmi.conventions.functions.baseName(name) 0016 0017 major: cutehmi.conventions.functions.major(name) 0018 0019 property string extensionType: "simple" 0020 0021 property string installSourceBase: sourceDirectory 0022 0023 property string dedicatedInstallSubdir: cutehmi.dirs.extensionsInstallSubdir + "/" + FileInfo.relativePath(cutehmi.dirs.extensionsSourceDir, sourceDirectory) 0024 0025 //<qbs-imports-cutehmi-3.workaround target="Qbs" cuase="bug_or_missing"> 0026 // Using 'qmlImportPaths' instead of 'qmlDesignerImportPaths' for puppets. 0027 // property stringList qmlDesignerImportPaths: [cutehmi.dirs.installDir + "/" + cutehmi.dirs.puppetsInstallSubdir] // QML import paths for QtCreator's Designer. 0028 property stringList qmlImportPaths: [cutehmi.dirs.installDir + "/" + cutehmi.dirs.puppetsInstallSubdir, 0029 cutehmi.dirs.installDir + "/" + cutehmi.dirs.extensionsInstallSubdir] // QML import paths for QtCreator. 0030 //</qbs-imports-cutehmi-3.workaround> 0031 0032 Depends { name: "cutehmi.conventions" } 0033 0034 Depends { name: "cutehmi.dirs" } 0035 0036 //<cutehmi.qmlplugindump.0-1.workaround target="Qt" cause="missing"> 0037 Depends { name: "cutehmi.qmlplugindump.0"; required: false } 0038 //</cutehmi.qmlplugindump.0-1.workaround> 0039 0040 Depends { name: "cutehmi.metadata" } 0041 0042 Depends { name: "cutehmi.windeployqt"; condition: project.windeployqt } 0043 //<qbs-cutehmi.windeployqt-1.workaround target="windeployqt" cause="missing"> 0044 Depends { name: "CuteHMI.Workarounds.windeployqt.0"; condition: project.windeployqt 0045 && product.cutehmiType === "extension" 0046 && product.extensionType === "simple" 0047 } 0048 //</qbs-cutehmi.windeployqt-1.workaround> 0049 0050 FileTagger { 0051 patterns: ["*.bdf", "*.otf", "*.pcf", "*.ttf"] 0052 fileTags: ["Fonts"] 0053 } 0054 0055 Group { 0056 name: "Fonts" 0057 fileTagsFilter: ["Fonts"] 0058 qbs.install: true 0059 qbs.installSourceBase: installSourceBase 0060 qbs.installDir: dedicatedInstallSubdir 0061 } 0062 0063 FileTagger { 0064 patterns: ["*.bmp", "*.gif", "*.ico", "*.jpg", "*.png", "*.svg"] 0065 fileTags: ["Images"] 0066 } 0067 0068 Group { 0069 name: "Images" 0070 fileTagsFilter: ["Images"] 0071 qbs.install: true 0072 qbs.installSourceBase: installSourceBase 0073 qbs.installDir: dedicatedInstallSubdir 0074 } 0075 0076 FileTagger { 0077 patterns: "*.metainfo" 0078 fileTags: ["metainfo"] 0079 } 0080 0081 Group { 0082 name: "Metainfo" 0083 fileTagsFilter: ["metainfo"] 0084 qbs.install: true 0085 qbs.installSourceBase: installSourceBase 0086 qbs.installDir: dedicatedInstallSubdir 0087 } 0088 0089 FileTagger { 0090 patterns: "*.js" 0091 fileTags: ["js"] 0092 } 0093 0094 FileTagger { 0095 patterns: "*.qml" 0096 fileTags: ["qml"] 0097 } 0098 0099 FileTagger { 0100 patterns: "*.qmltypes" 0101 fileTags: ["qmltypes"] 0102 } 0103 0104 FileTagger { 0105 patterns: "qmldir" 0106 fileTags: ["qmldir"] 0107 } 0108 0109 Group { 0110 name: "QML" 0111 fileTagsFilter: ["js", "qml", "qmldir", "qmltypes"] 0112 qbs.install: true 0113 qbs.installSourceBase: installSourceBase 0114 qbs.installDir: dedicatedInstallSubdir 0115 } 0116 0117 Group { 0118 name: "Readme files" 0119 fileTagsFilter: ["ReadmeFiles"] 0120 qbs.install: true 0121 qbs.installSourceBase: installSourceBase 0122 qbs.installDir: dedicatedInstallSubdir 0123 } 0124 0125 Group { 0126 name: "Translations" 0127 fileTagsFilter: ["qm"] 0128 qbs.install: true 0129 qbs.installDir: cutehmi.dirs.translationsInstallSubdir 0130 } 0131 0132 FileTagger { 0133 patterns: "*.ini" 0134 fileTags: ["ini"] 0135 } 0136 0137 Group { 0138 name: "Ini files" 0139 fileTagsFilter: ["ini"] 0140 qbs.install: true 0141 qbs.installSourceBase: installSourceBase 0142 qbs.installDir: dedicatedInstallSubdir 0143 } 0144 0145 FileTagger { 0146 patterns: ["*.sql"] 0147 fileTags: ["sql"] 0148 } 0149 0150 Group { 0151 name: "SQL" 0152 fileTagsFilter: ["sql"] 0153 qbs.install: true 0154 qbs.installSourceBase: installSourceBase 0155 qbs.installDir: dedicatedInstallSubdir 0156 } 0157 0158 Group { 0159 name: "Metadata" 0160 fileTagsFilter: ["cutehmi.metadata.json"] 0161 qbs.install: true 0162 qbs.installDir: cutehmi.dirs.metadataInstallSubdir 0163 } 0164 0165 FileTagger { 0166 patterns: ["*.rcc"] 0167 fileTags: ["rcc"] 0168 } 0169 0170 Group { 0171 name: "Binary resource files" 0172 fileTagsFilter: ["rcc"] 0173 qbs.install: true 0174 qbs.installDir: dedicatedInstallSubdir 0175 } 0176 0177 FileTagger { 0178 patterns: ["*.desktop"] 0179 fileTags: ["desktop"] 0180 } 0181 0182 Group { 0183 name: "Desktop entries" 0184 fileTagsFilter: ["desktop"] 0185 qbs.install: true 0186 qbs.installSourceBase: installSourceBase 0187 qbs.installDir: dedicatedInstallSubdir 0188 } 0189 } 0190 0191 //(c)C: Copyright © 2018-2024, Michał Policht <michal@policht.pl>, Wojtek Zygmuntowicz <wzygmuntowicz.zygmuntowicz@gmail.com>. All rights reserved. 0192 //(c)C: SPDX-License-Identifier: LGPL-3.0-or-later OR MIT 0193 //(c)C: This file is a part of CuteHMI. 0194 //(c)C: CuteHMI is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. 0195 //(c)C: CuteHMI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. 0196 //(c)C: You should have received a copy of the GNU Lesser General Public License along with CuteHMI. If not, see <https://www.gnu.org/licenses/>. 0197 //(c)C: Additionally, this file is licensed under terms of MIT license as expressed below. 0198 //(c)C: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 0199 //(c)C: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 0200 //(c)C: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.