Warning, /sdk/cutehmi/tools/cutehmi.view.4/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 references: [ 0009 "tests/tests.qbs" 0010 ] 0011 0012 cutehmi.Tool { 0013 name: parent.name 0014 0015 consoleApplication: false 0016 0017 vendor: "CuteHMI" 0018 0019 domain: "cutehmi.kde.org" 0020 0021 friendlyName: "View" 0022 0023 description: "GUI application, which allows one to run QML project in a window." 0024 0025 i18n: true 0026 0027 // Add also QML files from qrc, because for eg. androiddeployqt needs them installed to scan them. 0028 files: [ 0029 "README.md", 0030 "dev/cutehmi.view.2-1.solved.Qt.design.txt", 0031 "dev/cutehmi.view.2-2.unsolved.Qt.bug.txt", 0032 "dev/cutehmi.view.2-3.solved.Qt.bug.txt", 0033 "dev/cutehmi.view.2-4.workaround.Qt.bug.txt", 0034 "dev/cutehmi.view.2-5.workaround.Qt.bug.txt", 0035 "dev/cutehmi.view.2-6.workaround.Qt.bug.txt", 0036 "tests/Test.qbs", 0037 "i18n/cutehmi-view-4_en_US.ts", 0038 "i18n/cutehmi-view-4_pl.ts", 0039 "resources.qrc", 0040 "resources.rc", 0041 "src/cutehmi/view/logging.cpp", 0042 "src/cutehmi/view/logging.hpp", 0043 "src/main.cpp", 0044 "qml/DefaultScreen.qml", 0045 "qml/ExtensionLoader.qml", 0046 "qml/MainWindow.qml", 0047 "qml/MessageDialog.qml", 0048 "qml/NotificationListView.qml", 0049 ] 0050 0051 Properties { 0052 condition: project.windeployqt 0053 cutehmi.windeployqt.qmldir: sourceDirectory + "/qml" 0054 } 0055 0056 property string defaultExtension 0057 0058 property string defaultMinor 0059 0060 property string defaultInit 0061 0062 property string defaultComponent 0063 0064 property string defaultLanguage 0065 0066 // This is obsolete option and it will be removed in cutehmi.view.5, but is currently needed to force a Qt Quick style. 0067 property string defaultStyle 0068 0069 property bool forceDefaultOptions: false 0070 0071 property bool virtualKeyboard: false 0072 0073 cpp.defines: { 0074 var result = [] 0075 0076 if (virtualKeyboard) 0077 result.push("CUTEHMI_VIEW_VIRTUAL_KEYBOARD") 0078 0079 if (defaultExtension) 0080 result.push("CUTEHMI_VIEW_DEFAULT_EXTENSION=\"" + defaultExtension + "\"") 0081 0082 if (defaultMinor) 0083 result.push("CUTEHMI_VIEW_DEFAULT_MINOR=\"" + defaultMinor + "\"") 0084 0085 if (defaultInit) 0086 result.push("CUTEHMI_VIEW_DEFAULT_INIT=\"" + defaultInit + "\"") 0087 0088 if (defaultComponent) 0089 result.push("CUTEHMI_VIEW_DEFAULT_COMPONENT=\"" + defaultComponent + "\"") 0090 0091 if (forceDefaultOptions) 0092 result.push("CUTEHMI_VIEW_FORCE_DEFAULT_OPTIONS") 0093 0094 if (defaultLanguage) 0095 result.push("CUTEHMI_VIEW_DEFAULT_LANGUAGE=\"" + defaultLanguage + "\"") 0096 0097 if (defaultStyle) 0098 result.push("CUTEHMI_VIEW_DEFAULT_STYLE=\"" + defaultStyle + "\"") 0099 0100 return result 0101 } 0102 0103 cutehmi.dirs.artifacts: true 0104 0105 Depends { name: "CuteHMI.GUI.1" } 0106 0107 Depends { name: "cutehmi.doxygen" } 0108 cutehmi.doxygen.exclude: ['dev', 'tests', 'src'] 0109 0110 Depends { name: "cutehmi.i18n" } 0111 0112 Export { 0113 Depends { name: "CuteHMI.GUI.1" } 0114 } 0115 } 0116 } 0117 0118 //(c)C: Copyright © 2020-2024, Michał Policht <michal@policht.pl>. All rights reserved. 0119 //(c)C: SPDX-License-Identifier: LGPL-3.0-or-later OR MIT 0120 //(c)C: This file is a part of CuteHMI. 0121 //(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. 0122 //(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. 0123 //(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/>. 0124 //(c)C: Additionally, this file is licensed under terms of MIT license as expressed below. 0125 //(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: 0126 //(c)C: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 0127 //(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.