Added .desktop file and its installation commands in Makefile.in
authorMrinmayee Hingolikar <mrinmayee@ti.com>
Mon, 25 Mar 2013 21:09:35 +0000 (02:39 +0530)
committerKarthik Ramanan <a0393906@ti.com>
Thu, 1 Jan 1970 01:18:14 +0000 (01:18 +0000)
Makefile.in
dual-decode.desktop [new file with mode: 0644]
res/dual-decode.png [new file with mode: 0755]

index d8afed5a7fc1c611c317a311edc113505961d0a2..09a224c855d7e21be91cb5cedf6dd60b47c96129 100644 (file)
@@ -52,6 +52,7 @@ VERSION         = @PACKAGE_VERSION@
 PACKAGE_NAME    = @PACKAGE_NAME@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
 PACKAGE_DIST    = $(PACKAGE_TARNAME)-$(VERSION)
+DESKTOP_FILE_DIR = /usr/share
 RM              = rm
 CFLAGS          = @CFLAGS@
 LDFLAGS         = @LDFLAGS@
@@ -127,11 +128,15 @@ install:
        install -d $(DESTDIR)$(bindir) $(DESTDIR)$(docdir) $(DESTDIR)$(datadir)/$(PACKAGE_NAME)
        install dual-decode $(DESTDIR)$(bindir)
        install res/gui.xml $(DESTDIR)$(datadir)/$(PACKAGE_NAME)
+       install res/dual-decode.png $(DESKTOP_FILE_DIR)/pixmaps
+       install dual-decode.desktop $(DESKTOP_FILE_DIR)/applications
 
 uninstall:
        rm -r $(DESTDIR)$(docdir)
        rm -r $(DESTDIR)$(bindir)/$(PACKAGE_NAME)
        rm -r $(DESTDIR)$(datadir)/$(PACKAGE_NAME)/gui.xml
+       rm -r $(DESKTOP_FILE_DIR)/pixmaps/dual-decode.png
+       rm -r $(DESKTOP_FILE_DIR)/applications/dual-decode.desktop
 
 doxygen:
        $(Q)$(DOXYGEN)
diff --git a/dual-decode.desktop b/dual-decode.desktop
new file mode 100644 (file)
index 0000000..5803a75
--- /dev/null
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=0.1
+Name=Dual Decode
+Comment=Demo application to demonstartae dual decode capability of OMAP5 
+Exec=dual-decode
+Icon=dual-decode.png
+Terminal=false
+Type=Application
+Categories=Utility;Application;
diff --git a/res/dual-decode.png b/res/dual-decode.png
new file mode 100755 (executable)
index 0000000..4d6685f
Binary files /dev/null and b/res/dual-decode.png differ