Files
qt-creator/src/plugins/mcusupport/mcusupport.qbs

78 lines
2.3 KiB
QML
Raw Normal View History

import qbs 1.0
QtcPlugin {
name: "McuSupport"
Depends { name: "Qt.core" }
Depends { name: "Qt.widgets" }
Depends { name: "Qt.testlib"; condition: qtc.testsEnabled }
Depends { name: "Utils" }
Depends { name: "app_version_header" }
Depends { name: "Core" }
Depends { name: "BareMetal" }
Depends { name: "ProjectExplorer" }
Depends { name: "Debugger" }
Depends { name: "CMakeProjectManager" }
Depends { name: "QtSupport" }
Depends { name: "qtc_gtest_gmock"; condition: qtc.testsEnabled; required: false }
files: [
"mcuabstractpackage.h",
"mcupackage.cpp",
"mcupackage.h",
"mcutarget.cpp",
"mcutarget.h",
"mcutargetfactory.cpp",
"mcutargetfactory.h",
"mcutargetfactorylegacy.cpp",
"mcutargetfactorylegacy.h",
"mcusupport.qrc",
Add plugintr.h files to all plugins Except FakeVim, which had it before. for i in [a-eg-z]*/*.json ; do upper=${i##*/} upper=${upper/.json/} lower=${i%/*} trfile=$lower/${lower}tr.h cat << EOT > $lower/${lower}tr.h /**************************************************************************** ** ** Copyright (C) 2022 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms ** and conditions see https://www.qt.io/terms-conditions. For further ** information use the contact form at https://www.qt.io/contact-us. ** ** GNU General Public License Usage ** Alternatively, this file may be used under the terms of the GNU ** General Public License version 3 as published by the Free Software ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT ** included in the packaging of this file. Please review the following ** information to ensure the GNU General Public License requirements will ** be met: https://www.gnu.org/licenses/gpl-3.0.html. ** ****************************************************************************/ namespace $upper { struct Tr { Q_DECLARE_TR_FUNCTIONS($upper) }; } // namespace $upper EOT git add $trfile perl -pi -e "s/(${lower}_global.h)/\1\n ${lower}tr.h/" $lower/CMakeLists.txt perl -pi -e "s/(\"${lower}_global.h\",)/\1 \"${lower}tr.h\",/" $lower/$lower.qbs done Change-Id: I15ebbaaa9443c57b391b9e143f592d8a0c9208a9 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-06-22 10:12:01 +02:00
"mcusupport_global.h", "mcusupporttr.h",
"mcusupportconstants.h",
"mcusupportdevice.cpp",
"mcusupportdevice.h",
"mcusupportoptions.cpp",
"mcusupportoptions.h",
"mcukitmanager.cpp",
"mcukitmanager.h",
"mcuqmlprojectnode.cpp",
"mcuqmlprojectnode.h",
"mcusupportoptionspage.cpp",
"mcusupportoptionspage.h",
"mcusupportplugin.cpp",
"mcusupportplugin.h",
"mcusupportsdk.cpp",
"mcusupportsdk.h",
"mcusupportrunconfiguration.cpp",
"mcusupportrunconfiguration.h",
"mcusupportversiondetection.cpp",
"mcusupportversiondetection.h",
"mcutargetdescription.h",
"mcukitinformation.cpp",
"mcukitinformation.h",
"mcuhelpers.cpp",
"mcuhelpers.h",
"settingshandler.h",
"settingshandler.cpp",
]
Group {
name: "McuSupport test files"
condition: qtc.testsEnabled && (qtc_gtest_gmock.hasRepo || qtc_gtest_gmock.externalLibsPresent)
prefix: "test/"
files: [
"packagemock.h",
"settingshandlermock.h",
"unittest.cpp", "unittest.h"
]
}
Properties {
condition: qtc.testsEnabled && (qtc_gtest_gmock.hasRepo || qtc_gtest_gmock.externalLibsPresent)
cpp.defines: base.concat(["GOOGLE_TEST_IS_FOUND"])
cpp.includePaths: base.concat([ "." ])
}
}