##// END OF EJS Templates
Auto copy test plugin to right output folder...
jeandet -
r1487:07c3e5db5351
parent child
Show More
@@ -0,0 +1,2
1
2 configure_file(input:'TestPlugin.py', output:'TestPlugin.py', copy:true)
@@ -1,46 +1,46
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()+'/../../subprojects/TimeSeries/include',
22 22 '-I'+meson.current_source_dir()+'/../../subprojects/cpp_utils/include',
23 23 '-I'+python3.get_path('include'),
24 24 '-I'+qt_headers_path
25 25 ]
26 26
27 27 foreach mod:qt5_modules
28 28 sciqlop_bindings_incs += ['-I'+qt_headers_path+'/'+mod]
29 29 endforeach
30 30
31 31
32 32 sciqlop_bindings_src = files('bindings.h', 'PyDataProvider.h', 'numpy_wrappers.h', 'numpy_wrappers.cpp')
33 33
34 34 subdir('SciQLopBindings')
35 subdir('plugins')
35 36
36 37 shiboken_dep = declare_dependency(compile_args: shiboken2_build_flags, link_args: shiboken2_link_flags)
37 38
38 39 sciqlop_bindings = python3.extension_module('SciQLopBindings',sciqlop_bindings_src,shiboken2_generator_out,
39 40 dependencies : [sciqlop_app_dep, python3.dependency(), shiboken_dep, cpp_utils_dep],
40 41 )
41 42
42 43
43 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 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
General Comments 0
You need to be logged in to leave comments. Login now