[rygel] core: Expose desktop dir path to source code
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel] core: Expose desktop dir path to source code
- Date: Fri, 12 Jun 2009 12:22:54 -0400 (EDT)
commit 277a12e811dfc324c0b06f3114e874b1c09d4dcb
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Jun 8 16:30:58 2009 +0300
core: Expose desktop dir path to source code
src/rygel/Makefile.am | 5 ++++-
src/rygel/cstuff.vapi | 3 +++
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/Makefile.am b/src/rygel/Makefile.am
index 788212b..ee05530 100644
--- a/src/rygel/Makefile.am
+++ b/src/rygel/Makefile.am
@@ -1,7 +1,9 @@
if UNINSTALLED
shareddir = $(abs_top_builddir)/data
+desktopdir = $(shareddir)
else
shareddir = $(datadir)/rygel
+desktopdir = $(shareddir)/applications
endif
if UNINSTALLED
@@ -20,7 +22,8 @@ AM_CFLAGS = $(LIBGUPNP_CFLAGS) \
$(LIBSOUP_CFLAGS) \
$(LIBDBUS_GLIB_CFLAGS) \
-I$(top_srcdir) -DDATA_DIR='"$(shareddir)"' \
- -DPLUGIN_DIR='"$(plugindir)"' -include config.h
+ -DPLUGIN_DIR='"$(plugindir)"' -DDESKTOP_DIR='"$(desktopdir)"'\
+ -include config.h
librygelincdir = $(includedir)/rygel-1.0
diff --git a/src/rygel/cstuff.vapi b/src/rygel/cstuff.vapi
index 44ed5b6..bd819df 100644
--- a/src/rygel/cstuff.vapi
+++ b/src/rygel/cstuff.vapi
@@ -31,6 +31,9 @@ namespace CStuff {
[CCode (cname = "DATA_DIR")]
public static const string DATA_DIR;
+ [CCode (cname = "DESKTOP_DIR")]
+ public static const string DESKTOP_DIR;
+
[CCode (cname = "PLUGIN_DIR")]
public static const string PLUGIN_DIR;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]