mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-26 11:34:33 +00:00
Add pkg-config support
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
f856f299e4
commit
8e3225999c
5 files changed
+36
-2
No files matched your search
+5
-1
@@ -4,6 +4,8 @@
|
||||
*.so
|
||||
*.so.*
|
||||
*.a
|
||||
*.la
|
||||
*.lo
|
||||
.deps
|
||||
.libs
|
||||
compile
|
||||
@@ -22,4 +24,6 @@ ar-lib
|
||||
autom4te.cache
|
||||
bench
|
||||
test
|
||||
libuev*
|
||||
libuev*.tar.*
|
||||
libuev.pc
|
||||
!libuev.pc.in
|
||||
@@ -12,6 +12,8 @@ libuev_la_CPPFLAGS = -D_GNU_SOURCE
|
||||
libuev_la_CFLAGS = -W -Wall -Wextra
|
||||
libuev_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = libuev.pc
|
||||
doc_DATA = README.md LICENSE
|
||||
EXTRA_DIST = README.md LICENSE AUTHORS ChangeLog.md
|
||||
|
||||
|
||||
@@ -270,6 +270,22 @@ library) for [reference benchmarks][7] against [libevent][1] and
|
||||
[libev][2].
|
||||
|
||||
|
||||
Using -luev
|
||||
-----------
|
||||
|
||||
LibuEv is by default installed as a library with a single include file.
|
||||
|
||||
#include <libuev/uev.h>
|
||||
|
||||
The output from the `pkg-config` tool holds no surprises:
|
||||
|
||||
$ pkg-config --libs --static --cflags libuev
|
||||
-I/usr/local/include -L/usr/local/lib -luev
|
||||
|
||||
The prefix path `/usr/local/` used here is only the default. Use the
|
||||
`configure` script to select a different path when installing libuEv.
|
||||
|
||||
|
||||
Build & Install
|
||||
---------------
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ AM_SILENT_RULES([yes])
|
||||
|
||||
AC_CONFIG_SRCDIR(uev.c)
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
AC_CONFIG_FILES([Makefile examples/Makefile])
|
||||
AC_CONFIG_FILES([Makefile libuev.pc examples/Makefile])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
|
||||
AC_PROG_CC
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
|
||||
Name: @PACKAGE@
|
||||
Description: Simple event loop for Linux
|
||||
Version: @VERSION@
|
||||
Requires:
|
||||
Libs: -L${libdir} -luev
|
||||
Cflags: -I${includedir}
|
||||
|
||||
Reference in new issue
Block a user