diff --git a/.gitignore b/.gitignore index 56fb267d2..22f8738da 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,8 @@ Makefile.in.in aclocal.m4 autom4te.cache build-aux +clutter/clutter/mutter-clutter-0.vapi +clutter/clutter/mutter-clutter-x11-0.vapi compile config.guess config.h @@ -12,6 +14,8 @@ config.log config.status config.sub configure +cogl/cogl-pango/mutter-cogl-pango-0.vapi +cogl/cogl/mutter-cogl-0.vapi depcomp install-sh intltool-extract.in @@ -85,6 +89,7 @@ src/pointer-constraints-unstable-v*-protocol.c src/pointer-constraints-unstable-v*-server-protocol.h src/xdg-foreign-unstable-v*-protocol.c src/xdg-foreign-unstable-v*-server-protocol.h +src/libmutter-0.vapi src/meta/meta-version.h src/libmutter-*.pc doc/reference/*.args diff --git a/clutter/clutter/Makefile.am b/clutter/clutter/Makefile.am index 1ffb56cd0..70be77d9a 100644 --- a/clutter/clutter/Makefile.am +++ b/clutter/clutter/Makefile.am @@ -716,4 +716,29 @@ EXTRA_DIST += \ Makefile.am.marshal \ Makefile.am.enums + +if ENABLE_VAPIGEN +-include $(VAPIGEN_MAKEFILE) + +mutter-clutter-@LIBMUTTER_API_VERSION@.vapi: Clutter-@LIBMUTTER_API_VERSION@.gir mutter-clutter-@LIBMUTTER_API_VERSION@.deps +mutter-clutter-x11-@LIBMUTTER_API_VERSION@.vapi: ClutterX11-@LIBMUTTER_API_VERSION@.gir mutter-clutter-x11-@LIBMUTTER_API_VERSION@.deps + +VAPIGEN_VAPIS = mutter-clutter-@LIBMUTTER_API_VERSION@.vapi mutter-clutter-x11-@LIBMUTTER_API_VERSION@.vapi + +mutter_clutter_@LIBMUTTER_API_VERSION@_vapi_DEPS = atk cairo pango json-glib-1.0 +mutter_clutter_@LIBMUTTER_API_VERSION@_vapi_METADATADIRS = $(srcdir) +mutter_clutter_@LIBMUTTER_API_VERSION@_vapi_GIRDIRS = $(top_builddir)/../cogl/cogl $(top_builddir)/../cogl/cogl-pango +mutter_clutter_@LIBMUTTER_API_VERSION@_vapi_FILES = Clutter-@LIBMUTTER_API_VERSION@.gir + +mutter_clutter_x11_@LIBMUTTER_API_VERSION@_vapi_DEPS = atk cairo pango json-glib-1.0 +mutter_clutter_x11_@LIBMUTTER_API_VERSION@_vapi_METADATADIRS = $(srcdir) +mutter_clutter_x11_@LIBMUTTER_API_VERSION@_vapi_GIRDIRS = $(srcdir) $(top_builddir)/../cogl/cogl $(top_builddir)/../cogl/cogl-pango +mutter_clutter_x11_@LIBMUTTER_API_VERSION@_vapi_FILES = ClutterX11-@LIBMUTTER_API_VERSION@.gir + +vapidir = $(datadir)/vala/vapi +vapi_DATA = $(VAPIGEN_VAPIS) $(VAPIGEN_VAPIS:.vapi=.deps) + +EXTRA_DIST += mutter-clutter-@LIBMUTTER_API_VERSION@.deps mutter-clutter-x11-@LIBMUTTER_API_VERSION@.deps +endif + CLEANFILES += $(gir_DATA) $(typelib_DATA) diff --git a/clutter/clutter/mutter-clutter-0.deps b/clutter/clutter/mutter-clutter-0.deps new file mode 100644 index 000000000..96a124423 --- /dev/null +++ b/clutter/clutter/mutter-clutter-0.deps @@ -0,0 +1,5 @@ +cairo +gio-2.0 +atk +pangocairo +json-glib-1.0 diff --git a/clutter/clutter/mutter-clutter-x11-0.deps b/clutter/clutter/mutter-clutter-x11-0.deps new file mode 100644 index 000000000..96a124423 --- /dev/null +++ b/clutter/clutter/mutter-clutter-x11-0.deps @@ -0,0 +1,5 @@ +cairo +gio-2.0 +atk +pangocairo +json-glib-1.0 diff --git a/clutter/configure.ac b/clutter/configure.ac index 3c3d0c558..be0a6b246 100644 --- a/clutter/configure.ac +++ b/clutter/configure.ac @@ -763,6 +763,10 @@ dnl === GObject-Introspection check =========================================== GOBJECT_INTROSPECTION_CHECK([gi_req_version]) +dnl === Vala vapigen check =========================================== + +VAPIGEN_CHECK() + dnl === Conformance test suite ================================================ GLIB_TESTS diff --git a/clutter/tests/interactive/.gitignore b/clutter/tests/interactive/.gitignore deleted file mode 100644 index 74d19ee62..000000000 --- a/clutter/tests/interactive/.gitignore +++ /dev/null @@ -1,56 +0,0 @@ -/stamp-test-interactive -/stamp-test-unit-names -/test-actors -/test-animation -/test-animator -/test-bind-constraint -/test-binding-pool -/test-cairo-clock -/test-cairo-flowers -/test-clip -/test-cogl-multitexture -/test-cogl-offscreen -/test-cogl-point-sprites -/test-cogl-primitives -/test-cogl-shader-arbfp -/test-cogl-shader-glsl -/test-cogl-tex-convert -/test-cogl-tex-foreign -/test-cogl-tex-getset -/test-cogl-tex-polygon -/test-cogl-tex-tile -/test-cogl-vertex-buffer -/test-content -/test-devices -/test-easing -/test-events -/test-fbo -/test-grab -/test-image -/test-interactive -/test-keyframe-transition -/test-layout -/test-multistage -/test-paint-wrapper -/test-path-constraint -/test-pixmap -/test-rotate-zoom -/test-scale -/test-script -/test-scrolling -/test-shader-effects -/test-stage-read-pixels -/test-stage-sizing -/test-state -/test-state-animator -/test-state-script -/test-swipe-action -/test-table-layout -/test-text -/test-text-field -/test-texture-async -/test-texture-material -/test-texture-quality -/test-texture-slicing -/test-touch-events -/test-unit-names.h diff --git a/cogl/cogl-pango/Makefile.am b/cogl/cogl-pango/Makefile.am index b89877d0f..0ba3d8723 100644 --- a/cogl/cogl-pango/Makefile.am +++ b/cogl/cogl-pango/Makefile.am @@ -91,3 +91,21 @@ typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) CLEANFILES += $(gir_DATA) $(typelib_DATA) endif + +if ENABLE_VAPIGEN +-include $(VAPIGEN_MAKEFILE) + +mutter-cogl-@LIBMUTTER_API_VERSION@.vapi: CoglPango-@LIBMUTTER_API_VERSION@.gir mutter-cogl-pango-@LIBMUTTER_API_VERSION@.deps + +VAPIGEN_VAPIS = mutter-cogl-pango-@LIBMUTTER_API_VERSION@.vapi + +mutter_cogl_pango_@LIBMUTTER_API_VERSION@_vapi_DEPS = pango +mutter_cogl_pango_@LIBMUTTER_API_VERSION@_vapi_METADATADIRS = $(srcdir) +mutter_cogl_pango_@LIBMUTTER_API_VERSION@_vapi_FILES = CoglPango-@LIBMUTTER_API_VERSION@.gir +mutter_cogl_pango_@LIBMUTTER_API_VERSION@_vapi_GIRDIRS = $(top_builddir)/cogl + +vapidir = $(datadir)/vala/vapi +vapi_DATA = $(VAPIGEN_VAPIS) $(VAPIGEN_VAPIS:.vapi=.deps) + +EXTRA_DIST += mutter-cogl-pango-@LIBMUTTER_API_VERSION@.deps +endif diff --git a/cogl/cogl-pango/mutter-cogl-pango-0.deps b/cogl/cogl-pango/mutter-cogl-pango-0.deps new file mode 100644 index 000000000..98ccac5bc --- /dev/null +++ b/cogl/cogl-pango/mutter-cogl-pango-0.deps @@ -0,0 +1 @@ +pango diff --git a/cogl/cogl/Makefile.am b/cogl/cogl/Makefile.am index ad3dce895..9fc3411c0 100644 --- a/cogl/cogl/Makefile.am +++ b/cogl/cogl/Makefile.am @@ -506,5 +506,22 @@ gir_DATA = $(INTROSPECTION_GIRS) typelibdir = $(mutterlibdir) typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) +if ENABLE_VAPIGEN +-include $(VAPIGEN_MAKEFILE) + +mutter-cogl-@LIBMUTTER_API_VERSION@.vapi: Cogl-@LIBMUTTER_API_VERSION@.gir mutter-cogl-@LIBMUTTER_API_VERSION@.deps + +VAPIGEN_VAPIS = mutter-cogl-@LIBMUTTER_API_VERSION@.vapi + +mutter_cogl_@LIBMUTTER_API_VERSION@_vapi_DEPS = pango +mutter_cogl_@LIBMUTTER_API_VERSION@_vapi_METADATADIRS = $(srcdir) +mutter_cogl_@LIBMUTTER_API_VERSION@_vapi_FILES = Cogl-@LIBMUTTER_API_VERSION@.gir + +vapidir = $(datadir)/vala/vapi +vapi_DATA = $(VAPIGEN_VAPIS) $(VAPIGEN_VAPIS:.vapi=.deps) + +EXTRA_DIST += mutter-cogl-@LIBMUTTER_API_VERSION@.deps +endif + CLEANFILES += $(gir_DATA) $(typelib_DATA) endif diff --git a/cogl/cogl/mutter-cogl-0.deps b/cogl/cogl/mutter-cogl-0.deps new file mode 100644 index 000000000..98ccac5bc --- /dev/null +++ b/cogl/cogl/mutter-cogl-0.deps @@ -0,0 +1 @@ +pango diff --git a/cogl/configure.ac b/cogl/configure.ac index 3be282fc2..8b500e80b 100644 --- a/cogl/configure.ac +++ b/cogl/configure.ac @@ -842,6 +842,11 @@ dnl GObject-Introspection check dnl ================================================================ GOBJECT_INTROSPECTION_CHECK([gi_req_version]) +dnl ================================================================ +dnl Vala vapigen check +dnl ================================================================ +VAPIGEN_CHECK() + dnl ================================================================ dnl Checks for header files. dnl ================================================================ diff --git a/configure.ac b/configure.ac index d1528702f..43d80124f 100644 --- a/configure.ac +++ b/configure.ac @@ -246,6 +246,8 @@ if test x$found_introspection != xno; then MUTTER_PC_MODULES="$MUTTER_PC_MODULES gobject-introspection-1.0" fi +VAPIGEN_CHECK() + AC_SUBST(XWAYLAND_PATH) PKG_CHECK_MODULES(MUTTER, $MUTTER_PC_MODULES) @@ -509,6 +511,7 @@ mutter-$VERSION libwacom: ${have_libwacom} gudev ${have_gudev} Introspection: ${found_introspection} + Vala: ${enable_vala} Session management: ${found_sm} Wayland: ${have_wayland} Native (KMS) backend: ${have_native_backend} diff --git a/src/Makefile.am b/src/Makefile.am index 34dd545da..e0466f59a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -43,6 +43,7 @@ AM_CPPFLAGS = \ -DMUTTER_PLUGIN_DIR=\"$(MUTTER_PLUGIN_DIR)\" \ -DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\" \ -DXWAYLAND_PATH=\"$(XWAYLAND_PATH)\" \ + -DMUTTER_COMPILATION=1 \ $(NULL) mutter_built_sources = \ @@ -536,10 +537,31 @@ Meta_@LIBMUTTER_API_VERSION@_gir_LIBS = libmutter-$(LIBMUTTER_API_VERSION).la Meta_@LIBMUTTER_API_VERSION@_gir_FILES = \ $(libmutterinclude_base_headers) \ $(filter %.c,$(libmutter_@LIBMUTTER_API_VERSION@_la_SOURCES) $(nodist_libmutter_@LIBMUTTER_API_VERSION@_la_SOURCES)) -Meta_@LIBMUTTER_API_VERSION@_SCANNERFLAGS = --warn-all --warn-error +Meta_@LIBMUTTER_API_VERSION@_gir_SCANNERFLAGS = \ + --warn-all \ + --warn-error \ + --c-include='meta/meta.h' endif +if ENABLE_VAPIGEN +-include $(VAPIGEN_MAKEFILE) + +libmutter-@LIBMUTTER_API_VERSION@.vapi: Meta-@LIBMUTTER_API_VERSION@.gir libmutter-@LIBMUTTER_API_VERSION@.deps + +VAPIGEN_VAPIS = libmutter-@LIBMUTTER_API_VERSION@.vapi + +libmutter_@LIBMUTTER_API_VERSION@_vapi_DEPS = cairo gdk-3.0 gdk-pixbuf-2.0 gtk+-3.0 x11 json-glib-1.0 +libmutter_@LIBMUTTER_API_VERSION@_vapi_METADATADIRS = $(srcdir) +libmutter_@LIBMUTTER_API_VERSION@_vapi_FILES = Meta-@LIBMUTTER_API_VERSION@.gir +libmutter_@LIBMUTTER_API_VERSION@_vapi_GIRDIRS = $(top_builddir)/cogl/cogl $(top_builddir)/cogl/cogl-pango $(top_builddir)/clutter/clutter + +vapidir = $(datadir)/vala/vapi +vapi_DATA = $(VAPIGEN_VAPIS) $(VAPIGEN_VAPIS:.vapi=.deps) + +EXTRA_DIST += libmutter-@LIBMUTTER_API_VERSION@.deps +endif + dbus_idle_built_sources = meta-dbus-idle-monitor.c meta-dbus-idle-monitor.h CLEANFILES = \ diff --git a/src/compositor/plugins/default.c b/src/compositor/plugins/default.c index 7670b6387..16006eabf 100644 --- a/src/compositor/plugins/default.c +++ b/src/compositor/plugins/default.c @@ -21,11 +21,7 @@ #include -#include -#include -#include -#include -#include +#include #include #include diff --git a/src/libmutter-0.deps b/src/libmutter-0.deps new file mode 100644 index 000000000..4eda8484b --- /dev/null +++ b/src/libmutter-0.deps @@ -0,0 +1,6 @@ +cairo +gdk-3.0 +gdk-pixbuf-2.0 +gtk+-3.0 +x11 +json-glib-1.0 diff --git a/src/meta/barrier.h b/src/meta/barrier.h index d7b1666c7..1c49afa38 100644 --- a/src/meta/barrier.h +++ b/src/meta/barrier.h @@ -3,6 +3,10 @@ #ifndef __META_BARRIER_H__ #define __META_BARRIER_H__ +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include diff --git a/src/meta/boxes.h b/src/meta/boxes.h index 847f35c80..5e08fcf8e 100644 --- a/src/meta/boxes.h +++ b/src/meta/boxes.h @@ -22,6 +22,10 @@ #ifndef META_BOXES_H #define META_BOXES_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include diff --git a/src/meta/common.h b/src/meta/common.h index ba987562a..3f1aa9a89 100644 --- a/src/meta/common.h +++ b/src/meta/common.h @@ -25,6 +25,10 @@ #ifndef META_COMMON_H #define META_COMMON_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + /* Don't include core headers here */ #include #include diff --git a/src/meta/compositor-mutter.h b/src/meta/compositor-mutter.h index 66c61388e..d31a20e9b 100644 --- a/src/meta/compositor-mutter.h +++ b/src/meta/compositor-mutter.h @@ -23,6 +23,10 @@ #ifndef MUTTER_H_ #define MUTTER_H_ +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include #include diff --git a/src/meta/compositor.h b/src/meta/compositor.h index f4de9b180..5a4a24e67 100644 --- a/src/meta/compositor.h +++ b/src/meta/compositor.h @@ -20,6 +20,10 @@ #ifndef META_COMPOSITOR_H #define META_COMPOSITOR_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include diff --git a/src/meta/display.h b/src/meta/display.h index 3d70d8dab..eb3ab5dd0 100644 --- a/src/meta/display.h +++ b/src/meta/display.h @@ -20,6 +20,10 @@ #ifndef META_DISPLAY_H #define META_DISPLAY_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include diff --git a/src/meta/errors.h b/src/meta/errors.h index b9ee9b3b7..ac18c66a1 100644 --- a/src/meta/errors.h +++ b/src/meta/errors.h @@ -22,6 +22,10 @@ #ifndef META_ERRORS_H #define META_ERRORS_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include diff --git a/src/meta/group.h b/src/meta/group.h index 09d6e29c4..8064067af 100644 --- a/src/meta/group.h +++ b/src/meta/group.h @@ -22,6 +22,10 @@ #ifndef META_GROUP_H #define META_GROUP_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include #include diff --git a/src/meta/keybindings.h b/src/meta/keybindings.h index 79ee407c2..09df6268d 100644 --- a/src/meta/keybindings.h +++ b/src/meta/keybindings.h @@ -18,6 +18,10 @@ #ifndef META_KEYBINDINGS_H #define META_KEYBINDINGS_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include diff --git a/src/meta/main.h b/src/meta/main.h index 1cc8ff0a7..5236c290f 100644 --- a/src/meta/main.h +++ b/src/meta/main.h @@ -22,6 +22,10 @@ #ifndef META_MAIN_H #define META_MAIN_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include GOptionContext *meta_get_option_context (void); diff --git a/src/meta/meta-backend.h b/src/meta/meta-backend.h index 50afa721a..fb044691e 100644 --- a/src/meta/meta-backend.h +++ b/src/meta/meta-backend.h @@ -25,6 +25,10 @@ #ifndef META_BACKEND_H #define META_BACKEND_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include diff --git a/src/meta/meta-background-actor.h b/src/meta/meta-background-actor.h index e2c4d6a06..d4f1d68d5 100644 --- a/src/meta/meta-background-actor.h +++ b/src/meta/meta-background-actor.h @@ -21,6 +21,10 @@ #ifndef META_BACKGROUND_ACTOR_H #define META_BACKGROUND_ACTOR_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include #include diff --git a/src/meta/meta-background-group.h b/src/meta/meta-background-group.h index 9997b739e..e18d6f924 100644 --- a/src/meta/meta-background-group.h +++ b/src/meta/meta-background-group.h @@ -3,6 +3,10 @@ #ifndef META_BACKGROUND_GROUP_H #define META_BACKGROUND_GROUP_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #define META_TYPE_BACKGROUND_GROUP (meta_background_group_get_type ()) diff --git a/src/meta/meta-background-image.h b/src/meta/meta-background-image.h index fa67b42cf..5f958999e 100644 --- a/src/meta/meta-background-image.h +++ b/src/meta/meta-background-image.h @@ -23,6 +23,10 @@ #ifndef __META_BACKGROUND_IMAGE_H__ #define __META_BACKGROUND_IMAGE_H__ +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include diff --git a/src/meta/meta-background.h b/src/meta/meta-background.h index d48d966a0..157974a44 100644 --- a/src/meta/meta-background.h +++ b/src/meta/meta-background.h @@ -21,6 +21,10 @@ #ifndef META_BACKGROUND_H #define META_BACKGROUND_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include #include diff --git a/src/meta/meta-close-dialog.h b/src/meta/meta-close-dialog.h index d9a5fa58a..505f0f0ef 100644 --- a/src/meta/meta-close-dialog.h +++ b/src/meta/meta-close-dialog.h @@ -22,6 +22,10 @@ #ifndef META_CLOSE_DIALOG_H #define META_CLOSE_DIALOG_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include diff --git a/src/meta/meta-cursor-tracker.h b/src/meta/meta-cursor-tracker.h index e045fa51f..70006ba75 100644 --- a/src/meta/meta-cursor-tracker.h +++ b/src/meta/meta-cursor-tracker.h @@ -22,6 +22,10 @@ #ifndef META_CURSOR_TRACKER_H #define META_CURSOR_TRACKER_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include #include diff --git a/src/meta/meta-dnd.h b/src/meta/meta-dnd.h index bc77c24c2..918d971fc 100644 --- a/src/meta/meta-dnd.h +++ b/src/meta/meta-dnd.h @@ -20,6 +20,10 @@ #ifndef META_DND_H #define META_DND_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include diff --git a/src/meta/meta-idle-monitor.h b/src/meta/meta-idle-monitor.h index b77d8e250..9d1a52609 100644 --- a/src/meta/meta-idle-monitor.h +++ b/src/meta/meta-idle-monitor.h @@ -20,6 +20,10 @@ #ifndef META_IDLE_MONITOR_H #define META_IDLE_MONITOR_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include diff --git a/src/meta/meta-monitor-manager.h b/src/meta/meta-monitor-manager.h index da1e32922..b1a3cd1ea 100644 --- a/src/meta/meta-monitor-manager.h +++ b/src/meta/meta-monitor-manager.h @@ -22,6 +22,10 @@ #ifndef META_MONITOR_MANAGER_H #define META_MONITOR_MANAGER_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include typedef struct _MetaMonitorManagerClass MetaMonitorManagerClass; diff --git a/src/meta/meta-plugin.h b/src/meta/meta-plugin.h index 85a738f09..d5c7f09cb 100644 --- a/src/meta/meta-plugin.h +++ b/src/meta/meta-plugin.h @@ -22,6 +22,10 @@ #ifndef META_PLUGIN_H_ #define META_PLUGIN_H_ +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include #include diff --git a/src/meta/meta-settings.h b/src/meta/meta-settings.h index 1edc8600e..9fffd94be 100644 --- a/src/meta/meta-settings.h +++ b/src/meta/meta-settings.h @@ -22,6 +22,10 @@ #ifndef META_SETTINGS_H #define META_SETTINGS_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include "meta/types.h" int meta_settings_get_ui_scaling_factor (MetaSettings *settings); diff --git a/src/meta/meta-shadow-factory.h b/src/meta/meta-shadow-factory.h index 730faf4a2..893f5a3f2 100644 --- a/src/meta/meta-shadow-factory.h +++ b/src/meta/meta-shadow-factory.h @@ -23,6 +23,10 @@ #ifndef __META_SHADOW_FACTORY_H__ #define __META_SHADOW_FACTORY_H__ +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include #include diff --git a/src/meta/meta-shaped-texture.h b/src/meta/meta-shaped-texture.h index 80b23f2ea..41f36c501 100644 --- a/src/meta/meta-shaped-texture.h +++ b/src/meta/meta-shaped-texture.h @@ -24,6 +24,10 @@ #ifndef __META_SHAPED_TEXTURE_H__ #define __META_SHAPED_TEXTURE_H__ +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include diff --git a/src/meta/meta-version.h.in b/src/meta/meta-version.h.in index bf977cf41..2b53b8946 100644 --- a/src/meta/meta-version.h.in +++ b/src/meta/meta-version.h.in @@ -20,6 +20,10 @@ #ifndef META_VERSION_H #define META_VERSION_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #define META_MAJOR_VERSION @MUTTER_MAJOR_VERSION@ #define META_MINOR_VERSION @MUTTER_MINOR_VERSION@ #define META_MICRO_VERSION @MUTTER_MICRO_VERSION@ diff --git a/src/meta/meta-window-actor.h b/src/meta/meta-window-actor.h index 9b556280d..bb6c52d18 100644 --- a/src/meta/meta-window-actor.h +++ b/src/meta/meta-window-actor.h @@ -23,6 +23,10 @@ #ifndef META_WINDOW_ACTOR_H_ #define META_WINDOW_ACTOR_H_ +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include diff --git a/src/meta/meta-window-shape.h b/src/meta/meta-window-shape.h index b10adf082..a4c5df60d 100644 --- a/src/meta/meta-window-shape.h +++ b/src/meta/meta-window-shape.h @@ -23,6 +23,10 @@ #ifndef __META_WINDOW_SHAPE_H__ #define __META_WINDOW_SHAPE_H__ +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include diff --git a/src/meta/meta.h b/src/meta/meta.h new file mode 100644 index 000000000..0bcc31525 --- /dev/null +++ b/src/meta/meta.h @@ -0,0 +1,65 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ + +/* Mutter main */ + +/* + * Copyright (C) 2001 Havoc Pennington + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#ifndef __META_H__ +#define __META_H__ + +#define __META_H_INSIDE__ + +#include "barrier.h" +#include "boxes.h" +#include "common.h" +#include "compositor.h" +#include "compositor-mutter.h" +#include "display.h" +#include "errors.h" +#include "group.h" +#include "keybindings.h" +#include "main.h" +#include "meta-backend.h" +#include "meta-background-actor.h" +#include "meta-background-group.h" +#include "meta-background.h" +#include "meta-background-image.h" +#include "meta-close-dialog.h" +#include "meta-cursor-tracker.h" +#include "meta-dnd.h" +#include "meta-enum-types.h" +#include "meta-idle-monitor.h" +#include "meta-monitor-manager.h" +#include "meta-plugin.h" +#include "meta-settings.h" +#include "meta-shadow-factory.h" +#include "meta-shaped-texture.h" +#include "meta-version.h" +#include "meta-window-actor.h" +#include "meta-window-shape.h" +#include "prefs.h" +#include "screen.h" +#include "theme.h" +#include "types.h" +#include "util.h" +#include "window.h" +#include "workspace.h" + +#undef __META_H_INSIDE__ + +#endif /* __META_H__ */ diff --git a/src/meta/prefs.h b/src/meta/prefs.h index 988763470..3e5ab7508 100644 --- a/src/meta/prefs.h +++ b/src/meta/prefs.h @@ -23,6 +23,10 @@ #ifndef META_PREFS_H #define META_PREFS_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + /* This header is a "common" one between the UI and core side */ #include #include diff --git a/src/meta/screen.h b/src/meta/screen.h index 13c92516e..1ae4eeeff 100644 --- a/src/meta/screen.h +++ b/src/meta/screen.h @@ -20,6 +20,10 @@ #ifndef META_SCREEN_H #define META_SCREEN_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include #include diff --git a/src/meta/theme.h b/src/meta/theme.h index 66325536f..bb705979a 100644 --- a/src/meta/theme.h +++ b/src/meta/theme.h @@ -22,6 +22,10 @@ #ifndef META_THEME_H #define META_THEME_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include /** diff --git a/src/meta/types.h b/src/meta/types.h index d3a5ca32b..2a1329bbd 100644 --- a/src/meta/types.h +++ b/src/meta/types.h @@ -20,6 +20,10 @@ #ifndef META_TYPES_H #define META_TYPES_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + /** * MetaCompositor: (skip) * diff --git a/src/meta/util.h b/src/meta/util.h index 3619e8adb..eb2eba424 100644 --- a/src/meta/util.h +++ b/src/meta/util.h @@ -23,6 +23,10 @@ #ifndef META_UTIL_H #define META_UTIL_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include diff --git a/src/meta/window.h b/src/meta/window.h index b482bed37..7e01d191c 100644 --- a/src/meta/window.h +++ b/src/meta/window.h @@ -20,6 +20,10 @@ #ifndef META_WINDOW_H #define META_WINDOW_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include #include diff --git a/src/meta/workspace.h b/src/meta/workspace.h index 005e9c9af..d571cf915 100644 --- a/src/meta/workspace.h +++ b/src/meta/workspace.h @@ -21,6 +21,10 @@ #ifndef META_WORKSPACE_H #define META_WORKSPACE_H +#if !defined(__META_H_INSIDE__) && !defined(MUTTER_COMPILATION) +#error "Only can be included directly." +#endif + #include #include #include