aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2019-11-16 22:28:53 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2019-11-16 22:28:53 +0800
commit9c2eb04f6baadf33f60bf4af35caec77aebf48ff (patch)
tree77be5eede3ed6115a2e107b4a50b48a43719e9e0
parentaf657df8a4accb3758138769e3cc5b86530b57d5 (diff)
downloadQMidiPlayer-9c2eb04f6baadf33f60bf4af35caec77aebf48ff.tar.xz
Guessworks trying to make it install and produce packages again.
(which it won't, because Debian still doesn't have fluidsynth >= 2.0) Also lite version is currently out of scope.
-rw-r--r--debian/control13
-rw-r--r--debian/qmidiplayer-plugin-keyboard.install1
-rw-r--r--midifmt-plugin/CMakeLists.txt2
-rw-r--r--qmidiplayer-desktop/CMakeLists.txt11
-rw-r--r--sample-plugin/CMakeLists.txt2
-rw-r--r--simple-visualization/CMakeLists.txt2
-rw-r--r--visualization/CMakeLists.txt2
7 files changed, 29 insertions, 4 deletions
diff --git a/debian/control b/debian/control
index 703ad68..05465f6 100644
--- a/debian/control
+++ b/debian/control
@@ -23,10 +23,10 @@ Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Midi player based on Qt and fluidsynth.
-Package: qmidiplayer-lite
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: Midi player based on Qt and fluidsynth (Lite version).
+#Package: qmidiplayer-lite
+#Architecture: any
+#Depends: ${shlibs:Depends}, ${misc:Depends}
+#Description: Midi player based on Qt and fluidsynth (Lite version).
Package: qmidiplayer-plugin-visualization
Architecture: any
@@ -37,3 +37,8 @@ Package: qmidiplayer-plugin-midifmt
Architecture: any
Depends: qmidiplayer, ${shlibs:Depends}, ${misc:Depends}
Description: Extra midi formats support for QMidiPlayer.
+
+Package: qmidiplayer-plugin-keyboard
+Architecture: any
+Depends: qmidiplayer, ${shlibs:Depends}, ${misc:Depends}
+Description: Simple keyboard visualization plugin for QMidiPlayer.
diff --git a/debian/qmidiplayer-plugin-keyboard.install b/debian/qmidiplayer-plugin-keyboard.install
new file mode 100644
index 0000000..e5d9a7b
--- /dev/null
+++ b/debian/qmidiplayer-plugin-keyboard.install
@@ -0,0 +1 @@
+usr/lib/qmidiplayer/libsimple-visualization.*
diff --git a/midifmt-plugin/CMakeLists.txt b/midifmt-plugin/CMakeLists.txt
index 5b1902a..02cd4cc 100644
--- a/midifmt-plugin/CMakeLists.txt
+++ b/midifmt-plugin/CMakeLists.txt
@@ -8,3 +8,5 @@ include_directories(${PROJECT_SOURCE_DIR}/include/)
add_library(midifmt-plugin MODULE
${midifmt-plugin_SOURCES}
)
+
+install(TARGETS midifmt-plugin LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/qmidiplayer/)
diff --git a/qmidiplayer-desktop/CMakeLists.txt b/qmidiplayer-desktop/CMakeLists.txt
index 7064e28..87741f8 100644
--- a/qmidiplayer-desktop/CMakeLists.txt
+++ b/qmidiplayer-desktop/CMakeLists.txt
@@ -73,3 +73,14 @@ target_link_libraries(qmidiplayer
${CMAKE_THREAD_LIBS_INIT}
${CMAKE_DL_LIBS}
)
+
+install(TARGETS qmidiplayer)
+
+install(DIRECTORY ${PROJECT_SOURCE_DIR}/doc DESTINATION ${CMAKE_INSTALL_PREFIX}/share/qmidiplayer)
+install(DIRECTORY ${PROJECT_SOURCE_DIR}/img DESTINATION ${CMAKE_INSTALL_PREFIX}/share/qmidiplayer FILES_MATCHING PATTERN "*.png")
+install(FILES qmidiplayer.appdata.xml DESTINATION ${CMAKE_INSTALL_PREFIX}/share/appdata)
+install(FILES qmidiplayer.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)
+install(FILES ${PROJECT_SOURCE_DIR}/img/qmidiplyr.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/64x64/apps)
+install(FILES ${PROJECT_SOURCE_DIR}/img/qmidiplyr.svg DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/scalable/apps)
+install(FILES menu/qmidiplayer DESTINATION ${CMAKE_INSTALL_PREFIX}/share/menu)
+install(FILES qmidiplayer.mime DESTINATION ${CMAKE_INSTALL_PREFIX}/share/mime/packages)
diff --git a/sample-plugin/CMakeLists.txt b/sample-plugin/CMakeLists.txt
index be8913b..888e874 100644
--- a/sample-plugin/CMakeLists.txt
+++ b/sample-plugin/CMakeLists.txt
@@ -8,3 +8,5 @@ include_directories(${PROJECT_SOURCE_DIR}/include/)
add_library(sampleplugin MODULE
${sampleplugin_SOURCES}
)
+
+install(TARGETS sampleplugin LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/qmidiplayer/)
diff --git a/simple-visualization/CMakeLists.txt b/simple-visualization/CMakeLists.txt
index 777640f..758d671 100644
--- a/simple-visualization/CMakeLists.txt
+++ b/simple-visualization/CMakeLists.txt
@@ -20,3 +20,5 @@ add_library(simple-visualization MODULE
target_link_libraries(simple-visualization
Qt5::Widgets
)
+
+install(TARGETS simple-visualization LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/qmidiplayer/)
diff --git a/visualization/CMakeLists.txt b/visualization/CMakeLists.txt
index 3e86c37..426f50c 100644
--- a/visualization/CMakeLists.txt
+++ b/visualization/CMakeLists.txt
@@ -36,3 +36,5 @@ target_link_libraries(visualization
${GLEW_LIBRARIES}
OpenGL::GL
)
+
+install(TARGETS visualization LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/qmidiplayer/)