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
|
dep_gtest = dependency('gtest')
test('urlfilter-AdBlockList', executable('AdBlockList',
dependencies: [dep_gtest, dep_qt5, dep_urlfilter],
sources: ['urlfilter/urlfiltertest.cpp']
))
# Adblock parsing test
adblock = executable('AdblockTest',
dependencies: [dep_gtest, dep_qt5, dep_urlfilter],
sources: ['adblock/adblocktest.cpp']
)
test('urlfilter-adblock', adblock, workdir: meson.current_source_dir())
# Hostlist parsing test
hostlist = executable('HostlistTest',
dependencies: [dep_qt5, dep_urlfilter],
sources: ['hostlist/hostlisttest.cpp', qt5.preprocess(moc_headers: 'hostlist/hostlisttest.h', dependencies: dep_qt5)]
)
test('urlfilter-hostlist', hostlist, workdir: meson.current_source_dir())
# matching algorithms benchmark
matcherbenchmark = executable('MatcherBenchmark',
dependencies: [dep_qt5, dependency('boost', modules: 'regex')],
sources: ['matcherbenchmark/matcherbenchmark.cpp', qt5.preprocess(moc_headers: 'matcherbenchmark/matcherbenchmark.h', dependencies: dep_qt5)]
)
# SingleApplication issue#40 test app
singleapp = executable('SingleApplication',
cpp_args: ['-DQAPPLICATION_CLASS=QApplication'],
dependencies: [dep_qt5, dep_SingleApplication],
sources: ['singleapplication-40/main.cpp']
)
|