Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Fix build
· 449d6045
Andreas Tille
authored
Jun 09, 2018
449d6045
DEP3
· 2db4688b
Andreas Tille
authored
Jun 09, 2018
2db4688b
Show whitespace changes
Inline
Side-by-side
debian/control
View file @
2db4688b
...
...
@@ -6,6 +6,7 @@ Priority: optional
Build-Depends: debhelper (>= 11~),
cmake,
d-shlibs,
rename,
libbioparser-dev
Standards-Version: 4.1.4
Vcs-Browser: https://salsa.debian.org/med-team/spoa
...
...
debian/patches/shared_and_static.patch
View file @
2db4688b
Author: Andreas Tille <tille@debian.org>
Last-Update: Fri, 08 Jun 2018 13:20:51 +0200
Description: Build shared and static lib
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,9 +16,15 @@
option(spoa_build_executable "Build spoa
...
...
@@ -18,7 +22,7 @@
src/alignment_engine.cpp
src/graph.cpp
src/simd_alignment_engine.cpp
@@ -28,
6
+34,1
0
@@
target_include_directories(spoa PUBLIC
@@ -28,
12
+34,1
7
@@
target_include_directories(spoa PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
...
...
@@ -29,3 +33,10 @@
set_target_properties(spoa
PROPERTIES
VERSION ${spoa_VERSION}
SOVERSION ${spoa_VERSION})
install(TARGETS spoa DESTINATION ${CMAKE_INSTALL_LIBDIR})
+install(TARGETS spoa_static DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/spoa DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
# configure and install pkg-config file
debian/rules
View file @
2db4688b
...
...
@@ -14,10 +14,11 @@ override_dh_auto_configure:
override_dh_install:
dh_install
file-rename 's/_static\.a/.a/' `find debian -name libspoa_static.a`
d-shlibmove --commit \
--multiarch \
--devunversioned \
--exclude-la \
--movedev debian/tmp/usr/include/* usr/include \
--movedev debian/tmp/usr/lib/*/
cmake
usr/lib/$(DEB_HOST_MULTIARCH) \
--movedev debian/tmp/usr/lib/*/
pkgconfig
usr/lib/$(DEB_HOST_MULTIARCH) \
debian/tmp/usr/lib/*/*.so