From 3ee60fa72a3a562a50436a5384494e4b429ac7f0 Mon Sep 17 00:00:00 2001 From: Nikolay Mitev Date: Wed, 9 Sep 2020 16:54:43 +0300 Subject: [PATCH] build: add libuv-static pkg-config file Fixes: https://github.com/libuv/libuv/issues/2988 PR-URL: https://github.com/libuv/libuv/pull/2993 Reviewed-By: Ben Noordhuis --- CMakeLists.txt | 3 ++- libuv-static.pc.in | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 libuv-static.pc.in diff --git a/CMakeLists.txt b/CMakeLists.txt index 230fa133..291ef88f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -580,10 +580,11 @@ if(UNIX OR MINGW) set(libdir ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}) set(prefix ${CMAKE_INSTALL_PREFIX}) configure_file(libuv.pc.in libuv.pc @ONLY) + configure_file(libuv-static.pc.in libuv-static.pc @ONLY) install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) install(FILES LICENSE DESTINATION ${CMAKE_INSTALL_DOCDIR}) - install(FILES ${PROJECT_BINARY_DIR}/libuv.pc + install(FILES ${PROJECT_BINARY_DIR}/libuv.pc ${PROJECT_BINARY_DIR}/libuv-static.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) install(TARGETS uv LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) install(TARGETS uv_a ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) diff --git a/libuv-static.pc.in b/libuv-static.pc.in new file mode 100644 index 00000000..ea625482 --- /dev/null +++ b/libuv-static.pc.in @@ -0,0 +1,12 @@ +prefix=@prefix@ +exec_prefix=${prefix} +libdir=@libdir@ +includedir=@includedir@ + +Name: libuv-static +Version: @PACKAGE_VERSION@ +Description: multi-platform support library with a focus on asynchronous I/O. +URL: http://libuv.org/ + +Libs: -L${libdir} -luv_a @LIBS@ +Cflags: -I${includedir}