mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-31 05:03:22 +08:00
[poco] Remove useless depends, Add 7zip, drop POCO_MT.
This commit is contained in:
parent
aff26af2f4
commit
857f76b6b9
@ -1,4 +1,4 @@
|
|||||||
Source: poco
|
Source: poco
|
||||||
Version: 1.7.6
|
Version: 1.7.6
|
||||||
Build-Depends: openssl, libmariadb
|
Build-Depends:
|
||||||
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.
|
@ -1,10 +1,10 @@
|
|||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/poco-1.7.6-all)
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/poco-poco-1.7.6-release)
|
||||||
|
|
||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS "https://pocoproject.org/releases/poco-1.7.6/poco-1.7.6-all.zip"
|
URLS "https://github.com/pocoproject/poco/archive/poco-1.7.6-release.tar.gz"
|
||||||
FILENAME "poco-1.7.6-all.zip"
|
FILENAME "poco-poco-1.7.6-release.tar.gz"
|
||||||
SHA512 ed15c6ab69157d3caf3f5fcd861396ddbe3a98c1f3d513c2670e81601c176fb17549791836bd50014d9fb58aa3983e262312848f197e9c487af962cc27556df5
|
SHA512 a02b7ff66acf080942517b3b8644d6e5c7136c5edc6e58fd13083a74b97b5619253fc9db7863284a565226f95410ad4da1fa9738d14885f560aeb03c1f7c18aa
|
||||||
)
|
)
|
||||||
vcpkg_extract_source_archive(${ARCHIVE})
|
vcpkg_extract_source_archive(${ARCHIVE})
|
||||||
|
|
||||||
@ -16,18 +16,14 @@ vcpkg_apply_patches(
|
|||||||
|
|
||||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||||
set(POCO_STATIC ON)
|
set(POCO_STATIC ON)
|
||||||
set(POCO_MT ON)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-DPOCO_STATIC=${POCO_STATIC}
|
-DPOCO_STATIC=${POCO_STATIC}
|
||||||
-DPOCO_MT=${POCO_MT}
|
-DENABLE_SEVENZIP=ON
|
||||||
|
|
||||||
-DFORCE_OPENSSL=ON
|
|
||||||
-DENABLE_TESTS=OFF
|
-DENABLE_TESTS=OFF
|
||||||
-DENABLE_MSVC_MP=ON
|
|
||||||
-DPOCO_UNBUNDLED=OFF # OFF means: using internal copy of sqlite, libz, pcre, expat, ...
|
-DPOCO_UNBUNDLED=OFF # OFF means: using internal copy of sqlite, libz, pcre, expat, ...
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -41,22 +37,22 @@ if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|||||||
file(REMOVE_RECURSE
|
file(REMOVE_RECURSE
|
||||||
${CURRENT_PACKAGES_DIR}/bin
|
${CURRENT_PACKAGES_DIR}/bin
|
||||||
${CURRENT_PACKAGES_DIR}/debug/bin)
|
${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||||
|
else()
|
||||||
|
file(REMOVE
|
||||||
|
${CURRENT_PACKAGES_DIR}/bin/cpspc.pdb
|
||||||
|
${CURRENT_PACKAGES_DIR}/bin/f2cpsp.pdb
|
||||||
|
${CURRENT_PACKAGES_DIR}/debug/bin/cpspc.exe
|
||||||
|
${CURRENT_PACKAGES_DIR}/debug/bin/cpspc.pdb
|
||||||
|
${CURRENT_PACKAGES_DIR}/debug/bin/f2cpsp.exe
|
||||||
|
${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
|
|
||||||
${CURRENT_PACKAGES_DIR}/bin/cpspc.pdb
|
|
||||||
${CURRENT_PACKAGES_DIR}/bin/f2cpsp.pdb
|
|
||||||
${CURRENT_PACKAGES_DIR}/debug/bin/cpspc.exe
|
|
||||||
${CURRENT_PACKAGES_DIR}/debug/bin/cpspc.pdb
|
|
||||||
${CURRENT_PACKAGES_DIR}/debug/bin/f2cpsp.exe
|
|
||||||
${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)
|
|
||||||
|
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/cmake)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/cmake)
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/cmake)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/cmake)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user