@@ -1,1 +1,1 | |||
|
1 | Subproject commit bf13292f0caf950333841131d023ed7cd96a97a2 | |
|
1 | Subproject commit 0c2e5a797af54f4f9e5ee1a715b642abb74d4368 |
@@ -1,3 +1,3 | |||
|
1 | subdir('mockplugin') | |
|
1 | #subdir('mockplugin') | |
|
2 | 2 | subdir('python_providers') |
|
3 | 3 | #subdir('amda') |
@@ -1,49 +1,52 | |||
|
1 | 1 | |
|
2 | 2 | pybind11_dep = dependency('pybind11', required : true, fallback:['pybind11','pybind11_dep']) |
|
3 | 3 | |
|
4 | 4 | python_providers_moc_headers = [ |
|
5 | 5 | 'include/python_providers.h' |
|
6 | 6 | ] |
|
7 | 7 | |
|
8 | 8 | python_providers_sources = [ |
|
9 | 9 | 'src/python_providers.cpp' |
|
10 | 10 | ] |
|
11 | 11 | |
|
12 | 12 | python_providers_inc = include_directories(['include']) |
|
13 | 13 | |
|
14 | 14 | |
|
15 | 15 | gen = generator(moc, |
|
16 | 16 | output : 'moc_@BASENAME@.cpp', |
|
17 | 17 | arguments : ['@INPUT@', |
|
18 | 18 | '-DSCIQLOP_PLUGIN_JSON_FILE_PATH="'+meson.source_root()+'/plugins/python_providers/resources/python_providers.json"', |
|
19 | 19 | '-I', meson.current_source_dir()+'/include', |
|
20 | 20 | '-I', meson.current_source_dir()+'/../../core/include/', |
|
21 | 21 | '-o', '@OUTPUT@']) |
|
22 | 22 | |
|
23 | 23 | python_providers_moc_files = gen.process(python_providers_moc_headers) |
|
24 | 24 | |
|
25 | python_providers_prep_files = qt5.preprocess(qresources : 'resources/python_providers.qrc') | |
|
26 | ||
|
25 | 27 | cpp_args = ['-DPYTHON_PROVIDERS_LIB','-DQT_PLUGIN'] |
|
26 | 28 | if(get_option('default_library')=='static') |
|
27 | 29 | cpp_args += ['-DQT_STATICPLUGIN'] |
|
28 | 30 | endif |
|
29 | 31 | |
|
30 | 32 | sciqlop_python_interpreter = library('python_interpreter', |
|
31 | 33 | ['src/python_interpreter.cpp'], |
|
32 | 34 | include_directories : [python_providers_inc], |
|
33 | 35 | dependencies : [pybind11_dep, sciqlop_core], |
|
34 | 36 | cpp_args : ['-DQT_NO_KEYWORDS'], |
|
35 | 37 | install : true, |
|
36 | 38 | install_dir : join_paths(get_option('libdir'), 'SciQLop') |
|
37 | 39 | ) |
|
38 | 40 | |
|
39 | 41 | |
|
40 | 42 | sciqlop_python_providers = library('pythonproviders', |
|
41 | 43 | python_providers_sources, |
|
42 | 44 | python_providers_moc_files, |
|
45 | python_providers_prep_files, | |
|
43 | 46 | cpp_args : cpp_args, |
|
44 | 47 | include_directories : [python_providers_inc], |
|
45 | 48 | link_with : [sciqlop_python_interpreter], |
|
46 | 49 | dependencies : [sciqlop_core, sciqlop_gui, pybind11_dep], |
|
47 | 50 | install : true, |
|
48 | 51 | install_dir : join_paths(get_option('libdir'), 'SciQLop') |
|
49 | 52 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now