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