Andreas Tille pushed to branch master at Debian Med / libkff
Commits: be2f6ab2 by Andreas Tille at 2026-10-30T10:11:08+01:00 Build static and shared libraries - - - - - 0d4ae507 by Andreas Tille at 2026-10-30T10:12:46+01:00 Upload to unstable - - - - - ca5964a7 by Andreas Tille at 2026-10-30T10:14:10+01:00 Add upstream/metadata - - - - - 5 changed files: - debian/changelog - debian/patches/add-install-rules.patch - + debian/patches/build-static-and-shared-library.patch - debian/patches/series - + debian/upstream/metadata Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,9 @@ +libkff (0.0~git20250321.cf4d866-2) unstable; urgency=medium + + * Build static and shared libraries + + -- Andreas Tille <[email protected]> Fri, 30 Oct 2026 10:11:40 +0100 + libkff (0.0~git20250321.cf4d866-1) unstable; urgency=medium * Initial release (Closes: #1152023) ===================================== debian/patches/add-install-rules.patch ===================================== @@ -5,7 +5,8 @@ Description: Add install rules for the library and the generated header GNUInstallDirs for the destination directories. Author: Andreas Tille <[email protected]> Last-Update: 2026-10-25 ---- +Assisted-By: aim2balance.ai/a2b-code + diff --git a/CMakeLists.txt b/CMakeLists.txt index 50a9a3f..4a72737 100644 --- a/CMakeLists.txt ===================================== debian/patches/build-static-and-shared-library.patch ===================================== @@ -0,0 +1,37 @@ +Description: Build static and shared libraries + Upstream builds only a single library whose kind depends on BUILD_SHARED_LIBS. + d-shlibmove expects the static libkff.a next to the shared libkff.so, so build + both explicitly from the same sources. +Author: Andreas Tille <[email protected]> +Last-Update: 2026-10-30 +Assisted-By: aim2balance.ai/a2b-code + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -24,7 +24,9 @@ endif() + + add_subdirectory("benchmarks") + +-add_library(kff kff_io.cpp) ++add_library(kff SHARED kff_io.cpp) ++add_library(kff_static STATIC kff_io.cpp) ++set_target_properties(kff_static PROPERTIES OUTPUT_NAME kff) + set_target_properties(kff PROPERTIES + VERSION ${PROJECT_VERSION} + SOVERSION ${PROJECT_VERSION_MAJOR} +@@ -37,7 +39,14 @@ target_include_directories(kff + $<INSTALL_INTERFACE:include> + ) + +-install(TARGETS kff ++target_include_directories(kff_static ++ PUBLIC ++ $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}> ++ $<BUILD_INTERFACE:${CMAKE_BINARY_DIR}> ++ $<INSTALL_INTERFACE:include> ++) ++ ++install(TARGETS kff kff_static + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + ) ===================================== debian/patches/series ===================================== @@ -1 +1,2 @@ add-install-rules.patch +build-static-and-shared-library.patch ===================================== debian/upstream/metadata ===================================== @@ -0,0 +1,3 @@ +--- +Bug-Database: https://github.com/Kmer-File-Format/kff-cpp-api/issues +Repository-Browse: https://github.com/Kmer-File-Format/kff-cpp-api View it on GitLab: https://salsa.debian.org/med-team/libkff/-/compare/58a251e6ad0562401e86d01eb514826cf62cb681...ca5964a7d9872f6d58535eb451f6ce8140cd0656 -- View it on GitLab: https://salsa.debian.org/med-team/libkff/-/compare/58a251e6ad0562401e86d01eb514826cf62cb681...ca5964a7d9872f6d58535eb451f6ce8140cd0656 You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
