Merge branch 'say-no-to-crt-dlls' of https://github.com/codicodi/vcpkg into codicodi-say-no-to-crt-dlls

This commit is contained in:
Robert Schumacher 2017-03-06 10:44:46 -08:00
commit 1b9b19e66c
4 changed files with 29 additions and 42 deletions

View File

@ -1,3 +1,3 @@
Source: openjpeg Source: openjpeg
Version: 2.1.2 Version: 2.1.2-1
Description: JPEG 2000 image library Description: JPEG 2000 image library

View File

@ -9,8 +9,10 @@ vcpkg_extract_source_archive(${ARCHIVE})
vcpkg_configure_cmake( vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS -DBUILD_CODEC:BOOL=OFF OPTIONS -DBUILD_CODEC:BOOL=OFF
-DOPENJPEG_INSTALL_PACKAGE_DIR=share/openjpeg -DOPENJPEG_INSTALL_PACKAGE_DIR=share/openjpeg
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=ON
) )
vcpkg_install_cmake() vcpkg_install_cmake()
@ -23,17 +25,6 @@ string(REPLACE "\${_IMPORT_PREFIX}" "\${_IMPORT_PREFIX}/debug" OPENJPEG_DEBUG_MO
file(WRITE ${CURRENT_PACKAGES_DIR}/share/openjpeg/OpenJPEGTargets-debug.cmake "${OPENJPEG_DEBUG_MODULE}") file(WRITE ${CURRENT_PACKAGES_DIR}/share/openjpeg/OpenJPEGTargets-debug.cmake "${OPENJPEG_DEBUG_MODULE}")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
# Cleanup bin directories in static builds
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
endif()
# Cleanup Visual C++ Redistributable runtime
file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/msvcp140.dll)
file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/vcruntime140.dll)
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/msvcp140.dll)
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/vcruntime140.dll)
# Handle copyright # Handle copyright
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/openjpeg) file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/openjpeg)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/openjpeg/LICENSE ${CURRENT_PACKAGES_DIR}/share/openjpeg/copyright) file(RENAME ${CURRENT_PACKAGES_DIR}/share/openjpeg/LICENSE ${CURRENT_PACKAGES_DIR}/share/openjpeg/copyright)

View File

@ -1,4 +1,4 @@
Source: poco Source: poco
Version: 1.7.6-3 Version: 1.7.6-4
Build-Depends: zlib, pcre, sqlite3, expat Build-Depends: zlib, pcre, sqlite3, expat
Description: Modern, powerful open source C++ class libraries for building network and internet-based applications that run on desktop, server, mobile and embedded systems. Description: Modern, powerful open source C++ class libraries for building network and internet-based applications that run on desktop, server, mobile and embedded systems.

View File

@ -24,11 +24,13 @@ endif()
vcpkg_configure_cmake( vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS OPTIONS
-DPOCO_STATIC=${POCO_STATIC} -DPOCO_STATIC=${POCO_STATIC}
-DENABLE_SEVENZIP=ON -DENABLE_SEVENZIP=ON
-DENABLE_TESTS=OFF -DENABLE_TESTS=OFF
-DPOCO_UNBUNDLED=ON # OFF means: using internal copy of sqlite, libz, pcre, expat, ... -DPOCO_UNBUNDLED=ON # OFF means: using internal copy of sqlite, libz, pcre, expat, ...
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=ON
) )
vcpkg_install_cmake() vcpkg_install_cmake()
@ -49,12 +51,6 @@ else()
${CURRENT_PACKAGES_DIR}/debug/bin/cpspc.pdb ${CURRENT_PACKAGES_DIR}/debug/bin/cpspc.pdb
${CURRENT_PACKAGES_DIR}/debug/bin/f2cpsp.exe ${CURRENT_PACKAGES_DIR}/debug/bin/f2cpsp.exe
${CURRENT_PACKAGES_DIR}/debug/bin/f2cpsp.pdb) ${CURRENT_PACKAGES_DIR}/debug/bin/f2cpsp.pdb)
file(REMOVE
${CURRENT_PACKAGES_DIR}/bin/vcruntime140.dll
${CURRENT_PACKAGES_DIR}/bin/msvcp140.dll
${CURRENT_PACKAGES_DIR}/debug/bin/vcruntime140.dll
${CURRENT_PACKAGES_DIR}/debug/bin/msvcp140.dll)
endif() endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)