build: Support for pkg-config

wavecom
Rémi Denis-Courmont 12 years ago committed by Marcel Holtmann
parent 3970e5c06b
commit 4a482d296b
  1. 1
      .gitignore
  2. 3
      Makefile.am
  3. 2
      configure.ac
  4. 13
      ofono.pc.in

1
.gitignore vendored

@ -23,6 +23,7 @@ missing
stamp-h1
autom4te.cache
ofono.pc
include/ofono
include/version.h
src/builtin.h

@ -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@

@ -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)

@ -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'
Loading…
Cancel
Save