build: provide pkg-config files for ModemManager, libmm-common and libmm-glib

This commit is contained in:
Aleksander Morgado
2012-05-24 09:59:00 +02:00
parent e582a22db7
commit 6fa3f0b0d7
6 changed files with 45 additions and 1 deletions

4
.gitignore vendored
View File

@@ -27,7 +27,6 @@ libtool
*.dirstamp
org.freedesktop.ModemManager.service
org.freedesktop.ModemManager.conf
ModemManager.pc
callouts/mm-modem-probe
test/lsudev
@@ -51,6 +50,9 @@ libwmc/tests/test-wmc
data/org.freedesktop.ModemManager1.conf
data/org.freedesktop.ModemManager1.service
data/org.freedesktop.ModemManager1.policy
data/ModemManager.pc
data/mm-common.pc
data/mm-glib.pc
include/ModemManager-names.h

View File

@@ -192,6 +192,9 @@ AM_CONDITIONAL(WMC_STANDALONE, test "yes" = "no")
AC_CONFIG_FILES([
Makefile
data/Makefile
data/ModemManager.pc
data/mm-common.pc
data/mm-glib.pc
include/Makefile
build-aux/Makefile
libmm-common/Makefile

View File

@@ -41,6 +41,14 @@ dist_polkit_policy_DATA = $(dist_polkit_policy_in_files:.policy.in=.policy)
endif
# Set up pkg-config .pc files for exported libraries
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = \
ModemManager.pc \
mm-common.pc \
mm-glib.pc
DISTCLEANFILES = \
$(dbusactivation_DATA) \
$(dbusservice_DATA)

9
data/ModemManager.pc.in Normal file
View File

@@ -0,0 +1,9 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: ModemManager
Description: Common headers provided by ModemManager
Version: @VERSION@
Cflags: -I${includedir}/ModemManager

11
data/mm-common.pc.in Normal file
View File

@@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: mm-common
Description: Library of common utilities provided by ModemManager
Version: @VERSION@
Requires: glib-2.0 gobject-2.0 gio-2.0 gio-unix-2.0 ModemManager
Cflags: -I${includedir}/libmm-common
Libs: -L${libdir} -lmm-common

11
data/mm-glib.pc.in Normal file
View File

@@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: mm-common
Description: Library to control and monitor the ModemManager
Version: @VERSION@
Requires: glib-2.0 gobject-2.0 gio-2.0 ModemManager mm-common
Cflags: -I${includedir}/libmm-glib
Libs: -L${libdir} -lmm-glib