Warning, /sdk/cutehmi/qbs/imports/cutehmi/Tool.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 Tool product. 0008 */ 0009 CommonProduct { 0010 type: project.buildBinaries ? (project.buildApk ? "android.apk" : "application") : [] 0011 0012 cutehmiType: "tool" 0013 0014 targetName: qbs.buildVariant.contains("debug") ? name + ".debug" : name 0015 0016 condition: project.buildTools 0017 0018 baseName: cutehmi.conventions.functions.baseName(name) 0019 0020 major: cutehmi.conventions.functions.major(name) 0021 0022 Depends { name: "cpp" } 0023 Properties { 0024 readonly property string extensionsRelativePath: FileInfo.relativePath(cutehmi.dirs.installDir + "/" + cutehmi.dirs.toolsInstallSubdir, cutehmi.dirs.installDir + "/" + cutehmi.dirs.extensionsInstallSubdir) 0025 0026 condition: qbs.targetOS.contains("linux") 0027 cpp.linkerFlags: "-rpath=$ORIGIN" + (extensionsRelativePath === "." ? "" : "/" + extensionsRelativePath) 0028 } 0029 cpp.includePaths: [ 0030 cutehmi.dirs.externalIncludeDir, 0031 product.sourceDirectory + "/" + cutehmi.conventions.functions.includesSubdir(product.name) 0032 ] 0033 cpp.libraryPaths: [cutehmi.dirs.externalLibDir] 0034 0035 Depends { name: "cutehmi.android.package"; condition: project.buildApk } 0036 Depends { name: "cutehmi.android.deployInstall"; condition: qbs.targetOS.contains("android") } 0037 0038 Depends { name: "cutehmi.cpp" } 0039 0040 Depends { name: "cutehmi.conventions" } 0041 0042 Depends { name: "cutehmi.dirs" } 0043 0044 Depends { name: "cutehmi.metadata" } 0045 0046 Depends { name: "cutehmi.windeployqt"; condition: project.windeployqt } 0047 0048 Export { 0049 Depends { name: "cpp" } 0050 0051 cpp.includePaths: [exportingProduct.sourceDirectory + "/include"] 0052 } 0053 0054 Group { 0055 name: "Application" 0056 fileTagsFilter: "application" 0057 qbs.install: true 0058 qbs.installDir: cutehmi.dirs.toolsInstallSubdir 0059 } 0060 0061 Group { 0062 name: "Translations" 0063 fileTagsFilter: ["qm"] 0064 qbs.install: true 0065 qbs.installDir: cutehmi.dirs.translationsInstallSubdir 0066 } 0067 0068 Group { 0069 name: "Metadata" 0070 fileTagsFilter: ["cutehmi.metadata.json"] 0071 qbs.install: true 0072 qbs.installDir: cutehmi.dirs.metadataInstallSubdir 0073 } 0074 } 0075 0076 //(c)C: Copyright © 2018-2024, Michał Policht <michal@policht.pl>, Wojtek Zygmuntowicz <wzygmuntowicz.zygmuntowicz@gmail.com>. All rights reserved. 0077 //(c)C: SPDX-License-Identifier: LGPL-3.0-or-later OR MIT 0078 //(c)C: This file is a part of CuteHMI. 0079 //(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. 0080 //(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. 0081 //(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/>. 0082 //(c)C: Additionally, this file is licensed under terms of MIT license as expressed below. 0083 //(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: 0084 //(c)C: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 0085 //(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.