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