]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Split libsolvext into it's own pkg-config file 177/head
authorAlejandro del Castillo <alejandro.delcastillo@ni.com>
Thu, 26 Jan 2017 23:10:29 +0000 (17:10 -0600)
committerAlejandro del Castillo <alejandro.delcastillo@ni.com>
Thu, 9 Feb 2017 16:10:43 +0000 (10:10 -0600)
Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
CMakeLists.txt
libsolv.pc.in
libsolvext.pc.in [new file with mode: 0644]

index 12b9b3213dc99d13234ea2b049ae52b2680ad72c..838f9d0baa0b5704f9dd82f68d3ccec87375c738 100644 (file)
@@ -393,9 +393,11 @@ MACRO (SPECFILE)
 ENDMACRO (SPECFILE)
 
 MACRO (PCFILE)
-  MESSAGE (STATUS "Writing pkg-config file...")
+  MESSAGE (STATUS "Writing pkg-config files...")
   CONFIGURE_FILE (${CMAKE_SOURCE_DIR}/libsolv.pc.in ${CMAKE_BINARY_DIR}/libsolv.pc @ONLY)
   INSTALL( FILES ${CMAKE_BINARY_DIR}/libsolv.pc DESTINATION ${PKGCONFIG_INSTALL_DIR} )
+  CONFIGURE_FILE (${CMAKE_SOURCE_DIR}/libsolvext.pc.in ${CMAKE_BINARY_DIR}/libsolvext.pc @ONLY)
+  INSTALL( FILES ${CMAKE_BINARY_DIR}/libsolvext.pc DESTINATION ${PKGCONFIG_INSTALL_DIR} )
 ENDMACRO (PCFILE)
 
 SPECFILE ()
index c82dfc4e797b85e5eb589c4714d5e8b820efb37c..40a862301b563c39f402d89bddf32bc4e3bdcc28 100644 (file)
@@ -2,7 +2,7 @@ libdir=@LIB_INSTALL_DIR@
 includedir=@INCLUDE_INSTALL_DIR@
 
 Name: libsolv
-Description: Library for solving packages and reading repositories
+Description: Library for solving packages
 Version: @VERSION@
-Libs: -L${libdir} -lsolvext -lsolv
+Libs: -L${libdir} -lsolv
 Cflags: -I${includedir}
diff --git a/libsolvext.pc.in b/libsolvext.pc.in
new file mode 100644 (file)
index 0000000..d48b6fa
--- /dev/null
@@ -0,0 +1,9 @@
+libdir=@LIB_INSTALL_DIR@
+includedir=@INCLUDE_INSTALL_DIR@
+
+Name: libsolvext
+Description: Library for reading repositories
+Version: @VERSION@
+Requires: libsolv
+Libs: -L${libdir} -lsolvext
+Cflags: -I${includedir}