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