From patchwork Tue Oct 16 15:53:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yordan Karadzhov X-Patchwork-Id: 10759595 Return-Path: Received: from mail-bn3nam01on0067.outbound.protection.outlook.com ([104.47.33.67]:34715 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726778AbeJPXo2 (ORCPT ); Tue, 16 Oct 2018 19:44:28 -0400 From: Yordan Karadzhov To: "rostedt@goodmis.org" CC: "linux-trace-devel@vger.kernel.org" , Yordan Karadzhov Subject: [PATCH v2 19/23] kernel-shark-qt: Add kernelshark.desktop file Date: Tue, 16 Oct 2018 15:53:19 +0000 Message-ID: <20181016155232.5257-20-ykaradzhov@vmware.com> References: <20181016155232.5257-1-ykaradzhov@vmware.com> In-Reply-To: <20181016155232.5257-1-ykaradzhov@vmware.com> Content-Language: en-US MIME-Version: 1.0 Sender: linux-trace-devel-owner@vger.kernel.org List-ID: Content-Length: 1705 From: Yordan Karadzhov (VMware) Instruct CMake to generate kernelshark.desktop. This file is used to add the KernelShark application in the desktop menus. Signed-off-by: Yordan Karadzhov (VMware) --- kernel-shark-qt/CMakeLists.txt | 3 +++ kernel-shark-qt/build/cmake_clean.sh | 1 + kernel-shark-qt/build/ks.desktop.cmake | 9 +++++++++ 3 files changed, 13 insertions(+) create mode 100644 kernel-shark-qt/build/ks.desktop.cmake diff --git a/kernel-shark-qt/CMakeLists.txt b/kernel-shark-qt/CMakeLists.txt index 0ccb61e..278241b 100644 --- a/kernel-shark-qt/CMakeLists.txt +++ b/kernel-shark-qt/CMakeLists.txt @@ -75,4 +75,7 @@ if (_DOXYGEN_DOC AND DOXYGEN_FOUND) endif () +configure_file( ${KS_DIR}/build/ks.desktop.cmake + ${KS_DIR}/kernelshark.desktop) + message("") diff --git a/kernel-shark-qt/build/cmake_clean.sh b/kernel-shark-qt/build/cmake_clean.sh index 4f984db..ea04dc0 100755 --- a/kernel-shark-qt/build/cmake_clean.sh +++ b/kernel-shark-qt/build/cmake_clean.sh @@ -6,6 +6,7 @@ rm -rf CMakeFiles/ rm -rf src/ rm -rf examples/ rm -f ../lib/* +rm ../kernelshark.desktop rm -f ../src/KsCmakeDef.hpp rm -f CMakeDoxyfile.in rm -f CMakeDoxygenDefaults.cmake diff --git a/kernel-shark-qt/build/ks.desktop.cmake b/kernel-shark-qt/build/ks.desktop.cmake new file mode 100644 index 0000000..0b947f1 --- /dev/null +++ b/kernel-shark-qt/build/ks.desktop.cmake @@ -0,0 +1,9 @@ +[Desktop Entry] +Version=@KS_VERSION_STRING@ +Type=Application +Name=Kernel Shark +GenericName=Kernel Shark +Comment= +Exec=/usr/local/bin/kernelshark +Icon=@KS_DIR@/icons/ksharkicon.png +Terminal=false