##// END OF EJS Templates
Updated OSX build with Python bundled inside SciQLop and also stick to Meson 0.49.1...
Updated OSX build with Python bundled inside SciQLop and also stick to Meson 0.49.1 Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r1397:348e733132e4
r1453:157b5409d318
Show More
meson.build
38 lines | 1.2 KiB | text/plain | TextLexer
mockplugin_moc_headers = [
'include/MockPlugin.h'
]
mockplugin_sources = [
'src/MockDefs.cpp',
'src/CosinusProvider.cpp',
'src/MockPlugin.cpp'
]
mockplugin_inc = include_directories(['include'])
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',
'-I', meson.current_source_dir()+'/../../core/include/',
'-o', '@OUTPUT@'])
mockplugin_moc_files = gen.process(mockplugin_moc_headers)
cpp_args = ['-DMOCKPLUGIN_LIB','-DQT_PLUGIN']
if(get_option('default_library')=='static')
cpp_args += ['-DQT_STATICPLUGIN']
endif
sciqlop_mockplugin = library('mockplugin',
mockplugin_sources,
mockplugin_moc_files,
cpp_args : cpp_args,
include_directories : [mockplugin_inc],
dependencies : [sciqlop_core, sciqlop_gui],
install : true,
install_dir : join_paths(get_option('libdir'), 'SciQLop')
)