aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2015-04-22 16:59:45 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2015-04-22 16:59:45 +0200
commit615a97125e6f41c24145eea841e91490fe87e4d7 (patch)
treeac98c636e7be1729e0728951c66fb28033956db9
parentbf442ed0fb6332c0bc4f12630983052b68481448 (diff)
downloadsynthpod-615a97125e6f41c24145eea841e91490fe87e4d7.tar.xz
add .desktop files (synthpod_jack, synthpod_pa).
-rw-r--r--bin/CMakeLists.txt22
-rw-r--r--bin/synthpod_jack.desktop.in8
-rw-r--r--bin/synthpod_pa.desktop.in8
-rw-r--r--data/pix/synthpod.pngbin0 -> 2410 bytes
4 files changed, 38 insertions, 0 deletions
diff --git a/bin/CMakeLists.txt b/bin/CMakeLists.txt
index 535e76f9..e992b3ad 100644
--- a/bin/CMakeLists.txt
+++ b/bin/CMakeLists.txt
@@ -1,6 +1,10 @@
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${PROJECT_SOURCE_DIR}/lib) # synthpod_app.h, synthpod_ui.h
+set(SYNTHPOD_BIN_DIR "bin")
+set(SYNTHPOD_ICON_DIR "share/icons/hicolor/256x256/apps")
+set(SYNTHPOD_DESKTOP_DIR "share/applications")
+
if(APPLE)
find_library(CORE_AUDIO CoreAudio)
find_library(AUDIO_TOOLBOX AudioToolbox)
@@ -10,6 +14,12 @@ if(APPLE)
find_library(CORE_SERVICES CoreServices)
endif(APPLE)
+if(BUILD_JACK OR BUILD_PORTAUDIO)
+# icon
+ install(FILES ${PROJECT_SOURCE_DIR}/data/pix/synthpod.png DESTINATION
+ ${SYNTHPOD_ICON_DIR})
+endif()
+
if(BUILD_JACK)
# jack
pkg_search_module(JACK REQUIRED jack)
@@ -35,6 +45,12 @@ if(BUILD_JACK)
endif()
set_target_properties(synthpod.jack PROPERTIES OUTPUT_NAME "synthpod_jack")
install(TARGETS synthpod.jack DESTINATION bin)
+
+# desktop file
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/synthpod_jack.desktop.in
+ ${PROJECT_BINARY_DIR}/bin/synthpod_jack.desktop @ONLY)
+ install(FILES ${PROJECT_BINARY_DIR}/bin/synthpod_jack.desktop DESTINATION
+ ${SYNTHPOD_DESKTOP_DIR})
endif()
if(BUILD_PORTAUDIO)
@@ -62,6 +78,12 @@ if(BUILD_PORTAUDIO)
endif()
set_target_properties(synthpod.pa PROPERTIES OUTPUT_NAME "synthpod_pa")
install(TARGETS synthpod.pa DESTINATION bin)
+
+# desktop file
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/synthpod_pa.desktop.in
+ ${PROJECT_BINARY_DIR}/bin/synthpod_pa.desktop @ONLY)
+ install(FILES ${PROJECT_BINARY_DIR}/bin/synthpod_pa.desktop DESTINATION
+ ${SYNTHPOD_DESKTOP_DIR})
endif()
if(BUILD_TEST)
diff --git a/bin/synthpod_jack.desktop.in b/bin/synthpod_jack.desktop.in
new file mode 100644
index 00000000..d3fafaf7
--- /dev/null
+++ b/bin/synthpod_jack.desktop.in
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Synthpod (Jack)
+Comment=Lightweight, nonlinear LV2 plugin host
+Exec=@CMAKE_INSTALL_PREFIX@/@SYNTHPOD_BIN_DIR@/synthpod_jack
+Terminal=false
+Icon=@CMAKE_INSTALL_PREFIX@/@SYNTHPOD_ICON_DIR@/synthpod.png
+Type=Application
+Categories=AudioVideo;Audio;
diff --git a/bin/synthpod_pa.desktop.in b/bin/synthpod_pa.desktop.in
new file mode 100644
index 00000000..37af3bce
--- /dev/null
+++ b/bin/synthpod_pa.desktop.in
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Synthpod (PortAudio)
+Comment=Lightweight, nonlinear LV2 plugin host
+Exec=@CMAKE_INSTALL_PREFIX@/@SYNTHPOD_BIN_DIR@/synthpod_pa
+Terminal=false
+Icon=@CMAKE_INSTALL_PREFIX@/@SYNTHPOD_ICON_DIR@/synthpod.png
+Type=Application
+Categories=AudioVideo;Audio;
diff --git a/data/pix/synthpod.png b/data/pix/synthpod.png
new file mode 100644
index 00000000..b20cae42
--- /dev/null
+++ b/data/pix/synthpod.png
Binary files differ