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