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
|
lib_adblockfilter = static_library('adblockfilter',
[ 'filterlist.cpp', 'options.cpp' ],
include_directories: smolbote_interfaces,
dependencies: [ dep_qt5 ]
)
dep_adblockfilter = declare_dependency(
include_directories: ['.', smolbote_interfaces],
link_with: lib_adblockfilter
)
#AdblockPlusFilterPlugin = shared_library('AdblockPlusPlugin',
# [ 'plugin/plugin.cpp',
# mod_qt5.preprocess(include_directories: smolbote_interfaces,
# moc_headers: 'plugin/plugin.h', dependencies: dep_qt5)
# ],
# include_directories: smolbote_interfaces,
# link_with: lib_adblockfilter,
# dependencies: dep_qt5,
# install: true,
# install_dir: get_option('libdir')/'smolbote/plugins'
#)
test('adblock: rule', executable('libadblockfilter_rule',
sources: 'test/rule.cpp',
dependencies: [ dep_qt5, dep_catch, dep_adblockfilter ]
))
test('adblock: options', executable('libadblockfilter_options',
sources: 'test/options.cpp',
dependencies: [ dep_qt5, dep_catch, dep_adblockfilter ]
))
test('adblock: filterlist', executable('libadblockfilter_filterlist',
sources: 'test/filterlist.cpp',
dependencies: [ dep_qt5, dep_catch, dep_adblockfilter ]
))
|