##// END OF EJS Templates
added appstream data...
jeandet -
r1402:ca5a77f2efbb
parent child
Show More
@@ -0,0 +1,21
1 <?xml version="1.0" encoding="UTF-8"?>
2 <component type="desktop-application">
3 <id>SciQLOP</id>
4 <metadata_license>CC-BY-SA-4.0</metadata_license>
5 <project_license>GPL-3.0</project_license>
6 <name>SciQLOP</name>
7 <summary>SciQLOP (SCIentific Qt application for Learning from Observations of Plasmas)</summary>
8 <description>
9 <p>Efficient and Ergonomic application to explore spacecraft in situ plasma data and create catalogs of events.</p>
10 </description>
11 <launchable type="desktop-id">SciQLOP.desktop</launchable>
12 <url type="homepage">https://github.com/LaboratoryOfPlasmaPhysics/SciQLOP</url>
13 <screenshots>
14 <screenshot type="default">
15 <image>https://raw.githubusercontent.com/LaboratoryOfPlasmaPhysics/SciQLOP/master/pictures/sciqlop_screenshot.png</image>
16 </screenshot>
17 </screenshots>
18 <provides>
19 <id>SciQLOP.desktop</id>
20 </provides>
21 </component> No newline at end of file
@@ -1,34 +1,35
1 include_directories(include)
1 include_directories(include)
2
2
3 FILE (GLOB_RECURSE app_SRCS
3 FILE (GLOB_RECURSE app_SRCS
4 include/*.h
4 include/*.h
5 src/*.cpp
5 src/*.cpp
6 resources/*.qrc
6 resources/*.qrc
7 )
7 )
8
8
9 QT5_WRAP_UI(UiGenerated_SRCS
9 QT5_WRAP_UI(UiGenerated_SRCS
10 ui/MainWindow.ui
10 ui/MainWindow.ui
11 )
11 )
12
12
13 add_executable(sciqlopapp WIN32 ${app_SRCS} ${UiGenerated_SRCS})
13 add_executable(sciqlopapp WIN32 ${app_SRCS} ${UiGenerated_SRCS})
14 if(NOT BUILD_SHARED_LIBS)
14 if(NOT BUILD_SHARED_LIBS)
15 add_definitions(-DQT_STATICPLUGIN)
15 add_definitions(-DQT_STATICPLUGIN)
16 target_link_libraries(sciqlopapp mockplugin)
16 target_link_libraries(sciqlopapp mockplugin)
17 target_link_libraries(sciqlopapp amdaplugin)
17 target_link_libraries(sciqlopapp amdaplugin)
18 endif()
18 endif()
19
19
20 target_link_libraries(sciqlopapp
20 target_link_libraries(sciqlopapp
21 Qt5::Core
21 Qt5::Core
22 Qt5::Widgets
22 Qt5::Widgets
23 Qt5::Network
23 Qt5::Network
24 Qt5::PrintSupport
24 Qt5::PrintSupport
25 Qt5::Svg
25 Qt5::Svg
26 sciqlopgui
26 sciqlopgui
27 sciqlopcore
27 sciqlopcore
28 )
28 )
29
29
30 install(TARGETS sciqlopapp DESTINATION ${CMAKE_INSTALL_BINDIR})
30 install(TARGETS sciqlopapp DESTINATION ${CMAKE_INSTALL_BINDIR})
31 install(FILES resources/SciQLOP.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/)
31 install(FILES resources/SciQLOP.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/)
32 install(FILES resources/SciQLOP.appdata.xml DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo/)
32 install(FILES resources/sciqlopLOGO.svg DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/SciQLOP/icons/)
33 install(FILES resources/sciqlopLOGO.svg DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/SciQLOP/icons/)
33
34
34
35
@@ -1,50 +1,51
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'
24 elif host_machine.system()=='linux'
25 install_data('app/resources/sciqlopLOGO.svg', install_dir : 'share/icons/hicolor/scalable/')
25 install_data('app/resources/sciqlopLOGO.svg', install_dir : 'share/icons/hicolor/scalable/')
26 install_data('app/resources/SciQLOP.desktop', install_dir : 'share/applications')
26 install_data('app/resources/SciQLOP.desktop', install_dir : 'share/applications')
27 install_data('app/resources/SciQLOP.appdata.xml', install_dir : 'share/metainfo')
27 endif
28 endif
28
29
29 # Sets AMDA server that will be used during execution.
30 # Sets AMDA server that will be used during execution.
30 # Available values are:
31 # Available values are:
31 # - "default": default AMDA server
32 # - "default": default AMDA server
32 # - "amdatest": AMDA test server
33 # - "amdatest": AMDA test server
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)
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)
34 # - "localhost": use local AMDA server
35 # - "localhost": use local AMDA server
35 # Any other value will lead to the use of the default server
36 # Any other value will lead to the use of the default server
36 add_project_arguments('-DSCIQLOP_AMDA_SERVER="hybrid"', language : 'cpp')
37 add_project_arguments('-DSCIQLOP_AMDA_SERVER="hybrid"', language : 'cpp')
37
38
38 subdir('core')
39 subdir('core')
39 subdir('gui')
40 subdir('gui')
40 subdir('plugins')
41 subdir('plugins')
41 subdir('app')
42 subdir('app')
42
43
43 cppcheck = find_program('cppcheck', required : false)
44 cppcheck = find_program('cppcheck', required : false)
44
45
45 if cppcheck.found()
46 if cppcheck.found()
46 run_target('cppcheck',
47 run_target('cppcheck',
47 command : [cppcheck, '--enable=all',
48 command : [cppcheck, '--enable=all',
48 '--project=' + join_paths(meson.build_root(), 'compile_commands.json')]
49 '--project=' + join_paths(meson.build_root(), 'compile_commands.json')]
49 )
50 )
50 endif No newline at end of file
51 endif
General Comments 0
You need to be logged in to leave comments. Login now