Warning, /sdk/cutehmi/tools/cutehmi.daemon.3/project.qbs is written in an unsupported language. File is not indexed.

0001 import qbs 1.0
0002 
0003 import cutehmi
0004 
0005 cutehmi.ToolProject {
0006         groupSourceDirectory: path
0007 
0008         condition: !qbs.targetOS.contains("android")
0009 
0010         references: [
0011                 "tests/tests.qbs"
0012         ]
0013 
0014         cutehmi.Tool {
0015                 name: parent.name
0016 
0017                 consoleApplication: true
0018 
0019                 vendor: "CuteHMI"
0020 
0021                 domain: "cutehmi.kde.org"
0022 
0023                 friendlyName: "Daemon"
0024 
0025                 description: "Console program, which allows one to run QML project in the background."
0026 
0027                 files: [
0028          "README.md",
0029          "dev/cutehmi.daemon-1.workaround.Qt.QTBUG-73649.txt",
0030          "qml/ExtensionLoader.qml",
0031          "resources.qrc",
0032          "src/cutehmi/daemon/CoreData.hpp",
0033          "src/cutehmi/daemon/Daemon.cpp",
0034          "src/cutehmi/daemon/Daemon.hpp",
0035          "src/cutehmi/daemon/Exception.cpp",
0036          "src/cutehmi/daemon/Exception.hpp",
0037          "src/cutehmi/daemon/logging.cpp",
0038          "src/cutehmi/daemon/logging.hpp",
0039          "src/main.cpp",
0040      ]
0041 
0042                 property string defaultExtension
0043 
0044                 property string defaultMinor
0045 
0046                 property string defaultInit
0047 
0048                 property string defaultComponent
0049 
0050 //              property string defaultLanguage
0051 
0052                 property bool forceDefaultOptions: false
0053 
0054                 Properties {
0055                         condition: project.windeployqt
0056                         cutehmi.windeployqt.qmldir: sourceDirectory + "/qml"
0057                 }
0058 
0059                 cpp.defines: {
0060                         var result = []
0061 
0062                         if (defaultExtension)
0063                                 result.push("CUTEHMI_DAEMON_DEFAULT_EXTENSION=\"" + defaultExtension + "\"")
0064 
0065                         if (defaultMinor)
0066                                 result.push("CUTEHMI_DAEMON_DEFAULT_MINOR=\"" + defaultMinor + "\"")
0067 
0068                         if (defaultInit)
0069                                 result.push("CUTEHMI_DAEMON_DEFAULT_INIT=\"" + defaultInit + "\"")
0070 
0071                         if (defaultComponent)
0072                                 result.push("CUTEHMI_DAEMON_DEFAULT_COMPONENT=\"" + defaultComponent + "\"")
0073 
0074                         if (forceDefaultOptions)
0075                                 result.push("CUTEHMI_DAEMON_FORCE_DEFAULT_OPTIONS")
0076 
0077 //                      if (defaultLanguage)
0078 //                              result.push("CUTEHMI_DAEMON_DEFAULT_LANGUAGE=\"" + defaultLanguage + "\"")
0079 
0080                         return result
0081                 }
0082 
0083                 Group {
0084                         name: "Windows"
0085                         condition: qbs.targetOS.contains("windows")
0086                         files: [
0087                                 "src/cutehmi/daemon/Daemon_win.cpp",
0088                         ]
0089                 }
0090                 Group {
0091                         name: "Linux"
0092                         condition: qbs.targetOS.contains("linux")
0093                         files: [
0094                                 "src/cutehmi/daemon/Daemon_unix.cpp",
0095                                 "src/cutehmi/daemon/Daemon_unix.hpp"
0096                         ]
0097                 }
0098 
0099                 cutehmi.dirs.artifacts: true
0100 
0101                 Depends { name: "CuteHMI.2" }
0102 
0103                 Depends { name: "cutehmi.doxygen" }
0104                 cutehmi.doxygen.exclude: ['dev', 'tests', 'src']
0105         }
0106 }
0107 
0108 //(c)C: Copyright © 2020-2024, Michał Policht <michal@policht.pl>. All rights reserved.
0109 //(c)C: SPDX-License-Identifier: LGPL-3.0-or-later OR MIT
0110 //(c)C: This file is a part of CuteHMI.
0111 //(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.
0112 //(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.
0113 //(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/>.
0114 //(c)C: Additionally, this file is licensed under terms of MIT license as expressed below.
0115 //(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:
0116 //(c)C: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
0117 //(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.