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
|
webengine_moc = mod_qt5.preprocess(
moc_headers: [ 'webprofile.h', 'webpage.h', 'webview.h' ],
dependencies: dep_qt5
)
dep_webengine = declare_dependency(
include_directories: [ '.', smolbote_include ],
link_with: static_library('webengine', dependencies: [ dep_qt5, dep_spdlog ],
include_directories: smolbote_include,
sources: [ 'webprofile.cpp', 'urlinterceptor.cpp', 'webprofilemanager.cpp', 'webpage.cpp', 'webview.cpp', 'webviewcontextmenu.cpp', webengine_moc ])
)
poi_sourceset.add(dep_webengine)
test('profile', executable('profile', 'test/profile.cpp', dependencies: [ dep_qt5, dep_webengine, dep_catch ]),
env: { 'PROFILE' : meson.current_source_dir()/'test/testing.profile' },
suite: 'webengine')
test('profilemanager', executable('profilemanager', 'test/profilemanager.cpp', dependencies: [ dep_qt5, dep_webengine, dep_catch ]),
env: { 'PROFILES' : meson.current_source_dir()/'test/testing.profile' },
suite: 'webengine')
test('view', executable('view', 'test/view.cpp', dependencies: [ dep_qt5, dep_webengine, dep_catch ]),
args: [ '-platform', 'offscreen' ],
env: { 'PROFILE' : meson.current_source_dir()/'test/testing.profile',
'URL' : meson.current_source_dir()/'test/sample.html' },
suite: 'webengine')
|