blob: d4d7420d7b0b59e66cf4c86dda3ad22782f7aa77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
add_qtc_plugin(MesonProjectManager
PLUGIN_CLASS MesonProjectPlugin
DEPENDS QmlJS
PLUGIN_DEPENDS Core CppEditor ProjectExplorer TextEditor QtSupport
SOURCES
arrayoptionlineedit.cpp
arrayoptionlineedit.h
buildoptions.h
buildoptionsmodel.cpp
buildoptionsmodel.h
buildoptionsparser.h
buildsystemfilesparser.h
common.h
infoparser.h
kitdata.h
kithelper.h
machinefilemanager.cpp
machinefilemanager.h
mesonactionsmanager.cpp
mesonactionsmanager.h
mesonbuildconfiguration.cpp
mesonbuildconfiguration.h
mesonbuildsettingswidget.cpp
mesonbuildsettingswidget.h
mesonbuildsystem.cpp
mesonbuildsystem.h
mesoninfo.h
mesoninfoparser.h
mesonoutputparser.cpp
mesonoutputparser.h
mesonprocess.cpp
mesonprocess.h
mesonproject.cpp
mesonproject.h
mesonprojectimporter.cpp
mesonprojectimporter.h
mesonprojectmanagertr.h
mesonprojectnodes.cpp
mesonprojectnodes.h
mesonprojectparser.cpp
mesonprojectparser.h
mesonprojectplugin.cpp
mesonprojectplugin.h
mesonrunconfiguration.cpp
mesonrunconfiguration.h
mesontoolkitaspect.cpp
mesontoolkitaspect.h
mesontools.cpp
mesontools.h
mesonwrapper.cpp
mesonwrapper.h
nativefilegenerator.cpp
nativefilegenerator.h
ninjabuildstep.cpp
ninjabuildstep.h
ninjaparser.cpp
ninjaparser.h
ninjatoolkitaspect.cpp
ninjatoolkitaspect.h
ninjawrapper.h
projecttree.cpp
projecttree.h
resources_meson.qrc
settings.cpp
settings.h
target.h
targetparser.h
toolitemsettings.cpp
toolitemsettings.h
toolkitaspectwidget.cpp
toolkitaspectwidget.h
toolsmodel.cpp
toolsmodel.h
toolssettingsaccessor.cpp
toolssettingsaccessor.h
toolssettingspage.cpp
toolssettingspage.h
toolssettingswidget.cpp
toolssettingswidget.h
tooltreeitem.cpp
tooltreeitem.h
toolwrapper.cpp
toolwrapper.h
versionhelper.h
)
file(RELATIVE_PATH RELATIVE_TEST_PATH "${PROJECT_BINARY_DIR}" "${CMAKE_CURRENT_BINARY_DIR}")
file(RELATIVE_PATH TEST_RELATIVE_LIBEXEC_PATH "/${RELATIVE_TEST_PATH}" "/${IDE_LIBEXEC_PATH}")
if(WITH_TESTS)
add_qtc_test(tst_mesonwrapper
EXCLUDE_FROM_PRECHECK
INCLUDES
BEFORE "."
DEPENDS
Qt::Core Qt::Test Core
Utils
DEFINES
MESON_SAMPLES_DIR="${CMAKE_CURRENT_SOURCE_DIR}/tests/resources"
MESON_SAMPLES_BUILD_DIR="${CMAKE_CURRENT_BINARY_DIR}"
TEST_RELATIVE_LIBEXEC_PATH="${TEST_RELATIVE_LIBEXEC_PATH}"
SOURCES
tests/testmesonwrapper.cpp
mesonwrapper.cpp
mesonwrapper.h
ninjawrapper.h
toolwrapper.h
toolwrapper.cpp
mesontools.h
)
add_qtc_test(tst_mesoninfoparser
EXCLUDE_FROM_PRECHECK
INCLUDES
BEFORE "."
DEPENDS
Qt::Core Qt::Test Core
Utils
DEFINES
MESON_SAMPLES_DIR="${CMAKE_CURRENT_SOURCE_DIR}/tests/resources"
MESON_SAMPLES_BUILD_DIR="${CMAKE_CURRENT_BINARY_DIR}"
TEST_RELATIVE_LIBEXEC_PATH="${TEST_RELATIVE_LIBEXEC_PATH}"
SOURCES
tests/testmesoninfoparser.cpp
mesonwrapper.cpp
mesonwrapper.h
ninjawrapper.h
toolwrapper.h
toolwrapper.cpp
mesontools.h
mesoninfoparser.h
)
add_qtc_test(tst_ninjaparser
INCLUDES
BEFORE "."
DEPENDS
Qt::Core Qt::Test Core
Utils ProjectExplorer
SOURCES
tests/testninjaparser.cpp
ninjaparser.cpp
)
add_qtc_test(tst_mesonparser
INCLUDES
BEFORE "."
DEFINES
MESONPARSER_DISABLE_TASKS_FOR_TESTS
DEPENDS
Qt::Core Qt::Test Core
Utils ProjectExplorer
SOURCES
tests/testmesonparser.cpp
mesonoutputparser.cpp
)
endif(WITH_TESTS)
|