diff options
author | RĂ©mi Denis-Courmont <remi.denis-courmont@nokia.com> | 2011-01-31 10:37:22 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-01-31 10:44:56 +0100 |
commit | 4a482d296be40f1fc88c12e7cba176116ad1a48b (patch) | |
tree | 3e2b8401b915d4c09e136557e4d0339b557c676f | |
parent | 3970e5c06b8049ad10ff2b6f92ef5d2dd62e39b6 (diff) | |
download | ofono-4a482d296be40f1fc88c12e7cba176116ad1a48b.tar.bz2 |
build: Support for pkg-config
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | ofono.pc.in | 13 |
4 files changed, 18 insertions, 1 deletions
@@ -23,6 +23,7 @@ missing stamp-h1 autom4te.cache +ofono.pc include/ofono include/version.h src/builtin.h diff --git a/Makefile.am b/Makefile.am index e6b308b6..a38fcb99 100644 --- a/Makefile.am +++ b/Makefile.am @@ -22,6 +22,9 @@ local_headers = $(foreach file,$(pkginclude_HEADERS) \ $(nodist_pkginclude_HEADERS), \ include/ofono/$(notdir $(file))) +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = ofono.pc + if DATAFILES dbusconfdir = @DBUS_CONFDIR@ diff --git a/configure.ac b/configure.ac index 6e0d9d39..1b9867c4 100644 --- a/configure.ac +++ b/configure.ac @@ -222,4 +222,4 @@ fi AC_DEFINE_UNQUOTED(CONFIGDIR, "${configdir}", [Directory for the configuration files]) -AC_OUTPUT(Makefile include/version.h src/ofono.service) +AC_OUTPUT(Makefile include/version.h src/ofono.service ofono.pc) diff --git a/ofono.pc.in b/ofono.pc.in new file mode 100644 index 00000000..b4d0a77d --- /dev/null +++ b/ofono.pc.in @@ -0,0 +1,13 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +plugindir=${libdir}/@PACKAGE@/plugins + +Name: @PACKAGE@ +Description: oFono - Open Source Telephony +Version: @VERSION@ +Requires: glib-2.0 dbus-1 +Cflags: -I${includedir} +Libs: -module -avoid-version -export-symbols-regex '@PACKAGE@_plugin_desc' |