##// END OF EJS Templates
Updated Meson build defs...
jeandet -
r1441:27bb7f924014
parent child
Show More
@@ -1,1 +1,1
1 Subproject commit bf13292f0caf950333841131d023ed7cd96a97a2
1 Subproject commit 0c2e5a797af54f4f9e5ee1a715b642abb74d4368
@@ -1,3 +1,3
1 subdir('mockplugin')
1 #subdir('mockplugin')
2 subdir('python_providers')
2 subdir('python_providers')
3 #subdir('amda')
3 #subdir('amda')
@@ -1,49 +1,52
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')
26
25 cpp_args = ['-DPYTHON_PROVIDERS_LIB','-DQT_PLUGIN']
27 cpp_args = ['-DPYTHON_PROVIDERS_LIB','-DQT_PLUGIN']
26 if(get_option('default_library')=='static')
28 if(get_option('default_library')=='static')
27 cpp_args += ['-DQT_STATICPLUGIN']
29 cpp_args += ['-DQT_STATICPLUGIN']
28 endif
30 endif
29
31
30 sciqlop_python_interpreter = library('python_interpreter',
32 sciqlop_python_interpreter = library('python_interpreter',
31 ['src/python_interpreter.cpp'],
33 ['src/python_interpreter.cpp'],
32 include_directories : [python_providers_inc],
34 include_directories : [python_providers_inc],
33 dependencies : [pybind11_dep, sciqlop_core],
35 dependencies : [pybind11_dep, sciqlop_core],
34 cpp_args : ['-DQT_NO_KEYWORDS'],
36 cpp_args : ['-DQT_NO_KEYWORDS'],
35 install : true,
37 install : true,
36 install_dir : join_paths(get_option('libdir'), 'SciQLop')
38 install_dir : join_paths(get_option('libdir'), 'SciQLop')
37 )
39 )
38
40
39
41
40 sciqlop_python_providers = library('pythonproviders',
42 sciqlop_python_providers = library('pythonproviders',
41 python_providers_sources,
43 python_providers_sources,
42 python_providers_moc_files,
44 python_providers_moc_files,
45 python_providers_prep_files,
43 cpp_args : cpp_args,
46 cpp_args : cpp_args,
44 include_directories : [python_providers_inc],
47 include_directories : [python_providers_inc],
45 link_with : [sciqlop_python_interpreter],
48 link_with : [sciqlop_python_interpreter],
46 dependencies : [sciqlop_core, sciqlop_gui, pybind11_dep],
49 dependencies : [sciqlop_core, sciqlop_gui, pybind11_dep],
47 install : true,
50 install : true,
48 install_dir : join_paths(get_option('libdir'), 'SciQLop')
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