From 07c3e5db5351402d58f17e5356769c354a414681 2019-09-17 14:40:11 From: Alexis Jeandet Date: 2019-09-17 14:40:11 Subject: [PATCH] Auto copy test plugin to right output folder Signed-off-by: Alexis Jeandet --- diff --git a/app/PySide2-bindings/meson.build b/app/PySide2-bindings/meson.build index 25ff924..ef45c06 100644 --- a/app/PySide2-bindings/meson.build +++ b/app/PySide2-bindings/meson.build @@ -32,6 +32,7 @@ endforeach sciqlop_bindings_src = files('bindings.h', 'PyDataProvider.h', 'numpy_wrappers.h', 'numpy_wrappers.cpp') subdir('SciQLopBindings') +subdir('plugins') shiboken_dep = declare_dependency(compile_args: shiboken2_build_flags, link_args: shiboken2_link_flags) @@ -41,6 +42,5 @@ sciqlop_bindings = python3.extension_module('SciQLopBindings',sciqlop_bindings_s configure_file(input:'main.py', output:'main.py', copy:true) -configure_file(input:'TestPlugin.py', output:'TestPlugin.py', copy:true) executable('sciqlop', 'main.cpp', dependencies :python3.dependency()) diff --git a/app/PySide2-bindings/TestPlugin.py b/app/PySide2-bindings/plugins/TestPlugin.py similarity index 100% rename from app/PySide2-bindings/TestPlugin.py rename to app/PySide2-bindings/plugins/TestPlugin.py diff --git a/app/PySide2-bindings/plugins/meson.build b/app/PySide2-bindings/plugins/meson.build new file mode 100644 index 0000000..3b98041 --- /dev/null +++ b/app/PySide2-bindings/plugins/meson.build @@ -0,0 +1,2 @@ + +configure_file(input:'TestPlugin.py', output:'TestPlugin.py', copy:true)