export headers and pkg-config for plugin development.
authorFred Chien <fred@lxde.org>
Sat, 6 Dec 2008 16:06:50 +0000 (16:06 +0000)
committerFred Chien <fred@lxde.org>
Sat, 6 Dec 2008 16:06:50 +0000 (16:06 +0000)
Makefile.am
configure.ac
lxpanel.pc.in [new file with mode: 0644]
src/Makefile.am

index dd20227..4abee94 100644 (file)
@@ -8,7 +8,11 @@ EXTRA_DIST = \
         autogen.sh \
         intltool-extract.in \
         intltool-merge.in \
-        intltool-update.in
+        intltool-update.in \
+        lxpanel.pc.in
+
+pkgconfigdir   = $(libdir)/pkgconfig
+pkgconfig_DATA = lxpanel.pc
 
 ##desktopdir = $(datadir)/applications
 ##desktop_DATA = pcmanfm.desktop
index 22ba2e7..4ddef62 100644 (file)
@@ -9,7 +9,6 @@ AC_DISABLE_STATIC
 
 # Checks for programs.
 AC_PROG_CC
-AM_PROG_CC_C_O
 AC_PROG_INSTALL
 AC_PROG_LN_S
 AC_PROG_LIBTOOL
@@ -300,6 +299,7 @@ ALL_LINGUAS="zh_TW ko hu sk pl fr pt_BR fi de es zh_CN"
 AM_GLIB_GNU_GETTEXT
 
 AC_CONFIG_FILES([
+    lxpanel.pc
     Makefile
     src/Makefile
     src/plugins/Makefile
diff --git a/lxpanel.pc.in b/lxpanel.pc.in
new file mode 100644 (file)
index 0000000..a7df5fd
--- /dev/null
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@/lxpanel
+includedir=@includedir@
+
+Name: lxpanel
+Description: A lightweight X11 desktop panel
+Requires: glib-2.0
+Version: @VERSION@
+Cflags: -rpath $(libdir)/plugins
index d39c348..0b5ff78 100644 (file)
@@ -37,6 +37,14 @@ lxpanel_SOURCES = \
 
 if BUILD_PLUGIN_LOADER
 DYNAMIC_FLAGS = -export-dynamic
+lxpanel_includedir = $(includedir)/lxpanel
+lxpanel_include_HEADERS = \
+       bg.h \
+       dbg.h \
+       ev.h \
+       misc.h \
+       panel.h \
+       plugin.h
 endif
 lxpanel_LDFLAGS = $(DYNAMIC_FLAGS)