From 61bc03afdadb206839db4c0eb0631104a1a2ff3b Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 21 Apr 2009 14:15:22 -0500 Subject: Creating an indicator lib to make sure we can attach all these things together. --- .bzrignore | 1 + Makefile.am | 1 + configure.ac | 2 ++ libindicator/Makefile.am | 14 ++++++++++++++ libindicator/indicator.h | 17 +++++++++++++++++ libindicator/indicator.pc.in | 16 ++++++++++++++++ 6 files changed, 51 insertions(+) create mode 100644 libindicator/Makefile.am create mode 100644 libindicator/indicator.h create mode 100644 libindicator/indicator.pc.in diff --git a/.bzrignore b/.bzrignore index 2e5dd36..a8561af 100644 --- a/.bzrignore +++ b/.bzrignore @@ -60,3 +60,4 @@ libindicate/indicate-enum-types.h libindicate/libindicate_la-indicate-enum-types.lo libindicate/s-enum-types-c libindicate/s-enum-types-h +indicator.pc diff --git a/Makefile.am b/Makefile.am index d4f7ca2..a523c3a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,6 +2,7 @@ SUBDIRS = \ src \ libindicate \ + libindicator \ tests \ data \ po \ diff --git a/configure.ac b/configure.ac index ca46ff9..3df81f5 100644 --- a/configure.ac +++ b/configure.ac @@ -161,6 +161,8 @@ Makefile src/Makefile libindicate/Makefile libindicate/indicate.pc +libindicator/Makefile +libindicator/indicator.pc tests/Makefile data/Makefile po/Makefile.in diff --git a/libindicator/Makefile.am b/libindicator/Makefile.am new file mode 100644 index 0000000..be68721 --- /dev/null +++ b/libindicator/Makefile.am @@ -0,0 +1,14 @@ +EXTRA_DIST = \ + indicator.pc.in + +libindicatorincludedir=$(includedir)/libindicator-0.1/libindicator + +indicator_headers = \ + indicator.h + +libindicatorinclude_HEADERS = \ + $(indicator_headers) + +pkgconfig_DATA = indicator.pc +pkgconfigdir = $(libdir)/pkgconfig + diff --git a/libindicator/indicator.h b/libindicator/indicator.h new file mode 100644 index 0000000..9afaa4f --- /dev/null +++ b/libindicator/indicator.h @@ -0,0 +1,17 @@ + +#ifndef __LIBINDICATOR_INDICATOR_H_SEEN__ +#define __LIBINDICATOR_INDICATOR_H_SEEN__ 1 + +#include + +#define INDICATOR_GET_LABEL_S "get_label" +GtkLabel * get_label (void); + +#define INDICATOR_GET_ICON_S "get_icon" +GtkImage * get_icon (void); + +#define INDICATOR_GET_MENU_S "get_menu" +GtkMenu * get_menu (void); + +#endif /* __LIBINDICATOR_INDICATOR_H_SEEN__ */ + diff --git a/libindicator/indicator.pc.in b/libindicator/indicator.pc.in new file mode 100644 index 0000000..32f865d --- /dev/null +++ b/libindicator/indicator.pc.in @@ -0,0 +1,16 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +bindir=@bindir@ +includedir=@includedir@ + +indicatordir=@indicatordir@ + +Cflags: -I${includedir}/libindicator-0.1 +Requires: gtk-2.0 +Libs: + +Name: libindicator +Description: libindicator. +Version: @VERSION@ + -- cgit v1.2.3