diff options
author | Ted Gould <ted@canonical.com> | 2009-01-07 20:18:12 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-01-07 20:18:12 -0600 |
commit | 1068ff29ae8daba39a9b07a451a75a2e06f5e63c (patch) | |
tree | ee80dd694ba1e4fabd96978b9151862c7865cfe0 | |
parent | 20c59cd98792162b952f0a0bc5f8d2b494b77910 (diff) | |
download | libayatana-indicator-1068ff29ae8daba39a9b07a451a75a2e06f5e63c.tar.gz libayatana-indicator-1068ff29ae8daba39a9b07a451a75a2e06f5e63c.tar.bz2 libayatana-indicator-1068ff29ae8daba39a9b07a451a75a2e06f5e63c.zip |
Fixing linking and libraries and includes oh my
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | libindicate/Makefile.am | 18 | ||||
-rw-r--r-- | libindicate/indicator.h | 3 | ||||
-rw-r--r-- | libindicate/server.h | 3 |
4 files changed, 25 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index b61e0da..83bcb5c 100644 --- a/configure.ac +++ b/configure.ac @@ -24,6 +24,7 @@ AC_CONFIG_MACRO_DIR([m4]) GTK_REQUIRED_VERSION=2.12 PANEL_REQUIRED_VERSION=2.0.0 +DBUS_REQUIRED_VERSION=0.76 PKG_CHECK_MODULES(APPLET, gtk+-2.0 >= $GTK_REQUIRED_VERSION libpanelapplet-2.0 >= $PANEL_REQUIRED_VERSION) @@ -33,6 +34,11 @@ AC_SUBST(APPLET_LIBS) AC_PATH_PROG(GCONFTOOL, gconftool-2) AM_GCONF_SOURCE_2 +PKG_CHECK_MODULES(LIBINDICATE, gtk+-2.0 >= $GTK_REQUIRED_VERSION + dbus-glib-1 >= $DBUS_REQUIRED_VERSION) +AC_SUBST(LIBINDICATE_CFLAGS) +AC_SUBST(LIBINDICATE_LIBS) + ########################### # Internationalization ########################### diff --git a/libindicate/Makefile.am b/libindicate/Makefile.am index f54be07..3f40d6d 100644 --- a/libindicate/Makefile.am +++ b/libindicate/Makefile.am @@ -1,10 +1,13 @@ INCLUDES= \ - -DG_LOG_DOMAIN=\"indicate\" + -DG_LOG_DOMAIN=\"libindicate\" EXTRA_DIST = \ indicate-server.xml +lib_LTLIBRARIES = \ + libindicate.la + libindicateincludedir=$(includedir)/libindicate-1.0/libindicate indicate_headers = \ @@ -14,17 +17,22 @@ indicate_headers = \ libindicateinclude_HEADERS = \ $(indicate_headers) -libindicate_SOURCES = \ +libindicate_la_SOURCES = \ $(indicate_headers) \ - dbus-indicate-server.h + dbus-indicate-server.h \ server.c \ indicator.c -libindicate_LDFLAGS = \ - -version-info 0:0:1 \ +libindicate_la_LDFLAGS = \ -no-undefined \ -export-symbols-regex "^[^_].*" +libindicate_la_CFLAGS = \ + $(LIBINDICATE_CFLAGS) + +libindicate_la_LIBADD = \ + $(LIBINDICATE_LIBS) + dbus-indicate-server.h: indicate-server.xml libtool --mode=execute dbus-binding-tool \ --prefix=indicate_server \ diff --git a/libindicate/indicator.h b/libindicate/indicator.h index 93f551c..dd21c9d 100644 --- a/libindicate/indicator.h +++ b/libindicate/indicator.h @@ -2,6 +2,9 @@ #ifndef INDICATE_INDICATOR_H_INCLUDED__ #define INDICATE_INDICATOR_H_INCLUDED__ 1 +#include <glib.h> +#include <glib-object.h> + /* Boilerplate */ #define INDICATE_TYPE_INDICATOR (indicate_indicator_get_type ()) #define INDICATE_INDICATOR(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), INDICATE_TYPE_INDICATOR, IndicateIndicator)) diff --git a/libindicate/server.h b/libindicate/server.h index 1627f21..632e357 100644 --- a/libindicate/server.h +++ b/libindicate/server.h @@ -2,6 +2,9 @@ #ifndef INDICATE_SERVER_H_INCLUDED__ #define INDICATE_SERVER_H_INCLUDED__ 1 +#include <glib.h> +#include <glib-object.h> + /* Boilerplate */ #define INDICATE_TYPE_SERVER (indicate_server_get_type ()) #define INDICATE_SERVER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), INDICATE_TYPE_SERVER, IndicateServer)) |