From 1287b12a119f161fc075a46be528835f18b281a7 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Tue, 10 Dec 2013 06:40:41 -0500 Subject: [PATCH 5/5] udev: add libudev-hwdb.pc as copy of libudev.pc Add libudev-hwdb.pc with the same content as libudev.pc. It is now possible for people who only want to use the hwdb functionality of libudev to have 'libudev-hwdb' in their pkg-config and to #include from C. On Linux, the effect of doing this this completely unchanged (since you will still get -ludev) but this will allow other systems to implement the hwdb functionality without having to implement all of udev. https://bugs.freedesktop.org/show_bug.cgi?id=72562 --- Makefile.am | 2 ++ src/libudev/libudev-hwdb.pc.in | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 src/libudev/libudev-hwdb.pc.in diff --git a/Makefile.am b/Makefile.am index 3fe037f..fc2564c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2326,9 +2326,11 @@ libudev_la_LIBADD = \ libsystemd-shared.la pkgconfiglib_DATA += \ + src/libudev/libudev-hwdb.pc \ src/libudev/libudev.pc EXTRA_DIST += \ + src/libudev/libudev-hwdb.pc.in \ src/libudev/libudev.pc.in CLEANFILES += \ diff --git a/src/libudev/libudev-hwdb.pc.in b/src/libudev/libudev-hwdb.pc.in new file mode 100644 index 0000000..2dca2a5 --- /dev/null +++ b/src/libudev/libudev-hwdb.pc.in @@ -0,0 +1,17 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: libudev-hwdb +Description: Library to access udev (hwdb only) +Version: @VERSION@ +Libs: -L${libdir} -ludev +Cflags: -I${includedir} -- 1.8.4.2