[med-svn] [Git][med-team/pbbam][upstream] New upstream version 0.18.0+dfsg
Andreas Tille
gitlab at salsa.debian.org
Thu Sep 6 12:50:09 BST 2018
Andreas Tille pushed to branch upstream at Debian Med / pbbam
Commits:
e78087f6 by Andreas Tille at 2018-09-06T11:49:35Z
New upstream version 0.18.0+dfsg
- - - - -
9 changed files:
- + cmake/FindHTSlib.cmake
- + cmake/PbbamTool.cmake
- + cmake/pbbam-ccache.cmake
- + cmake/pbbam-compilerflags.cmake
- + cmake/pbbam-dependencies.cmake
- + cmake/pbbam-libtype.cmake
- − tools/Darwin/clang-format
- − tools/Linux/clang-format
- − tools/win32/clang-format.exe
Changes:
=====================================
cmake/FindHTSlib.cmake
=====================================
@@ -0,0 +1,11 @@
+# Find HTSlib
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(HTSlib REQUIRED htslib)
+
+# because CMake is trying to be extra clever,
+# it will not properly load libraries with
+# absolute paths in *_LIBRARIES
+set(HTSlib_LIBRARIES "${HTSlib_LDFLAGS}")
+
+message(STATUS " HTSlib include dirs: ${HTSlib_INCLUDE_DIRS}")
+message(STATUS " HTSlib libraries: ${HTSlib_LIBRARIES}")
=====================================
cmake/PbbamTool.cmake
=====================================
@@ -0,0 +1,23 @@
+include(CMakeParseArguments)
+
+function(create_pbbam_tool)
+
+ # parse args
+ set(oneValueArgs TARGET)
+ set(multiValueArgs SOURCES)
+ cmake_parse_arguments(create_pbbam_tool "" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
+
+ # create executable
+ include_directories(
+ ${ToolsCommonDir} # shared tool code
+ ${GeneratedDir} # generated version headers
+ ${PacBioBAM_INCLUDE_DIRS} # pbbam/htslib includes
+ )
+ add_executable(${create_pbbam_tool_TARGET} ${create_pbbam_tool_SOURCES})
+ set_target_properties(
+ ${create_pbbam_tool_TARGET} PROPERTIES
+ RUNTIME_OUTPUT_DIRECTORY ${PacBioBAM_BinDir}
+ )
+ target_link_libraries(${create_pbbam_tool_TARGET} pbbam)
+
+endfunction(create_pbbam_tool)
=====================================
cmake/pbbam-ccache.cmake
=====================================
@@ -0,0 +1,8 @@
+
+if(PacBioBAM_use_ccache)
+ find_program(CCACHE_FOUND ccache)
+ if(CCACHE_FOUND)
+ set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
+ set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
+ endif()
+endif()
=====================================
cmake/pbbam-compilerflags.cmake
=====================================
@@ -0,0 +1,44 @@
+
+include(CheckCXXCompilerFlag)
+
+# C++11 check & enabling
+if (CMAKE_VERSION VERSION_LESS "3.1")
+ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") # clang
+ else()
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") # gcc
+ endif()
+else() # 3.1+
+ set(CMAKE_CXX_STANDARD 14)
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
+endif()
+
+# shared CXX flags for src & tests
+if (MSVC)
+ set(PacBioBAM_CXX_FLAGS "/Wall")
+else()
+ set(PacBioBAM_CXX_FLAGS "-Wall")
+endif()
+
+# NOTE: -Wno-unused-local-typedefs used to quash clang warnings w/ Boost
+check_cxx_compiler_flag("-Wno-unused-local-typedefs" HAS_NO_UNUSED_LOCAL_TYPEDEFS)
+if(HAS_NO_UNUSED_LOCAL_TYPEDEFS)
+ set(PacBioBAM_CXX_FLAGS "${PacBioBAM_CXX_FLAGS} -Wno-unused-local-typedefs")
+endif()
+
+check_cxx_compiler_flag("-Wno-sign-compare" HAS_NO_SIGN_COMPARE)
+if(HAS_NO_SIGN_COMPARE)
+ set(PacBioBAM_CXX_FLAGS "${PacBioBAM_CXX_FLAGS} -Wno-sign-compare")
+endif()
+
+# Turn on windows-style filepath resolution.
+# We need to add this #define early (not just in the C# SWIG wrapper)
+if(WIN32)
+ add_definitions(-DPBBAM_WIN_FILEPATHS)
+endif()
+
+# For now, keep @rpath out of install names on OS X, as it causes SWIG
+# tests to fail.
+if(APPLE)
+ set(CMAKE_MACOSX_RPATH OFF)
+endif()
=====================================
cmake/pbbam-dependencies.cmake
=====================================
@@ -0,0 +1,32 @@
+
+# pthreads
+find_package(Threads REQUIRED)
+
+# boost
+if(NOT Boost_INCLUDE_DIRS)
+ find_package(Boost REQUIRED)
+endif()
+
+# Winsock for htslib on Windows
+if(WIN32)
+ set(SOCKET_LIBRARIES "ws2_32")
+endif()
+
+# zlib
+if (NOT ZLIB_INCLUDE_DIRS OR NOT ZLIB_LIBRARIES)
+ find_package(PkgConfig REQUIRED)
+ pkg_check_modules(ZLIB zlib)
+ set(ZLIB_LIBRARIES ${ZLIB_LDFLAGS})
+else()
+ set(ZLIB_LDFLAGS ${ZLIB_LIBRARIES})
+endif()
+
+# htslib
+if(NOT HTSLIB_INCLUDE_DIRS OR NOT HTSLIB_LIBRARIES)
+ find_package(HTSlib)
+ set(hts_INCLUDE_DIRS ${HTSlib_INCLUDE_DIRS})
+ set(hts_LIBRARIES ${HTSlib_LIBRARIES})
+else()
+ set(hts_INCLUDE_DIRS ${HTSLIB_INCLUDE_DIRS})
+ set(hts_LIBRARIES ${HTSLIB_LIBRARIES})
+endif()
=====================================
cmake/pbbam-libtype.cmake
=====================================
@@ -0,0 +1,21 @@
+
+# determine if we need a shared lib
+if(PacBioBAM_build_shared)
+ set(BUILD_SHARED_LIBS ON)
+ set(htslib_build_shared ON CACHE BOOL "force htslibConfig to export proper library name")
+ set(PB_LIB_MODE SHARED)
+ set(PB_LIB_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX})
+else()
+ set(BUILD_SHARED_LIBS OFF)
+ set(PB_LIB_MODE STATIC)
+ set(PB_LIB_SUFFIX ${CMAKE_STATIC_LIBRARY_SUFFIX})
+endif()
+
+if(WIN32)
+ # Limit the number of DLLs we will have to bundle
+ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libgcc -static-libstdc++")
+ set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libgcc -static-libstdc++")
+endif()
+
+
+
=====================================
tools/Darwin/clang-format deleted
=====================================
Binary files a/tools/Darwin/clang-format and /dev/null differ
=====================================
tools/Linux/clang-format deleted
=====================================
Binary files a/tools/Linux/clang-format and /dev/null differ
=====================================
tools/win32/clang-format.exe deleted
=====================================
Binary files a/tools/win32/clang-format.exe and /dev/null differ
View it on GitLab: https://salsa.debian.org/med-team/pbbam/commit/e78087f602ca3a1bec888a2307a2b9dcb8d9d05e
--
View it on GitLab: https://salsa.debian.org/med-team/pbbam/commit/e78087f602ca3a1bec888a2307a2b9dcb8d9d05e
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20180906/7c72e56c/attachment-0001.html>
More information about the debian-med-commit
mailing list