From: Bartosz Golaszewski Date: Mon, 19 Aug 2019 09:52:22 +0000 (+0200) Subject: build: move libgpiod.pc.in into lib/ X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e79194cf916340dca78970fe33ab83c744d20640;p=qemu-gpiodev%2Flibgpiod.git build: move libgpiod.pc.in into lib/ This file is specific to the core library. Move it into the lib/ source directory. Signed-off-by: Bartosz Golaszewski --- diff --git a/Makefile.am b/Makefile.am index 0f8c2b1..d3f57b2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -40,6 +40,3 @@ clean-local: EXTRA_DIST = Doxyfile endif - -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = libgpiod.pc diff --git a/configure.ac b/configure.ac index 1978eea..41321c1 100644 --- a/configure.ac +++ b/configure.ac @@ -206,10 +206,10 @@ then AC_MSG_NOTICE([help2man not found - man pages cannot be generated automatically]) fi -AC_CONFIG_FILES([libgpiod.pc - Makefile +AC_CONFIG_FILES([Makefile include/Makefile lib/Makefile + lib/libgpiod.pc tools/Makefile tests/Makefile tests/mockup/Makefile diff --git a/lib/Makefile.am b/lib/Makefile.am index 3f797c4..e905d49 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -12,3 +12,6 @@ libgpiod_la_CFLAGS = -Wall -Wextra -g libgpiod_la_CFLAGS += -fvisibility=hidden -I$(top_srcdir)/include/ libgpiod_la_CFLAGS += -include $(top_builddir)/config.h libgpiod_la_LDFLAGS = -version-info $(subst .,:,$(ABI_VERSION)) + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = libgpiod.pc diff --git a/lib/libgpiod.pc.in b/lib/libgpiod.pc.in new file mode 100644 index 0000000..48ff113 --- /dev/null +++ b/lib/libgpiod.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: libgpiod +Description: Library and tools for the Linux GPIO chardev +URL: @PACKAGE_URL@ +Version: @PACKAGE_VERSION@ +Libs: -L${libdir} -lgpiod +Cflags: -I${includedir} diff --git a/libgpiod.pc.in b/libgpiod.pc.in deleted file mode 100644 index 48ff113..0000000 --- a/libgpiod.pc.in +++ /dev/null @@ -1,11 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@ - -Name: libgpiod -Description: Library and tools for the Linux GPIO chardev -URL: @PACKAGE_URL@ -Version: @PACKAGE_VERSION@ -Libs: -L${libdir} -lgpiod -Cflags: -I${includedir}