Warning, /sdk/cutehmi/qbs/imports/cutehmi/Example.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 @deprecated Example entity is going to be replaced by extensions. 0008 */ 0009 CommonProduct { 0010 type: [] 0011 0012 cutehmiType: "example" 0013 0014 baseName: name 0015 0016 condition: project.buildExamples 0017 0018 property string installPrefix: parent.parent.name 0019 0020 property string installDir: cutehmi.dirs.examplesInstallSubdir + "/" + installPrefix + "/" + FileInfo.baseName(sourceDirectory) 0021 0022 Depends { name: "cutehmi.dirs" } 0023 0024 FileTagger { 0025 patterns: "*.png" 0026 fileTags: ["png"] 0027 } 0028 0029 FileTagger { 0030 patterns: "*.svg" 0031 fileTags: ["svg"] 0032 } 0033 0034 Group { 0035 name: "Images" 0036 fileTagsFilter: ["png", "svg"] 0037 qbs.install: true 0038 qbs.installSourceBase: sourceDirectory 0039 qbs.installDir: installDir 0040 } 0041 0042 Group { 0043 name: "Library" 0044 fileTagsFilter: "dynamiclibrary" 0045 qbs.install: true 0046 qbs.installDir: installDir 0047 } 0048 0049 FileTagger { 0050 patterns: "*.metainfo" 0051 fileTags: ["metainfo"] 0052 } 0053 0054 Group { 0055 name: "Metainfo" 0056 fileTagsFilter: ["metainfo"] 0057 qbs.install: true 0058 qbs.installSourceBase: sourceDirectory 0059 qbs.installDir: installDir 0060 } 0061 0062 FileTagger { 0063 patterns: "*.js" 0064 fileTags: ["js"] 0065 } 0066 0067 FileTagger { 0068 patterns: "*.qml" 0069 fileTags: ["qml"] 0070 } 0071 0072 FileTagger { 0073 patterns: "*.qmltypes" 0074 fileTags: ["qmltypes"] 0075 } 0076 0077 FileTagger { 0078 patterns: "qmldir" 0079 fileTags: ["qmldir"] 0080 } 0081 0082 Group { 0083 name: "QML" 0084 fileTagsFilter: ["js", "qml", "qmldir", "qmltypes"] 0085 qbs.install: true 0086 qbs.installSourceBase: sourceDirectory 0087 qbs.installDir: installDir 0088 } 0089 0090 FileTagger { 0091 patterns: ["LICENSE", "README.md"] 0092 fileTags: ["ReadmeFiles"] 0093 } 0094 0095 Group { 0096 name: "Readme files" 0097 fileTagsFilter: ["ReadmeFiles"] 0098 qbs.install: true 0099 qbs.installSourceBase: sourceDirectory 0100 qbs.installDir: installDir 0101 } 0102 0103 FileTagger { 0104 patterns: "*.xml" 0105 fileTags: ["xml"] 0106 } 0107 0108 Group { 0109 name: "XML" 0110 fileTagsFilter: ["xml"] 0111 qbs.install: true 0112 qbs.installSourceBase: sourceDirectory 0113 qbs.installDir: installDir 0114 } 0115 } 0116 0117 //(c)C: Copyright © 2018-2020, Michał Policht <michal@policht.pl>. All rights reserved. 0118 //(c)C: SPDX-License-Identifier: LGPL-3.0-or-later OR MIT 0119 //(c)C: This file is a part of CuteHMI. 0120 //(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. 0121 //(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. 0122 //(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/>. 0123 //(c)C: Additionally, this file is licensed under terms of MIT license as expressed below. 0124 //(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: 0125 //(c)C: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 0126 //(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.