aboutsummaryrefslogtreecommitdiff
path: root/plugins/ProfileEditor/meson.build
blob: caa3a756a0cdb3ecfb46694db150cb3c0d573765 (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
ProfileEditorPlugin_moc = mod_qt5.preprocess(
    include_directories: include,
    moc_headers: ['profileeditorplugin.h', 'forms/profilemanagerdialog.h', 'forms/profileview.h', 'forms/newprofiledialog.h', 'forms/newhttpheaderdialog.h'],
    ui_files: ['forms/profilemanagerdialog.ui', 'forms/profileview.ui', 'forms/newprofiledialog.ui', 'forms/newhttpheaderdialog.ui'],
    dependencies: dep_qt5
)

ProfileEditorPlugin_lib = shared_library('ProfileEditorPlugin', 
    [interfaces_moc, ProfileEditorPlugin_moc, 'profileeditorplugin.cpp', 'forms/profilemanagerdialog.cpp', 'forms/profileview.cpp', 'forms/newprofiledialog.cpp',  'forms/newhttpheaderdialog.cpp'],
    dependencies: dep_qt5,
    include_directories: include,
    install: true, install_dir: join_paths(get_option('libdir'), 'smolbote/plugins')
)

test('run', executable('ProfileEditor', 'test/main.cpp',
  link_with: ProfileEditorPlugin,
  include_directories: plugininterfaces_include,
  dependencies: [ dep_qt5 ]),
  args: [ '-platform', 'offscreen' ],
  env: 'autoclose=1',
  suite: 'ProfileEdtitorPlugin'
)

test('load', poi_plugin_loader, suite: 'ProfileEditorPlugin', args: ProfileEditorPlugin.full_path())