Files
qt-creator/src/plugins/qmlprofiler/CMakeLists.txt

122 lines
4.5 KiB
CMake
Raw Normal View History

if(WITH_TESTS)
set(TEST_SOURCES
tests/debugmessagesmodel_test.cpp tests/debugmessagesmodel_test.h
tests/fakedebugserver.cpp tests/fakedebugserver.h
tests/flamegraphmodel_test.cpp tests/flamegraphmodel_test.h
tests/flamegraphview_test.cpp tests/flamegraphview_test.h
tests/inputeventsmodel_test.cpp tests/inputeventsmodel_test.h
tests/localqmlprofilerrunner_test.cpp tests/localqmlprofilerrunner_test.h
tests/memoryusagemodel_test.cpp tests/memoryusagemodel_test.h
tests/pixmapcachemodel_test.cpp tests/pixmapcachemodel_test.h
tests/qmlevent_test.cpp tests/qmlevent_test.h
tests/qmleventlocation_test.cpp tests/qmleventlocation_test.h
tests/qmleventtype_test.cpp tests/qmleventtype_test.h
tests/qmlnote_test.cpp tests/qmlnote_test.h
tests/qmlprofileranimationsmodel_test.cpp tests/qmlprofileranimationsmodel_test.h
tests/qmlprofilerattachdialog_test.cpp tests/qmlprofilerattachdialog_test.h
tests/qmlprofilerbindingloopsrenderpass_test.cpp tests/qmlprofilerbindingloopsrenderpass_test.h
tests/qmlprofilerclientmanager_test.cpp tests/qmlprofilerclientmanager_test.h
tests/qmlprofilerdetailsrewriter_test.cpp tests/qmlprofilerdetailsrewriter_test.h
tests/qmlprofilertool_test.cpp tests/qmlprofilertool_test.h
tests/qmlprofilertraceclient_test.cpp tests/qmlprofilertraceclient_test.h
tests/qmlprofilertraceview_test.cpp tests/qmlprofilertraceview_test.h
tests/tests.qrc
)
else()
set(TEST_SOURCES "")
endif()
set(QMLPROFILER_CPP_SOURCES
debugmessagesmodel.cpp debugmessagesmodel.h
flamegraphmodel.cpp flamegraphmodel.h
flamegraphview.cpp flamegraphview.h
inputeventsmodel.cpp inputeventsmodel.h
memoryusagemodel.cpp memoryusagemodel.h
pixmapcachemodel.cpp pixmapcachemodel.h
qmlevent.cpp qmlevent.h
qmleventlocation.cpp qmleventlocation.h
qmleventtype.cpp qmleventtype.h
qmlnote.cpp qmlnote.h
qmlprofiler_global.h
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
qmlprofilertr.h
qmlprofileractions.cpp qmlprofileractions.h
qmlprofileranimationsmodel.cpp qmlprofileranimationsmodel.h
qmlprofilerattachdialog.cpp qmlprofilerattachdialog.h
qmlprofilerbindingloopsrenderpass.cpp qmlprofilerbindingloopsrenderpass.h
qmlprofilerclientmanager.cpp qmlprofilerclientmanager.h
qmlprofilerconstants.h
qmlprofilerdetailsrewriter.cpp qmlprofilerdetailsrewriter.h
qmlprofilereventsview.h
qmlprofilereventtypes.h
qmlprofilermodelmanager.cpp qmlprofilermodelmanager.h
qmlprofilernotesmodel.cpp qmlprofilernotesmodel.h
qmlprofilerplugin.cpp qmlprofilerplugin.h
qmlprofilerrangemodel.cpp qmlprofilerrangemodel.h
qmlprofilerrunconfigurationaspect.cpp qmlprofilerrunconfigurationaspect.h
qmlprofilerruncontrol.cpp qmlprofilerruncontrol.h
qmlprofilersettings.cpp qmlprofilersettings.h
qmlprofilerstatemanager.cpp qmlprofilerstatemanager.h
qmlprofilerstatewidget.cpp qmlprofilerstatewidget.h
qmlprofilerstatisticsmodel.cpp qmlprofilerstatisticsmodel.h
qmlprofilerstatisticsview.cpp qmlprofilerstatisticsview.h
qmlprofilertextmark.cpp qmlprofilertextmark.h
qmlprofilertimelinemodel.cpp qmlprofilertimelinemodel.h
qmlprofilertool.cpp qmlprofilertool.h
qmlprofilertraceclient.cpp qmlprofilertraceclient.h
qmlprofilertracefile.cpp qmlprofilertracefile.h
qmlprofilertraceview.cpp qmlprofilertraceview.h
qmlprofilerviewmanager.cpp qmlprofilerviewmanager.h
qmltypedevent.cpp qmltypedevent.h
scenegraphtimelinemodel.cpp scenegraphtimelinemodel.h
quick3dmodel.cpp quick3dmodel.h
quick3dframeview.cpp quick3dframeview.h
quick3dframemodel.cpp quick3dframemodel.h
)
find_package(Qt6 COMPONENTS ShaderTools QUIET)
add_qtc_plugin(QmlProfiler
CONDITION TARGET Tracing AND TARGET Qt6::ShaderTools
DEPENDS QmlDebug QmlJS Tracing Qt::QuickWidgets
PLUGIN_DEPENDS Core Debugger ProjectExplorer QtSupport TextEditor
SOURCES
${TEST_SOURCES}
)
if (NOT TARGET QmlProfiler)
return()
endif()
set(QMLPROFILER_QML_FILES
qml/QmlProfilerFlameGraphView.qml
)
foreach(file IN LISTS QMLPROFILER_QML_FILES)
get_filename_component(fileName "${file}" NAME)
set_source_files_properties("${file}" PROPERTIES QT_RESOURCE_ALIAS "${fileName}")
endforeach()
qt_add_shaders(QmlProfiler "res_qmlprofilershaders"
BATCHABLE
PREFIX
"/qt/qml/QtCreator/QmlProfiler"
BASE
"qml"
FILES
qml/bindingloops_qt6.frag
qml/bindingloops_qt6.vert
)
qt_add_qml_module(QmlProfiler
URI "QtCreator.QmlProfiler"
VERSION "1.0"
NO_PLUGIN
RESOURCE_PREFIX "/qt/qml"
QML_FILES
${QMLPROFILER_QML_FILES}
RESOURCES
${QMLPROFILER_QML_RESOURCES}
SOURCES
${QMLPROFILER_CPP_SOURCES}
)