summaryrefslogtreecommitdiff
path: root/liburing.pc.in
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2019-05-25 09:58:29 +0100
committerJens Axboe <axboe@kernel.dk>2019-05-25 06:36:21 -0600
commit1b049c1265977ba13f20797848859a46ade1b75b (patch)
tree7d56e53bd013d95acdf27643c82643185dc1ba43 /liburing.pc.in
parentd672969583c3226828392771b4a949452c9ef578 (diff)
pkgconfig: install a liburing.pc file
pkg-config (https://pkgconfig.freedesktop.org/) makes it easier to build applications that have library dependencies. Libraries ship .pc files containing the compiler and linker flags needed to build successfully. This saves applications from hardcoding these details into their build scripts, especially when these details can change between operating systems or distributions. To build a liburing application: gcc $(pkg-config --cflags --libs liburing) -o myapp myapp.c Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'liburing.pc.in')
-rw-r--r--liburing.pc.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/liburing.pc.in b/liburing.pc.in
new file mode 100644
index 0000000..e621939
--- /dev/null
+++ b/liburing.pc.in
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=${prefix}
+libdir=@libdir@
+includedir=@includedir@
+
+Name: @NAME@
+Version: @VERSION@
+Description: io_uring library
+URL: http://git.kernel.dk/cgit/liburing/
+
+Libs: -L${libdir} -luring
+Cflags: -I${includedir}