##// END OF EJS Templates
Added new main wrapper to meson build desc...
jeandet -
r1481:8650293c5c31
parent child
Show More
@@ -1,43 +1,45
1 1 shiboken2 = find_program('shiboken2')
2 2 qmake = find_program('qmake-qt5','qmake')
3 3
4 4 pymod = import('python')
5 5 python3 = pymod.find_installation('python3', modules:['PySide2','shiboken2', 'shiboken2_generator'])
6 6
7 7 qt5_modules = ['QtCore','QtGui','QtWidgets']
8 8
9 9 qt_headers_path = run_command(qmake, '-query', 'QT_INSTALL_HEADERS').stdout().strip('\n')
10 10 generated_srcs = run_command(python3, 'src_list.py', 'meson').stdout().split(';')
11 11
12 12 modules_arg = '--modules=@0@'.format(','.join(qt5_modules))
13 13
14 14 shiboken2_build_flags = run_command(python3, 'shiboken-helper.py', '--includes', modules_arg).stdout().strip('\n').split(' ')
15 15 shiboken2_link_flags = run_command(python3, 'shiboken-helper.py', '--libs', modules_arg).stdout().strip('\n').split(' ')
16 16 shiboken2_typesystem = run_command(python3, 'shiboken-helper.py', '--typesystem').stdout().strip('\n')
17 17
18 18 sciqlop_bindings_incs = shiboken2_build_flags + [
19 19 '-I'+meson.current_source_dir()+'/../../gui/include',
20 20 '-I'+meson.current_source_dir()+'/../../core/include',
21 21 '-I'+meson.current_source_dir()+'/../../core/external/TimeSeries/include',
22 22 '-I'+python3.get_path('include'),
23 23 '-I'+qt_headers_path
24 24 ]
25 25
26 26 foreach mod:qt5_modules
27 27 sciqlop_bindings_incs += ['-I'+qt_headers_path+'/'+mod]
28 28 endforeach
29 29
30 30
31 31 sciqlop_bindings_src = files('bindings.h', 'PyDataProvider.h', 'numpy_wrappers.h', 'numpy_wrappers.cpp')
32 32
33 33 subdir('SciQLopBindings')
34 34
35 35 shiboken_dep = declare_dependency(compile_args: shiboken2_build_flags, link_args: shiboken2_link_flags)
36 36
37 37 sciqlop_bindings = python3.extension_module('SciQLopBindings',sciqlop_bindings_src,shiboken2_generator_out,
38 38 dependencies : [sciqlop_app_dep, python3.dependency(), shiboken_dep],
39 39 )
40 40
41 41
42 42 configure_file(input:'main.py', output:'main.py', copy:true)
43 43 configure_file(input:'TestPlugin.py', output:'TestPlugin.py', copy:true)
44
45 executable('sciqlop', 'main.cpp', dependencies :python3.dependency())
General Comments 0
You need to be logged in to leave comments. Login now