From 8baa41584828b1e557046a790033e2b0f8e0ff5a Mon Sep 17 00:00:00 2001 From: Mystro256 Date: Sat, 10 Dec 2016 18:33:01 -0500 Subject: [PATCH] Add linux appdata and fixes Desktop files aren't installed for linux by default --- CMakeLists.txt | 12 ++++++++++++ src/gtk/gvbam.appdata.xml | 19 +++++++++++++++++++ src/wx/wxvbam.appdata.xml | 19 +++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 src/gtk/gvbam.appdata.xml create mode 100644 src/wx/wxvbam.appdata.xml diff --git a/CMakeLists.txt b/CMakeLists.txt index b98afb08..a279f1f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -721,6 +721,18 @@ IF( UNIX ) ENDIF( ENABLE_WX ) ENDIF( UNIX ) +# linux data files +IF( NOT WIN32 AND NOT APPLE ) + IF( ENABLE_GTK OR ENABLE_GTK3 ) + INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/gtk/gvbam.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications) + INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/gtk/gvbam.appdata.xml DESTINATION ${CMAKE_INSTALL_PREFIX}/share/appdata) + ENDIF( ENABLE_GTK OR ENABLE_GTK3 ) + IF( ENABLE_WX ) + INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/wx/wxvbam.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications) + INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/wx/wxvbam.appdata.xml DESTINATION ${CMAKE_INSTALL_PREFIX}/share/appdata) + ENDIF( ENABLE_WX ) +ENDIF( NOT WIN32 AND NOT APPLE ) + SET(CPACK_GENERATOR "ZIP") set(CPACK_SOURCE_GENERATOR "TGZ") SET(CPACK_PACKAGE_VERSION_MAJOR "2") diff --git a/src/gtk/gvbam.appdata.xml b/src/gtk/gvbam.appdata.xml new file mode 100644 index 00000000..7bde09c5 --- /dev/null +++ b/src/gtk/gvbam.appdata.xml @@ -0,0 +1,19 @@ + + + gvbam.desktop + GPLv2 + GPLv2 + VBAM (GTK) + GTK3 GUI for VBA-M, a high compatibility Gameboy Advance Emulator + +

+ VisualBoyAdvance-M is a Nintendo Game Boy Emulator with high compatibility with + commercial games. It emulates the Nintendo Game Boy Advance hand held console, + in addition to the original Game Boy hand held systems and its Super and Color + variants. VBA-M is a continued development of the now inactive VisualBoy + Advance project, with many improvements from various developments of VBA. +

+
+ http://vba-m.com/ + https://github.com/visualboyadvance-m/visualboyadvance-m/issues +
diff --git a/src/wx/wxvbam.appdata.xml b/src/wx/wxvbam.appdata.xml new file mode 100644 index 00000000..a5dcf093 --- /dev/null +++ b/src/wx/wxvbam.appdata.xml @@ -0,0 +1,19 @@ + + + wxvbam.desktop + GPLv2 + GPLv2 + VBAM (WX) + WX GUI for VBA-M, a high compatibility Gameboy Advance Emulator + +

+ VisualBoyAdvance-M is a Nintendo Game Boy Emulator with high compatibility with + commercial games. It emulates the Nintendo Game Boy Advance hand held console, + in addition to the original Game Boy hand held systems and its Super and Color + variants. VBA-M is a continued development of the now inactive VisualBoy + Advance project, with many improvements from various developments of VBA. +

+
+ http://vba-m.com/ + https://github.com/visualboyadvance-m/visualboyadvance-m/issues +