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