]> err.no Git - mapper/commitdiff
MapWidget: Move from src/* to libs/libgtkmap/*
authorKaj-Michael Lang <milang@tal.org>
Thu, 22 May 2008 07:36:55 +0000 (10:36 +0300)
committerKaj-Michael Lang <milang@tal.org>
Thu, 22 May 2008 07:36:55 +0000 (10:36 +0300)
Build: Start to add gtk-doc support

Makefile.am
autogen.sh
configure.ac
libs/libgtkmap/gtkmap-marshal.list [moved from src/gtkmap-marshal.list with 100% similarity]
libs/libgtkmap/gtkmap.c [moved from src/gtkmap.c with 100% similarity]
libs/libgtkmap/gtkmap.h [moved from src/gtkmap.h with 100% similarity]
libs/libgtkmap/map-widget-test.c [moved from src/map-widget-test.c with 100% similarity]
src/Makefile.am

index 90eced3059fb890a31b1b90ad62981f47a9a64be..455657fe82115f2c5b17547416578c365b4156d9 100644 (file)
@@ -30,6 +30,8 @@ EXTRA_DIST = \
         debian/rules \
         debian/mapper.links
 
-SUBDIRS = src data po
+SUBDIRS = libs src data po
+
+DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
 
 CLEANFILES = intltool-extract intltool-merge intltool-update
index 1b2bb1da001d6161e224d975600f4c3f60b4e1cc..5297c38953ab1176868b3b71b704fc3c5f3b7f2b 100755 (executable)
@@ -24,6 +24,7 @@ set -x
 glib-gettextize --copy --force
 libtoolize --automake --copy --force
 intltoolize --automake --copy --force
+gtkdocize --copy
 aclocal-1.7
 autoconf --force
 autoheader --force
index 07ae533d56eaf01181cb9442e24c15b815f2e0f1..66c96323e0667cd9033677d9913ff527c3c54afe 100644 (file)
@@ -20,6 +20,7 @@
 
 AC_INIT(Makefile.am)
 AM_INIT_AUTOMAKE(mapper, 1.0.3.95)
+AC_CONFIG_MACRO_DIR(m4)
 AM_MAINTAINER_MODE
 
 AC_PROG_CPP
@@ -114,6 +115,8 @@ AC_ARG_ENABLE([cairo],AS_HELP_STRING([--enable-cairo],[Use cairo]),
 AC_ARG_ENABLE([opengl],AS_HELP_STRING([--enable-opengl],[Use OpenGL (gtkglext]),
               [enable_opengl=$enableval], [enable_opengl=no])
 
+GTK_DOC_CHECK(1.9)
+
 if test "x$enable_cairo" = "xyes" ; then
  PKG_CHECK_MODULES(CAIRO, cairo)
  AC_SUBST(CAIRO_LIBS)
@@ -447,8 +450,10 @@ AC_DEFINE_UNQUOTED([LOCALEDIR], "${localedir}", [Runtime locale catalog files pa
 AC_DEFINE_UNQUOTED([PIXMAPDIR], "${pixmapdir}", [Runtime pixmap files path])
 
 # Produce output files
-AC_OUTPUT(
-          Makefile \
+AC_OUTPUT(Makefile \
+          libs/Makefile \
+          libs/libgtkgps/Makefile \
+          libs/libgtkmap/Makefile \
           src/Makefile \
           data/Makefile \
           data/help/Makefile \
similarity index 100%
rename from src/gtkmap.c
rename to libs/libgtkmap/gtkmap.c
similarity index 100%
rename from src/gtkmap.h
rename to libs/libgtkmap/gtkmap.h
index 97bacfd066d29d76ff3599a0ecd5f76157eb1864..15e30216a2dc74b01ce800561916eb094ee6fa24 100644 (file)
@@ -19,9 +19,9 @@
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 #
 
-INCLUDES = -DDATADIR=\""$(datadir)"\" -DDBUS_API_SUBJECT_TO_CHANGE
+INCLUDES = -DDATADIR=\""$(datadir)"\" -DDBUS_API_SUBJECT_TO_CHANGE -I../libs/libgtkmap/
 
-bin_PROGRAMS = mapper osm2db map_widget_test
+bin_PROGRAMS = mapper osm2db
 
 mapper_CFLAGS = $(GLIBGTK_CFLAGS) $(GTKHTML_CFLAGS) $(CAIRO_CFLAGS) $(GTKGLEXT_CFLAGS) \
        $(OSSO_CFLAGS) $(CONIC_CFLAGS) \
@@ -41,7 +41,7 @@ mapper_LDADD = $(GLIBGTK_LIBS) $(GTKHTML_LIBS) $(CAIRO_LIBS) $(GTKGLEXT_LIBS) \
        $(SQLITE_LIBS) $(LIBCURL_LIBS) \
        $(DBUS_GLIB_LIBS) $(BLUEZ_LIBS) \
        $(GYPSY_LIBS) $(LIBGPSBT_LIBS) $(HAL_LIBS)\
-       -lm libgtkgps.la libosmdb.la libmappergps.la libgtkmap.la
+       -lm libgtkgps.la libosmdb.la libmappergps.la ../libs/libgtkmap/libgtkmap.la
 
 mapper_SOURCES = \
        announcements.c \
@@ -118,7 +118,7 @@ osm2db_CFLAGS = $(EXPAT_CFLAGS) $(SQLITE_CFLAGS) $(GLIBGTK_CFLAGS)
 osm2db_LDADD = $(EXPAT_LIBS) $(SQLITE_LIBS) $(GLIBGTK_LIBS) -lm libosmdb.la
 osm2db_SOURCES = osm.c osm.h
 
-lib_LTLIBRARIES = libgtkgps.la libosmdb.la libmappergps.la libgtkmap.la
+lib_LTLIBRARIES = libgtkgps.la libosmdb.la libmappergps.la
 
 libmappergps_la_SOURCES = \
        bluetooth-scan.h \
@@ -150,15 +150,6 @@ libmappergps_la_CFLAGS+= $(HILDON_CFLAGS) $(HILDONFM_CFLAGS) $(HILDON_HELP_CFLAG
 libmappergps_la_LIBADD+= $(HILDON_LIBS) $(HILDONFM_LIBS) $(HILDON_HELP_LIBS) $(LIBGPSBT_LIBS)
 endif
 
-libgtkmap_la_SOURCES = gtkmap.c gtkmap.h gtkmap-marshal.c gtkmap-marshal.h
-libgtkmap_la_CFLAGS = $(GLIBGTK_CFLAGS) $(GTKGLEXT_CFLAGS) $(defines) 
-libgtkmap_la_LIBADD = $(GLIBGTK_LIBS) $(GTKGLEXT_LIBS)
-libgtkmap_la_LDFLAGS = -lm -no-undefined
-
-map_widget_test_SOURCES = map-widget-test.c latlon.c image-cache.c map-tile-repo.c
-map_widget_test_LDADD = $(GLIBGTK_LIBS) $(GTKHTML_LIBS) $(CAIRO_LIBS) $(GTKGLEXT_LIBS) -lm libgtkgps.la libgtkmap.la
-map_widget_test_CFLAGS = $(GLIBGTK_CFLAGS) $(GTKHTML_CFLAGS) $(CAIRO_CFLAGS) $(GTKGLEXT_CFLAGS)
-
 libgtkgps_la_SOURCES = gtkgps.c gtkcompass.c \
                                           gtkgps.h gtkcompass.h gpsdata.h
 libgtkgps_la_CFLAGS = $(GLIBGTK_CFLAGS) $(defines)
@@ -172,7 +163,7 @@ libosmdb_la_CFLAGS = $(GLIBGTK_CFLAGS) $(SQLITE_CFLAGS) $(defines)
 libosmdb_la_LIBADD = $(GLIBGTK_LIBS) $(SQLITE_LIBS) $(BZ2_LIBS)
 libosmdb_la_LDFLAGS = -lm -no-undefined
 
-EXTRA_DIST = gps-bluetooth-maemo-marshal.list gps-bluetooth-bluez-marshal.list gtkmap-marshal.list
+EXTRA_DIST = gps-bluetooth-maemo-marshal.list gps-bluetooth-bluez-marshal.list
 
 BUILT_SOURCES = gps-bluetooth-maemo-marshal.h gps-bluetooth-maemo-marshal.c \
        gps-bluetooth-bluez-marshal.h gps-bluetooth-bluez-marshal.c
@@ -189,10 +180,4 @@ gps-bluetooth-bluez-marshal.h: gps-bluetooth-bluez-marshal.list
 gps-bluetooth-bluez-marshal.c: gps-bluetooth-bluez-marshal.list
        glib-genmarshal --prefix _bt_bluez --body $< > $@ 
 
-gtkmap-marshal.c: gtkmap-marshal.list
-       glib-genmarshal --prefix _gtkamp --body $< > $@ 
-
-gtkmap-marshal.h: gtkmap-marshal.list
-       glib-genmarshal --prefix _gtkamp --header $< > $@ 
-
 CLEANFILES = $(BUILT_SOURCES)