meson.build
38 lines
| 1.2 KiB
| text/plain
|
TextLexer
r620 | ||||
mockplugin_moc_headers = [ | ||||
'include/MockPlugin.h' | ||||
] | ||||
mockplugin_sources = [ | ||||
Alexandre Leroux
|
r796 | 'src/MockDefs.cpp', | ||
r620 | 'src/CosinusProvider.cpp', | |||
'src/MockPlugin.cpp' | ||||
] | ||||
r1333 | mockplugin_inc = include_directories(['include']) | |||
r620 | ||||
gen = generator(moc, | ||||
output : 'moc_@BASENAME@.cpp', | ||||
arguments : ['@INPUT@', | ||||
'-DPLUGIN_JSON_FILE_PATH="'+meson.source_root()+'/plugins/mockplugin/resources/mockplugin.json"', | ||||
'-I', meson.current_source_dir()+'/include', | ||||
r1333 | '-I', meson.current_source_dir()+'/../../core/include/', | |||
r620 | '-o', '@OUTPUT@']) | |||
mockplugin_moc_files = gen.process(mockplugin_moc_headers) | ||||
r1397 | cpp_args = ['-DMOCKPLUGIN_LIB','-DQT_PLUGIN'] | |||
if(get_option('default_library')=='static') | ||||
cpp_args += ['-DQT_STATICPLUGIN'] | ||||
endif | ||||
r620 | sciqlop_mockplugin = library('mockplugin', | |||
mockplugin_sources, | ||||
mockplugin_moc_files, | ||||
r1397 | cpp_args : cpp_args, | |||
r662 | include_directories : [mockplugin_inc], | |||
dependencies : [sciqlop_core, sciqlop_gui], | ||||
r1397 | install : true, | |||
install_dir : join_paths(get_option('libdir'), 'SciQLop') | ||||
r620 | ) | |||