diff options
author | Johan Dahlin <johan@gnome.org> | 2008-08-31 15:50:14 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-08-31 15:50:14 +0000 |
commit | 5f7f6195afcd4bfdaf1b8e035697a7ccdc896f19 (patch) | |
tree | ffd31ce0a8343b196168087bc920e21a2c268b94 /gir | |
parent | 656e9a81d3d0113d48b48606455b195451212cfa (diff) | |
download | gobject-introspection-5f7f6195afcd4bfdaf1b8e035697a7ccdc896f19.tar.gz |
Add a GModule.gir
2008-08-31 Johan Dahlin <johan@gnome.org>
* gir/Makefile.am:
Add a GModule.gir
svn path=/trunk/; revision=549
Diffstat (limited to 'gir')
-rw-r--r-- | gir/Makefile.am | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/gir/Makefile.am b/gir/Makefile.am index 6747641d..4144c26e 100644 --- a/gir/Makefile.am +++ b/gir/Makefile.am @@ -55,6 +55,30 @@ GObject.gir: GLib.gir $(G_IR_SCANNER) $(G_IR_SCANNER_FILES) Makefile $(GLIB_INCLUDEDIR)/gobject/*.h BUILT_SOURCES += GObject.gir +# gmodule +GMODULE_INCLUDEDIR=`pkg-config --variable=includedir gmodule-2.0`/glib-2.0 +GMODULE_LIBDIR=`pkg-config --variable=libdir gmodule-2.0` + +if OS_WIN32 +GMODULE_LIBRARY=libgmodule-2.0-0 +else +GMODULE_LIBRARY=gmodule-2.0 +endif + +GModule.gir: GLib.gir $(G_IR_SCANNER) $(G_IR_SCANNER_FILES) + PYTHONPATH=$(top_builddir):$$PYTHONPATH $(G_IR_SCANNER) \ + -v --namespace GModule \ + --noclosure \ + --output $@ \ + --strip-prefix=g \ + --include=$(top_builddir)/gir/GLib.gir \ + --library=$(GMODULE_LIBRARY) \ + -I$(GMODULE_INCLUDEDIR) \ + -I$(GMODULE_LIBDIR)/glib-2.0/include \ + --pkg glib-2.0 \ + $(GLIB_INCLUDEDIR)/gmodule.h +BUILT_SOURCES += GModule.gir + # gio GIO_INCLUDEDIR=`pkg-config --variable=includedir gio-2.0`/glib-2.0 GIO_LIBDIR=`pkg-config --variable=libdir gio-2.0` @@ -89,5 +113,5 @@ dist_gir_DATA = $(BUILT_SOURCES) $(DEBUG) $(top_builddir)/tools/g-ir-compiler$(EXEEXT) --includedir=. $(G_IR_COMPILER_OPTS) $< -o $@ typelibsdir = $(datadir)/girepository -typelibs_DATA = GLib.typelib GObject.typelib Gio.typelib +typelibs_DATA = GLib.typelib GModule.typelib GObject.typelib Gio.typelib CLEANFILES += $(typelibs_DATA) |