diff options
author | Diego Escalante Urrelo <descalante@igalia.com> | 2010-12-08 21:00:08 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <descalante@igalia.com> | 2010-12-09 06:43:12 +0800 |
commit | c4af85360754d6d8bfeba9dabe02593c639a1ae6 (patch) | |
tree | 02e4e11ab3903e0317c59e6626ca5a5d0cab1b8f /src | |
parent | 0256c457bc5558d97c98c17ee673923def23a85e (diff) | |
download | gsoc2013-epiphany-c4af85360754d6d8bfeba9dabe02593c639a1ae6.tar.gz gsoc2013-epiphany-c4af85360754d6d8bfeba9dabe02593c639a1ae6.tar.zst gsoc2013-epiphany-c4af85360754d6d8bfeba9dabe02593c639a1ae6.zip |
introspection: separate Egg into another gir file
Don't mix up Epiphany and Egg prefixes into a single file. We now produce and
install EphyEgg-version.gir and Epiphany-version.gir. Version being the
Epiphany API version.
Bug #636790
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 3068cf541..60679e266 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -278,8 +278,6 @@ EPHY_GIR_H_FILES = \ $(top_srcdir)/lib/ephy-node-db.h \ $(top_srcdir)/lib/ephy-node.h \ $(top_srcdir)/lib/ephy-state.h \ - $(top_srcdir)/lib/egg/egg-editable-toolbar.h \ - $(top_srcdir)/lib/egg/egg-toolbars-model.h \ $(top_srcdir)/lib/widgets/ephy-search-entry.h \ $(top_srcdir)/src/bookmarks/ephy-bookmarks.h \ $(top_srcdir)/src/ephy-extension.h \ @@ -310,8 +308,6 @@ EPHY_GIR_C_FILES = \ $(top_srcdir)/lib/ephy-node-db.c \ $(top_srcdir)/lib/ephy-node.c \ $(top_srcdir)/lib/ephy-state.c \ - $(top_srcdir)/lib/egg/egg-editable-toolbar.c \ - $(top_srcdir)/lib/egg/egg-toolbars-model.c \ $(top_srcdir)/lib/widgets/ephy-search-entry.c \ $(top_srcdir)/src/bookmarks/ephy-bookmarks.c \ $(top_srcdir)/src/ephy-extension.c \ @@ -327,7 +323,27 @@ EPHY_GIR_C_FILES = \ $(top_srcdir)/src/ephy-window.c \ $(NULL) -Epiphany-$(EPIPHANY_API_VERSION).gir: $(INTROSPECTION_SCANNER) $(EPHY_GIR_H_FILES) \ +EphyEgg-$(EPIPHANY_API_VERSION).gir: $(INTROSPECTION_SCANNER) + $(AM_V_GEN) PKG_CONFIG_PATH=$(top_builddir)/data:$$PKG_CONFIG_PATH \ + $(INTROSPECTION_SCANNER) -v --warn-all \ + --identifier-prefix=Egg \ + --symbol-prefix=egg \ + --namespace=EphyEgg \ + --nsversion=$(EPIPHANY_API_VERSION) \ + --include=Gtk-3.0 \ + --include=libxml2-2.0 \ + --library=$(top_builddir)/lib/egg/libegg.la \ + --pkg=gtk+-3.0 \ + --pkg=libxml-2.0 \ + --output=$@ \ + `pkg-config --libs libxml-2.0 gtk+-3.0` \ + $(top_srcdir)/lib/egg/egg-editable-toolbar.h \ + $(top_srcdir)/lib/egg/egg-toolbars-model.h \ + $(top_srcdir)/lib/egg/egg-editable-toolbar.c \ + $(top_srcdir)/lib/egg/egg-toolbars-model.c \ + $(top_builddir)/lib/egg/libegg.la + +Epiphany-$(EPIPHANY_API_VERSION).gir: EphyEgg-$(EPIPHANY_API_VERSION).gir $(INTROSPECTION_SCANNER) $(EPHY_GIR_H_FILES) \ $(EPHY_GIR_C_FILES) epiphany $(AM_V_GEN) PKG_CONFIG_PATH=$(top_builddir)/data:$$PKG_CONFIG_PATH \ $(INTROSPECTION_SCANNER) -v --warn-all \ @@ -340,6 +356,7 @@ Epiphany-$(EPIPHANY_API_VERSION).gir: $(INTROSPECTION_SCANNER) $(EPHY_GIR_H_FILE --include=Gtk-3.0 \ --include=libxml2-2.0 \ --include=WebKit-3.0 \ + --include-uninstalled=EphyEgg-$(EPIPHANY_API_VERSION).gir \ --program=./epiphany \ --output=$@ \ --pkg=epiphany-$(EPIPHANY_API_VERSION) \ @@ -353,13 +370,16 @@ Epiphany-$(EPIPHANY_API_VERSION).gir: $(INTROSPECTION_SCANNER) $(EPHY_GIR_H_FILE $(EPHY_GIR_C_FILES) girdir = $(datadir)/gir-1.0 -gir_DATA = Epiphany-$(EPIPHANY_API_VERSION).gir +gir_DATA = Epiphany-$(EPIPHANY_API_VERSION).gir EphyEgg-$(EPIPHANY_API_VERSION).gir typelibsdir = $(libdir)/girepository-1.0 -typelibs_DATA = Epiphany-$(EPIPHANY_API_VERSION).typelib +typelibs_DATA = Epiphany-$(EPIPHANY_API_VERSION).typelib EphyEgg-$(EPIPHANY_API_VERSION).typelib Epiphany-$(EPIPHANY_API_VERSION).typelib: Epiphany-$(EPIPHANY_API_VERSION).gir $(INTROSPECTION_COMPILER) - $(AM_V_GEN) $(INTROSPECTION_COMPILER) Epiphany-$(EPIPHANY_API_VERSION).gir -o Epiphany-$(EPIPHANY_API_VERSION).typelib + $(AM_V_GEN) $(INTROSPECTION_COMPILER) Epiphany-$(EPIPHANY_API_VERSION).gir --includedir=$(srcdir) -o Epiphany-$(EPIPHANY_API_VERSION).typelib + +EphyEgg-$(EPIPHANY_API_VERSION).typelib: EphyEgg-$(EPIPHANY_API_VERSION).gir $(INTROSPECTION_COMPILER) + $(AM_V_GEN) $(INTROSPECTION_COMPILER) EphyEgg-$(EPIPHANY_API_VERSION).gir -o EphyEgg-$(EPIPHANY_API_VERSION).typelib CLEANFILES += $(gir_DATA) $(typelibs_DATA) |