##// END OF EJS Templates
Added AppImage build support for linux...
jeandet -
r1391:80178174c9f1
parent child
Show More
@@ -0,0 +1,12
1 #!/bin/bash
2 mkdir build
3 cd build
4 meson --prefix=/usr ..
5 ninja
6 DESTDIR=AppDir ninja install
7 wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
8 chmod +x linuxdeploy-x86_64.AppImage
9 LD_LIBRARY_PATH=AppDir/usr/lib/ ./linuxdeploy-x86_64.AppImage --appdir AppDir
10 mv ./AppDir/usr/lib64/*.so ./AppDir/usr/lib/
11 mv ./AppDir/usr/lib/*plugin.so ./AppDir/usr/bin/
12 LD_LIBRARY_PATH=AppDir/usr/lib/ ./linuxdeploy-x86_64.AppImage --appdir AppDir --output appimage No newline at end of file
@@ -1,18 +1,17
1 [Desktop Entry]
1 [Desktop Entry]
2 Version=1.0
2 Version=1.0
3 Name=QLop
3 Name=SciQLOP
4 Name[en_US]=SciQLOP
5
4
6 Type=Application
5 Type=Application
7 GenericName=SciQLOP
6 GenericName=SciQLOP
8 Comment=SCIentific Qt application for Learning from Observations of Plasmas
7 Comment=SCIentific Qt application for Learning from Observations of Plasmas
9
8
10 Exec=sciqlopapp
9 Exec=sciqlop
11 Icon=/usr/share/SciQLOP/icons/sciqlopLOGO.svg
10 Icon=sciqlopLOGO
12 Terminal=false
11 Terminal=false
13
12
14 Categories=Qt;Education;Science;
13 Categories=Qt;Education;Science;
15
14
16 #MimeType=text/x-python;
15 #MimeType=text/x-python;
17
16
18
17
@@ -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
General Comments 0
You need to be logged in to leave comments. Login now