@@ -1,37 +1,44 | |||||
1 | project('SciQLOP', 'cpp',default_options : ['cpp_std=c++14']) |
|
1 | project('SciQLOP', 'cpp',default_options : ['cpp_std=c++14']) | |
2 |
|
2 | |||
3 | qt5 = import('qt5') |
|
3 | qt5 = import('qt5') | |
4 | qt5core = dependency('qt5', modules : 'Core') |
|
4 | qt5core = dependency('qt5', modules : 'Core') | |
5 | qt5widgets = dependency('qt5', modules : 'Widgets') |
|
5 | qt5widgets = dependency('qt5', modules : 'Widgets') | |
6 | qt5gui = dependency('qt5', modules : 'Gui') |
|
6 | qt5gui = dependency('qt5', modules : 'Gui') | |
7 | qt5svg = dependency('qt5', modules : 'Svg') |
|
7 | qt5svg = dependency('qt5', modules : 'Svg') | |
8 | qt5xml = dependency('qt5', modules : 'Xml') |
|
8 | qt5xml = dependency('qt5', modules : 'Xml') | |
9 | qt5network = dependency('qt5', modules : 'Network') |
|
9 | qt5network = dependency('qt5', modules : 'Network') | |
10 | qt5printsupport = dependency('qt5', modules : 'PrintSupport') |
|
10 | qt5printsupport = dependency('qt5', modules : 'PrintSupport') | |
11 | qt5test = dependency('qt5', modules : 'Test') |
|
11 | qt5test = dependency('qt5', modules : 'Test') | |
12 |
|
12 | |||
13 | moc = find_program('moc-qt5','moc') |
|
13 | moc = find_program('moc-qt5','moc') | |
14 | rcc = find_program('rcc-qt5','rcc') |
|
14 | rcc = find_program('rcc-qt5','rcc') | |
15 |
|
15 | |||
16 | if build_machine.system()=='darwin' |
|
16 | if build_machine.system()=='darwin' | |
17 | add_global_link_arguments('-headerpad_max_install_names', language : 'cpp') |
|
17 | add_global_link_arguments('-headerpad_max_install_names', language : 'cpp') | |
18 | install_data('build_cfg/mac/sciqlopLOGO.icns', install_dir : 'Contents/Resources') |
|
18 | install_data('build_cfg/mac/sciqlopLOGO.icns', install_dir : 'Contents/Resources') | |
19 | install_data('build_cfg/mac/Info.plist', install_dir : 'Contents') |
|
19 | install_data('build_cfg/mac/Info.plist', install_dir : 'Contents') | |
20 | meson.add_install_script('build_cfg/mac/install_script.sh') |
|
20 | meson.add_install_script('build_cfg/mac/install_script.sh') | |
21 | elif host_machine.system()=='windows' |
|
21 | elif host_machine.system()=='windows' | |
22 | meson.add_install_script('build_cfg/windows/install_script.sh') |
|
22 | meson.add_install_script('build_cfg/windows/install_script.sh') | |
23 | endif |
|
23 | endif | |
24 |
|
24 | |||
|
25 | # Sets AMDA server that will be used during execution. | |||
|
26 | # Available values are: | |||
|
27 | # - "default": default AMDA server | |||
|
28 | # - "amdatest": AMDA test server | |||
|
29 | # Any other value will lead to the use of the default server | |||
|
30 | add_project_arguments('-DSCIQLOP_AMDA_SERVER="default"', language : 'cpp') | |||
|
31 | ||||
25 | subdir('core') |
|
32 | subdir('core') | |
26 | subdir('gui') |
|
33 | subdir('gui') | |
27 | subdir('app') |
|
34 | subdir('app') | |
28 | subdir('plugins') |
|
35 | subdir('plugins') | |
29 |
|
36 | |||
30 | cppcheck = find_program('cppcheck', required : false) |
|
37 | cppcheck = find_program('cppcheck', required : false) | |
31 |
|
38 | |||
32 | if cppcheck.found() |
|
39 | if cppcheck.found() | |
33 | run_target('cppcheck', |
|
40 | run_target('cppcheck', | |
34 | command : [cppcheck, '--enable=all', |
|
41 | command : [cppcheck, '--enable=all', | |
35 | '--project=' + join_paths(meson.build_root(), 'compile_commands.json')] |
|
42 | '--project=' + join_paths(meson.build_root(), 'compile_commands.json')] | |
36 | ) |
|
43 | ) | |
37 | endif |
|
44 | endif |
General Comments 0
You need to be logged in to leave comments.
Login now