diff --git a/configure.in b/configure.in index f04eba8f6..2d6ed15d8 100644 --- a/configure.in +++ b/configure.in @@ -299,8 +299,9 @@ if test x$have_xrender = xyes; then AC_DEFINE(HAVE_RENDER, , [Building with Render extension support]) fi +CLUTTER_PACKAGE=clutter-0.8 +AC_SUBST(CLUTTER_PACKAGE) if test x$have_clutter = xyes; then - CLUTTER_PACKAGE=clutter-0.8 METACITY_PC_MODULES="$METACITY_PC_MODULES $CLUTTER_PACKAGE " PKG_CHECK_MODULES(CLUTTER, $CLUTTER_PACKAGE) AC_DEFINE(WITH_CLUTTER, , [Building with Clutter compositor]) @@ -533,6 +534,7 @@ doc/man/Makefile src/Makefile src/wm-tester/Makefile src/libmetacity-private.pc +src/metacity-plugins.pc src/tools/Makefile src/themes/Makefile src/compositor/mutter/plugins/Makefile diff --git a/src/Makefile.am b/src/Makefile.am index 1d93c6017..3a1667827 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -147,7 +147,16 @@ libmetacityinclude_HEADERS = \ include/common.h \ ui/preview-widget.h \ ui/theme-parser.h \ - ui/theme.h + ui/theme.h \ + include/prefs.h \ + include/window.h \ + include/workspace.h \ + include/compositor.h \ + include/compositor-mutter.h \ + include/types.h \ + include/screen.h \ + include/display.h \ + include/mutter-plugin.h metacity_theme_viewer_SOURCES= \ ui/theme-viewer.c @@ -218,14 +227,15 @@ inlinepixbufs.h: $(IMAGES) pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = libmetacity-private.pc +pkgconfig_DATA = libmetacity-private.pc metacity-plugins.pc EXTRA_DIST=$(desktopfiles_files) \ - $(wmproperties_files) \ + $(wmproperties_files) \ $(IMAGES) $(schema_DATA) \ $(desktopfiles_in_files) \ $(wmproperties_in_files) \ $(schema_in_files) \ $(xml_in_files) \ - libmetacity-private.pc.in + libmetacity-private.pc.in \ + metacity-plugins.pc.in diff --git a/src/compositor/mutter/mutter-plugin-manager.c b/src/compositor/mutter/mutter-plugin-manager.c index 698d7e41d..c53cd4e13 100644 --- a/src/compositor/mutter/mutter-plugin-manager.c +++ b/src/compositor/mutter/mutter-plugin-manager.c @@ -21,6 +21,7 @@ * 02111-1307, USA. */ +#include "config.h" #include "mutter-plugin-manager.h" #include "prefs.h" #include "errors.h" diff --git a/src/compositor/mutter/plugins/Makefile.am b/src/compositor/mutter/plugins/Makefile.am index 0a99b6139..94b607e5a 100644 --- a/src/compositor/mutter/plugins/Makefile.am +++ b/src/compositor/mutter/plugins/Makefile.am @@ -5,8 +5,6 @@ if WITH_CLUTTER INCLUDES=@METACITY_CFLAGS@ -I $(top_srcdir)/src/include -DMETACITY_LIBEXECDIR=\"$(libexecdir)\" -DHOST_ALIAS=\"@HOST_ALIAS@\" -DMETACITY_LOCALEDIR=\"$(prefix)/@DATADIRNAME@/locale\" -DMETACITY_PKGDATADIR=\"$(pkgdatadir)\" -DMETACITY_DATADIR=\"$(datadir)\" -DG_LOG_DOMAIN=\"metacity\" -DSN_API_NOT_YET_FROZEN=1 -DMETACITY_MAJOR_VERSION=$(METACITY_MAJOR_VERSION) -DMETACITY_MINOR_VERSION=$(METACITY_MINOR_VERSION) -DMETACITY_MICRO_VERSION=$(METACITY_MICRO_VERSION) -DMETACITY_CLUTTER_PLUGIN_API_VERSION=$(METACITY_CLUTTER_PLUGIN_API_VERSION) -DMETACITY_PKGLIBDIR=\"$(pkglibdir)\" -pkglib_LTLIBRARIES = default.la - default_la_CFLAGS = -fPIC default_la_SOURCES = default.c default_la_LDFLAGS = -module -avoid-version -no-undefined diff --git a/src/include/mutter-plugin.h b/src/include/mutter-plugin.h index 8514806c6..01f2fea24 100644 --- a/src/include/mutter-plugin.h +++ b/src/include/mutter-plugin.h @@ -25,7 +25,6 @@ #define MUTTER_PLUGIN_H_ #include "types.h" -#include "config.h" #include "compositor.h" #include "compositor-mutter.h" diff --git a/src/metacity-plugins.pc.in b/src/metacity-plugins.pc.in new file mode 100644 index 000000000..c8d42cb43 --- /dev/null +++ b/src/metacity-plugins.pc.in @@ -0,0 +1,17 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ +pkglibdir=@pkglibdir@ +libgnome_serverdir=@libexecdir@ +metacity_major_version=@METACITY_MAJOR_VERSION@ +metacity_minor_version=@METACITY_MINOR_VERSION@ +metacity_micro_version=@METACITY_MICRO_VERSION@ +metacity_clutter_plugin_api_version=@METACITY_CLUTTER_PLUGIN_API_VERSION@ + +Name: metacity-plugins +Description: Dev parameters for mutter plugins +Requires: @CLUTTER_PACKAGE@ +Version: @VERSION@ +Libs: @CLUTTER_LIBS@ +Cflags: @CLUTTER_CFLAGS@ -DWITH_CLUTTER -I${includedir}/metacity-1/metacity-private -DMETACITY_MAJOR_VERSION=${metacity_major_version} -DMETACITY_MINOR_VERSION=${metacity_minor_version} -DMETACITY_MICRO_VERSION=${metacity_micro_version} -DMETACITY_CLUTTER_PLUGIN_API_VERSION=${metacity_clutter_plugin_api_version} -DMETACITY_PKGLIBDIR=\"${pkglibdir}\"