[pinpoint] Allow running pinpoint uninstalled from other directories
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pinpoint] Allow running pinpoint uninstalled from other directories
- Date: Tue, 30 Oct 2012 22:18:37 +0000 (UTC)
commit 6e2085d994778046e5101f0a2f98b03eeaccb493
Author: Antonio Terceiro <terceiro softwarelivre org>
Date: Wed May 30 17:39:56 2012 -0300
Allow running pinpoint uninstalled from other directories
https://bugzilla.gnome.org/show_bug.cgi?id=677120
Makefile.am | 2 +-
pp-clutter.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 41442a7..9c167f3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,7 @@
SUBDIRS=transitions
bin_PROGRAMS=pinpoint
-AM_CFLAGS = $(DEPS_CFLAGS) $(MAINTAINER_CFLAGS) -D_GNU_SOURCE -DPKGDATADIR=\"$(pkgdatadir)/\"
+AM_CFLAGS = $(DEPS_CFLAGS) $(MAINTAINER_CFLAGS) -D_GNU_SOURCE -DPKGDATADIR=\"$(pkgdatadir)/\" -DPINPOINT_SRCDIR=\"$(abs_top_srcdir)\"
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
if USE_DAX
diff --git a/pp-clutter.c b/pp-clutter.c
index 93acc98..1a0dcaf 100644
--- a/pp-clutter.c
+++ b/pp-clutter.c
@@ -1648,7 +1648,7 @@ action_slide (ClutterRenderer *renderer)
static char *pp_lookup_transition (const char *transition)
{
int i;
- char *dirs[] ={ "", "./transitions/", PKGDATADIR, NULL};
+ char *dirs[] ={ "", PINPOINT_SRCDIR "/transitions/", PKGDATADIR, NULL};
for (i = 0; dirs[i]; i++)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]