libchamplain_gtk_0_2_la_LDFLAGS= -version-info $(LIBRARY_VERSION)
-AM_CPPFLAGS = $(DEPS_CFLAGS) -I$(top_srcdir)
+AM_CPPFLAGS = $(DEPS_CFLAGS) -I$(top_srcdir) -DCHAMPLAIN_GTK_COMPILATION
AM_LDFLAGS = $(DEPS_LIBS) -export-dynamic -export-symbols-regex ^champlain_.*
EXTRA_DIST = $(CHAMPLAIN_GTK_MARSHAL_LIST)
--- /dev/null
+/*
+ * Copyright (C) 2008 Pierre-Luc Beaudoin <pierre-luc@pierlux.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef CHAMPLAIN_GTK_H
+#define CHAMPLAIN_GTK_H
+
+#define __CHAMPLAIN_GTK_CHAMPLAIN_GTK_H_INSIDE__
+
+#include <champlain-gtk/champlainviewembed.h>
+
+#undef __CHAMPLAIN_GTK_CHAMPLAIN_GTK_H_INSIDE__
+
+#endif
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+#if !defined (__CHAMPLAIN_GTK_CHAMPLAIN_GTK_H_INSIDE__) && !defined (CHAMPLAIN_GTK_COMPILATION)
+#error "Only <champlain/champlain.h> can be included directly."
+#endif
#ifndef CHAMPLAIN_VIEW_EMBED_H
#define CHAMPLAIN_VIEW_EMBED_H
#include <gtk/gtk.h>
#include <champlain/champlain.h>
-#include <champlain-gtk/champlainviewembed.h>
+#include <champlain-gtk/champlain-gtk.h>
#include <clutter-gtk/gtk-clutter-embed.h>
#define OSM_MAP "Open Street Map"