aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2019-05-12 22:20:56 +0200
committerCristian Adam <cristian.adam@gmail.com>2019-05-17 13:33:28 +0000
commitd855b84c5df923394ace3bb91dab379f7e0daa34 (patch)
treee184ccdf5724151465a1653f9fc308af43293de8 /src/plugins/qmlprofiler
parentf872a95fddd2690bb6953a17e48935c1b12d83d9 (diff)
Qt Creator CMake port
Based on Tobias Hunger's work from a few months ago. The CMake configuration needs libclang and Qt paths specified as CMAKE_PREFIX_PATH. Auto tests are run with "ctest". At the moment the pass rate is 87%. Change-Id: Iba98e39bf22077d52706dce6c85986be67a6eab0 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler')
-rw-r--r--src/plugins/qmlprofiler/CMakeLists.txt75
1 files changed, 75 insertions, 0 deletions
diff --git a/src/plugins/qmlprofiler/CMakeLists.txt b/src/plugins/qmlprofiler/CMakeLists.txt
new file mode 100644
index 0000000000..ab8ddb712c
--- /dev/null
+++ b/src/plugins/qmlprofiler/CMakeLists.txt
@@ -0,0 +1,75 @@
+add_qtc_plugin(QmlProfiler
+ DEPENDS QmlDebug qmljs Tracing Qt5::QuickWidgets
+ PLUGIN_DEPENDS Core Debugger ProjectExplorer QtSupport TextEditor
+ 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
+ qml/qmlprofiler.qrc
+ qmlevent.cpp qmlevent.h
+ qmleventlocation.cpp qmleventlocation.h
+ qmleventtype.cpp qmleventtype.h
+ qmlnote.cpp qmlnote.h
+ qmlprofiler_global.h
+ qmlprofileractions.cpp qmlprofileractions.h
+ qmlprofileranimationsmodel.cpp qmlprofileranimationsmodel.h
+ qmlprofilerattachdialog.cpp qmlprofilerattachdialog.h qmlprofilerattachdialog.ui
+ qmlprofilerbindingloopsrenderpass.cpp qmlprofilerbindingloopsrenderpass.h
+ qmlprofilerclientmanager.cpp qmlprofilerclientmanager.h
+ qmlprofilerconfigwidget.cpp qmlprofilerconfigwidget.h qmlprofilerconfigwidget.ui
+ qmlprofilerconstants.h
+ qmlprofilerdetailsrewriter.cpp qmlprofilerdetailsrewriter.h
+ qmlprofilereventsview.h
+ qmlprofilereventtypes.h
+ qmlprofilermodelmanager.cpp qmlprofilermodelmanager.h
+ qmlprofilernotesmodel.cpp qmlprofilernotesmodel.h
+ qmlprofileroptionspage.cpp qmlprofileroptionspage.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
+)
+
+if (WITH_TESTS)
+ target_sources(QmlProfiler PRIVATE
+ 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/qmlprofilerconfigwidget_test.cpp tests/qmlprofilerconfigwidget_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
+ )
+endif()