aboutsummaryrefslogtreecommitdiff
path: root/plugins/ProfileEditor/meson.build
blob: 47a1c176b2145f0cce8cff958ff8aa2e4967920f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ProfileEditorPlugin_moc = mod_qt5.preprocess(
  include_directories: plugininterfaces_include,
  moc_headers: [ 'profileeditorplugin.h', 'forms/profilemanagerdialog.h', 'forms/profileview.h' ],
  ui_files: [ 'forms/profilemanagerdialog.ui', 'forms/profileview.ui' ],
)

ProfileEditorPlugin = shared_library('ProfileEditorPlugin', 
  [ ProfileEditorPlugin_moc, 'profileeditorplugin.cpp', 'forms/profilemanagerdialog.cpp', 'forms/profileview.cpp', 'forms/settingstable.cpp' ],
  include_directories: plugininterfaces_include,
  dependencies: [ dep_qt5 ],
  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())