gnome-shell r100 - trunk/src



Author: walters
Date: Mon Dec  1 20:42:56 2008
New Revision: 100
URL: http://svn.gnome.org/viewvc/gnome-shell?rev=100&view=rev

Log:
Adjust to new Meta.typelib/Meta.gir locations

Also put all our GI data in the private $(pkglibdir).

Modified:
   trunk/src/Makefile.am
   trunk/src/gnome-shell-plugin.c

Modified: trunk/src/Makefile.am
==============================================================================
--- trunk/src/Makefile.am	(original)
+++ trunk/src/Makefile.am	Mon Dec  1 20:42:56 2008
@@ -8,6 +8,7 @@
 	$(MUTTER_PLUGIN_CFLAGS)			\
 	-Itray					\
 	-DGETTEXT_PACKAGE=gnome-shell		\
+	-DGNOME_SHELL_PKGLIBDIR=\"$(pkglibdir)\" \
 	-DJSDIR=\"$(pkgdatadir)/js\"
 
 plugindir = $(libdir)/metacity/plugins/clutter
@@ -63,13 +64,14 @@
 	libtray.la
 libgnome_shell_la_CPPFLAGS = $(gnome_shell_cflags)
 
-typelibdir = $(pkglibdir)/girepository
+typelibdir = $(pkglibdir)
 typelib_DATA = Shell-0.1.typelib Tidy-1.0.typelib
 
 Shell-0.1.gir: $(metacity) $(G_IR_SCANNER) libgnome-shell.la Makefile
 	$(G_IR_SCANNER)		\
 		--namespace=Shell			\
 		--nsversion=0.1				\
+		--add-include-path=$(libdir)/metacity/ \
 		--include=Clutter-0.8			\
 		--include=Meta-2.25			\
 		--program=metacity			\
@@ -82,7 +84,7 @@
 # The dependency on libgnome-shell.la here is because g-ir-compiler opens it
 # (not the fake library, since we've already done the rewriting)
 Shell-0.1.typelib: libgnome-shell.la Shell-0.1.gir
-	LD_LIBRARY_PATH=$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}. g-ir-compiler Shell-0.1.gir -o $@
+	LD_LIBRARY_PATH=$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}. g-ir-compiler --includedir=$(libdir)/metacity/ Shell-0.1.gir -o $@
 CLEANFILES += Shell-1.0.typelib
 
 Tidy-1.0.gir: $(metacity) $(G_IR_SCANNER) libgnome-shell.la libtidy-1.0.la Makefile
@@ -100,4 +102,4 @@
 
 Tidy-1.0.typelib: libtidy-1.0.la Tidy-1.0.gir
 	LD_LIBRARY_PATH=$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}. g-ir-compiler Tidy-1.0.gir -o $@
-CLEANFILES += Tidy-1.0.typelib
\ No newline at end of file
+CLEANFILES += Tidy-1.0.typelib

Modified: trunk/src/gnome-shell-plugin.c
==============================================================================
--- trunk/src/gnome-shell-plugin.c	(original)
+++ trunk/src/gnome-shell-plugin.c	Mon Dec  1 20:42:56 2008
@@ -33,6 +33,7 @@
 #include <gdk/gdk.h>
 #include <gdk/gdkx.h>
 #include <gjs/gjs.h>
+#include <girepository.h>
 #include <gmodule.h>
 #include <string.h>
 
@@ -122,6 +123,8 @@
         }
     }
 
+  g_irepository_prepend_search_path (GNOME_SHELL_PKGLIBDIR);
+
   shell_js = g_getenv("GNOME_SHELL_JS");
   if (!shell_js)
     shell_js = JSDIR;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]