@@ -1,51 +1,52 | |||||
1 | project('SciQLOP', 'cpp',default_options : ['cpp_std=c++17'], meson_version:'>=0.47.0') |
|
1 | project('SciQLOP', 'cpp',default_options : ['cpp_std=c++17'], meson_version:'>=0.47.0') | |
|
2 | add_global_arguments('-DSCIQLOP_VERSION="1.0.0"', language : 'cpp') | |||
2 |
|
3 | |||
3 | qt5 = import('qt5') |
|
4 | qt5 = import('qt5') | |
4 | qt5core = dependency('qt5', modules : 'Core') |
|
5 | qt5core = dependency('qt5', modules : 'Core') | |
5 | qt5widgets = dependency('qt5', modules : 'Widgets') |
|
6 | qt5widgets = dependency('qt5', modules : 'Widgets') | |
6 | qt5gui = dependency('qt5', modules : 'Gui') |
|
7 | qt5gui = dependency('qt5', modules : 'Gui') | |
7 | qt5svg = dependency('qt5', modules : 'Svg') |
|
8 | qt5svg = dependency('qt5', modules : 'Svg') | |
8 | qt5xml = dependency('qt5', modules : 'Xml') |
|
9 | qt5xml = dependency('qt5', modules : 'Xml') | |
9 | qt5network = dependency('qt5', modules : 'Network') |
|
10 | qt5network = dependency('qt5', modules : 'Network') | |
10 | qt5printsupport = dependency('qt5', modules : 'PrintSupport') |
|
11 | qt5printsupport = dependency('qt5', modules : 'PrintSupport') | |
11 | qt5Concurrent = dependency('qt5', modules : 'Concurrent') |
|
12 | qt5Concurrent = dependency('qt5', modules : 'Concurrent') | |
12 | qt5test = dependency('qt5', modules : 'Test') |
|
13 | qt5test = dependency('qt5', modules : 'Test') | |
13 |
|
14 | |||
14 | moc = find_program('moc-qt5','moc') |
|
15 | moc = find_program('moc-qt5','moc') | |
15 | rcc = find_program('rcc-qt5','rcc') |
|
16 | rcc = find_program('rcc-qt5','rcc') | |
16 |
|
17 | |||
17 | if build_machine.system()=='darwin' |
|
18 | if build_machine.system()=='darwin' | |
18 | add_global_link_arguments('-headerpad_max_install_names', language : 'cpp') |
|
19 | add_global_link_arguments('-headerpad_max_install_names', language : 'cpp') | |
19 | install_data('build_cfg/mac/sciqlopLOGO.icns', install_dir : 'Contents/Resources') |
|
20 | install_data('build_cfg/mac/sciqlopLOGO.icns', install_dir : 'Contents/Resources') | |
20 | install_data('build_cfg/mac/Info.plist', install_dir : 'Contents') |
|
21 | install_data('build_cfg/mac/Info.plist', install_dir : 'Contents') | |
21 | meson.add_install_script('build_cfg/mac/install_script.sh') |
|
22 | meson.add_install_script('build_cfg/mac/install_script.sh') | |
22 | elif host_machine.system()=='windows' |
|
23 | elif host_machine.system()=='windows' | |
23 | meson.add_install_script('build_cfg/windows/install_script.sh') |
|
24 | meson.add_install_script('build_cfg/windows/install_script.sh') | |
24 | elif host_machine.system()=='linux' |
|
25 | elif host_machine.system()=='linux' | |
25 | install_data('app/resources/sciqlopLOGO.svg', install_dir : 'share/icons/hicolor/scalable/') |
|
26 | install_data('app/resources/sciqlopLOGO.svg', install_dir : 'share/icons/hicolor/scalable/') | |
26 | install_data('app/resources/SciQLOP.desktop', install_dir : 'share/applications') |
|
27 | install_data('app/resources/SciQLOP.desktop', install_dir : 'share/applications') | |
27 | install_data('app/resources/SciQLOP.appdata.xml', install_dir : 'share/metainfo') |
|
28 | install_data('app/resources/SciQLOP.appdata.xml', install_dir : 'share/metainfo') | |
28 | endif |
|
29 | endif | |
29 |
|
30 | |||
30 | # Sets AMDA server that will be used during execution. |
|
31 | # Sets AMDA server that will be used during execution. | |
31 | # Available values are: |
|
32 | # Available values are: | |
32 | # - "default": default AMDA server |
|
33 | # - "default": default AMDA server | |
33 | # - "amdatest": AMDA test server |
|
34 | # - "amdatest": AMDA test server | |
34 | # - "hybrid": use both the default server and the test server (the server used is relative to each product, according to its "server" property in the JSON file) |
|
35 | # - "hybrid": use both the default server and the test server (the server used is relative to each product, according to its "server" property in the JSON file) | |
35 | # - "localhost": use local AMDA server |
|
36 | # - "localhost": use local AMDA server | |
36 | # Any other value will lead to the use of the default server |
|
37 | # Any other value will lead to the use of the default server | |
37 | add_project_arguments('-DSCIQLOP_AMDA_SERVER="hybrid"', language : 'cpp') |
|
38 | add_project_arguments('-DSCIQLOP_AMDA_SERVER="hybrid"', language : 'cpp') | |
38 |
|
39 | |||
39 | subdir('core') |
|
40 | subdir('core') | |
40 | subdir('gui') |
|
41 | subdir('gui') | |
41 | subdir('plugins') |
|
42 | subdir('plugins') | |
42 | subdir('app') |
|
43 | subdir('app') | |
43 |
|
44 | |||
44 | cppcheck = find_program('cppcheck', required : false) |
|
45 | cppcheck = find_program('cppcheck', required : false) | |
45 |
|
46 | |||
46 | if cppcheck.found() |
|
47 | if cppcheck.found() | |
47 | run_target('cppcheck', |
|
48 | run_target('cppcheck', | |
48 | command : [cppcheck, '--enable=all', |
|
49 | command : [cppcheck, '--enable=all', | |
49 | '--project=' + join_paths(meson.build_root(), 'compile_commands.json')] |
|
50 | '--project=' + join_paths(meson.build_root(), 'compile_commands.json')] | |
50 | ) |
|
51 | ) | |
51 | endif |
|
52 | endif |
General Comments 0
You need to be logged in to leave comments.
Login now