Warning, /sdk/cutehmi/qbs/imports/cutehmi/CommonProduct.qbs is written in an unsupported language. File is not indexed.

0001 import qbs
0002 
0003 /**
0004   Common product. Defines common properties for all CuteHMI product types.
0005   */
0006 Product {
0007         targetName: qbs.buildVariant.contains("debug") ? name + "d" : name
0008 
0009         //<qbs-imports-cutehmi-1.workaround target="Qbs" cause="design">
0010         // Using 'builtByDefault' instead of 'condition', because products with condition set to false are not evaluated at all, which
0011         // gives no chance to propagate condition accross dependencies.
0012         builtByDefault: cutehmi.product.disabledProducts.length == 0 && cutehmi.product.enabled
0013         //</qbs-imports-cutehmi-1.workaround>
0014 
0015         property string cutehmiType: "product"    ///< CuteHMI product type.
0016 
0017         property string vendor                                    ///< Product vendor.
0018 
0019         property string domain                                    ///< Organization domain.
0020 
0021         property string friendlyName                      ///< Descriptive product name for ordinary humans.
0022 
0023         property string description                               ///< Short product description.
0024 
0025         property string baseName                                  ///< Base name of the product (without the major version suffix).
0026 
0027         property int major                                                ///< Major version number.
0028 
0029         property int minor: 0                                     ///< Minor version number.
0030 
0031         property int micro: 0                                     ///< Micro version number.
0032 
0033         property string hash: ""                                  ///< Hash version string.
0034 
0035         property bool i18n: false                                 ///< Indicates whether translations should be loaded for this product.
0036 
0037         //<qbs-cutehmi.product-1.workaround target="Qbs" cause="missing">
0038 
0039         Export {
0040                 Depends { name: "cutehmi.product" }
0041                 Properties {
0042                         //<qbs-imports-cutehmi-1.workaround target="Qbs" cause="design">
0043                         condition: !exportingProduct.builtByDefault
0044                         //</qbs-imports-cutehmi-1.workaround>
0045                         cutehmi.product.disabledProducts: exportingProduct.name
0046                 }
0047         }
0048 
0049         Depends { name: "cutehmi.product" }
0050 
0051         Depends { name: "cutehmi.clone" }
0052 
0053         Depends { name: "cutehmi.internal.clone"; condition: cutehmi.clone.enabled }
0054 
0055         FileTagger {
0056                 patterns: ["LICENSE*.inc"]
0057                 fileTags: ["LicenseInclusionFiles"]
0058                 priority: 1
0059         }
0060 
0061         FileTagger {
0062                 patterns: ["LICENSE", "LICENSE.*", "README.md", "CHANGES.md", "*.txt"]
0063                 fileTags: ["ReadmeFiles"]
0064         }
0065 
0066         //</qbs-cutehmi.product-1.workaround>
0067 }
0068 
0069 //(c)C: Copyright © 2018-2024, Michał Policht <michal@policht.pl>. All rights reserved.
0070 //(c)C: SPDX-License-Identifier: LGPL-3.0-or-later OR MIT
0071 //(c)C: This file is a part of CuteHMI.
0072 //(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.
0073 //(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.
0074 //(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/>.
0075 //(c)C: Additionally, this file is licensed under terms of MIT license as expressed below.
0076 //(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:
0077 //(c)C: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
0078 //(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.