##// END OF EJS Templates
[Meson] Install python interpreter lib in lib folder instead of plugin folder...
jeandet -
r1444:46f8d6c8fcea
parent child
Show More
@@ -1,52 +1,51
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 25 python_providers_prep_files = qt5.preprocess(qresources : 'resources/python_providers.qrc')
26 26
27 27 cpp_args = ['-DPYTHON_PROVIDERS_LIB','-DQT_PLUGIN']
28 28 if(get_option('default_library')=='static')
29 29 cpp_args += ['-DQT_STATICPLUGIN']
30 30 endif
31 31
32 32 sciqlop_python_interpreter = library('python_interpreter',
33 33 ['src/python_interpreter.cpp'],
34 34 include_directories : [python_providers_inc],
35 35 dependencies : [pybind11_dep, sciqlop_core],
36 36 cpp_args : ['-DQT_NO_KEYWORDS'],
37 install : true,
38 install_dir : join_paths(get_option('libdir'), 'SciQLop')
37 install : true
39 38 )
40 39
41 40
42 41 sciqlop_python_providers = library('pythonproviders',
43 42 python_providers_sources,
44 43 python_providers_moc_files,
45 44 python_providers_prep_files,
46 45 cpp_args : cpp_args,
47 46 include_directories : [python_providers_inc],
48 47 link_with : [sciqlop_python_interpreter],
49 48 dependencies : [sciqlop_core, sciqlop_gui, pybind11_dep],
50 49 install : true,
51 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