2020-05-07 06:26:16 +08:00
|
|
|
if (EXISTS "${CURRENT_INSTALLED_DIR}/share/opencv2")
|
|
|
|
message(FATAL_ERROR "OpenCV 2 is installed, please uninstall and try again:\n vcpkg remove opencv2")
|
|
|
|
endif()
|
|
|
|
|
2019-08-13 00:22:30 +08:00
|
|
|
if (EXISTS "${CURRENT_INSTALLED_DIR}/share/opencv3")
|
|
|
|
message(FATAL_ERROR "OpenCV 3 is installed, please uninstall and try again:\n vcpkg remove opencv3")
|
|
|
|
endif()
|
|
|
|
|
2022-04-06 02:50:48 +08:00
|
|
|
file(READ "${CMAKE_CURRENT_LIST_DIR}/vcpkg.json" _contents)
|
|
|
|
string(JSON OPENCV_VERSION GET "${_contents}" version)
|
|
|
|
|
2021-12-02 11:11:01 +08:00
|
|
|
set(USE_QT_VERSION "5")
|
2019-08-13 00:22:30 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO opencv/opencv
|
|
|
|
REF ${OPENCV_VERSION}
|
2022-02-24 03:57:13 +08:00
|
|
|
SHA512 4d1783fd78425cc43bb2153446dd634cedd366a49592bccc0c538a40aa161fcf67db8f1b6b68f1ce0b4a93504b3f06f65931709277afb1a1ee9fe963094bca02
|
2019-08-13 00:22:30 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
0001-disable-downloading.patch
|
|
|
|
0002-install-options.patch
|
|
|
|
0003-force-package-requirements.patch
|
2019-09-25 03:58:38 +08:00
|
|
|
0004-fix-policy-CMP0057.patch
|
2021-01-29 11:23:57 +08:00
|
|
|
0005-fix-eigen.patch
|
|
|
|
0006-fix-uwp.patch
|
|
|
|
0008-devendor-quirc.patch
|
2021-09-04 13:25:12 +08:00
|
|
|
0009-fix-protobuf.patch
|
2021-08-13 23:46:11 +08:00
|
|
|
0010-fix-uwp-tiff-imgcodecs.patch
|
2021-12-09 06:03:00 +08:00
|
|
|
0011-remove-python2.patch
|
2022-02-17 13:54:38 +08:00
|
|
|
0012-fix-zlib.patch
|
2022-02-24 03:57:13 +08:00
|
|
|
0013-fix-opengl.patch
|
|
|
|
0014-fix-gstreamer.patch
|
|
|
|
0015-fix-freetype.patch
|
2019-08-13 00:22:30 +08:00
|
|
|
)
|
|
|
|
|
2021-01-23 04:13:33 +08:00
|
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
|
|
|
set(TARGET_IS_AARCH64 1)
|
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
|
|
|
|
set(TARGET_IS_ARM 1)
|
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
|
|
|
set(TARGET_IS_X86_64 1)
|
|
|
|
else()
|
|
|
|
set(TARGET_IS_X86 1)
|
|
|
|
endif()
|
|
|
|
|
2020-07-28 08:43:23 +08:00
|
|
|
file(REMOVE "${SOURCE_PATH}/cmake/FindCUDNN.cmake")
|
|
|
|
|
2019-08-13 00:22:30 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" BUILD_WITH_STATIC_CRT)
|
|
|
|
|
|
|
|
set(ADE_DIR ${CURRENT_INSTALLED_DIR}/share/ade CACHE PATH "Path to existing ADE CMake Config file")
|
|
|
|
|
2019-08-14 11:13:55 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-06-22 04:21:02 +08:00
|
|
|
FEATURES
|
2021-12-02 11:11:01 +08:00
|
|
|
"ade" WITH_ADE
|
|
|
|
"contrib" WITH_CONTRIB
|
|
|
|
"cuda" WITH_CUBLAS
|
|
|
|
"cuda" WITH_CUDA
|
|
|
|
"cudnn" WITH_CUDNN
|
|
|
|
"eigen" WITH_EIGEN
|
|
|
|
"ffmpeg" WITH_FFMPEG
|
2022-02-24 03:57:13 +08:00
|
|
|
"freetype" WITH_FREETYPE
|
2021-12-02 11:11:01 +08:00
|
|
|
"gdcm" WITH_GDCM
|
|
|
|
"gstreamer" WITH_GSTREAMER
|
|
|
|
"halide" WITH_HALIDE
|
|
|
|
"jasper" WITH_JASPER
|
|
|
|
"jpeg" WITH_JPEG
|
|
|
|
"lapack" WITH_LAPACK
|
|
|
|
"nonfree" OPENCV_ENABLE_NONFREE
|
|
|
|
"openexr" WITH_OPENEXR
|
|
|
|
"opengl" WITH_OPENGL
|
|
|
|
"png" WITH_PNG
|
|
|
|
"quirc" WITH_QUIRC
|
|
|
|
"sfm" BUILD_opencv_sfm
|
|
|
|
"tiff" WITH_TIFF
|
|
|
|
"vtk" WITH_VTK
|
|
|
|
"webp" WITH_WEBP
|
|
|
|
"world" BUILD_opencv_world
|
2019-08-13 00:22:30 +08:00
|
|
|
)
|
|
|
|
|
2021-12-09 06:03:00 +08:00
|
|
|
# Cannot use vcpkg_check_features() for "dnn", "gtk", ipp", "openmp", "ovis", "python", "qt, "tbb"
|
2020-07-28 08:43:23 +08:00
|
|
|
set(BUILD_opencv_dnn OFF)
|
|
|
|
if("dnn" IN_LIST FEATURES)
|
|
|
|
if(NOT VCPKG_TARGET_IS_ANDROID)
|
|
|
|
set(BUILD_opencv_dnn ON)
|
|
|
|
else()
|
|
|
|
message(WARNING "The dnn module cannot be enabled on Android")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2021-12-02 11:11:01 +08:00
|
|
|
set(WITH_GTK OFF)
|
|
|
|
if("gtk" IN_LIST FEATURES)
|
|
|
|
if(VCPKG_TARGET_IS_LINUX)
|
|
|
|
set(WITH_GTK ON)
|
|
|
|
else()
|
|
|
|
message(WARNING "The gtk module cannot be enabled outside Linux")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(WITH_QT OFF)
|
|
|
|
if("qt" IN_LIST FEATURES)
|
|
|
|
set(WITH_QT ${USE_QT_VERSION})
|
|
|
|
endif()
|
|
|
|
|
2021-01-17 11:26:38 +08:00
|
|
|
set(BUILD_opencv_gapi ON)
|
|
|
|
if(VCPKG_TARGET_IS_UWP)
|
|
|
|
set(BUILD_opencv_gapi OFF)
|
|
|
|
message(WARNING "The gapi module cannot be enabled on UWP platform")
|
|
|
|
endif()
|
|
|
|
|
2019-08-14 11:13:55 +08:00
|
|
|
set(WITH_IPP OFF)
|
|
|
|
if("ipp" IN_LIST FEATURES)
|
|
|
|
set(WITH_IPP ON)
|
|
|
|
endif()
|
|
|
|
|
2020-07-28 08:43:23 +08:00
|
|
|
set(WITH_OPENMP OFF)
|
|
|
|
if("openmp" IN_LIST FEATURES)
|
|
|
|
if(NOT VCPKG_TARGET_IS_OSX)
|
|
|
|
set(WITH_OPENMP ON)
|
|
|
|
else()
|
|
|
|
message(WARNING "The OpenMP feature is not supported on macOS")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2019-08-14 11:13:55 +08:00
|
|
|
set(BUILD_opencv_ovis OFF)
|
|
|
|
if("ovis" IN_LIST FEATURES)
|
|
|
|
set(BUILD_opencv_ovis ON)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(WITH_TBB OFF)
|
|
|
|
if("tbb" IN_LIST FEATURES)
|
|
|
|
set(WITH_TBB ON)
|
|
|
|
endif()
|
|
|
|
|
2021-12-09 06:03:00 +08:00
|
|
|
set(WITH_PYTHON OFF)
|
2022-02-24 03:57:13 +08:00
|
|
|
set(BUILD_opencv_python3 OFF)
|
2021-12-09 06:03:00 +08:00
|
|
|
if("python" IN_LIST FEATURES)
|
2022-02-24 03:57:13 +08:00
|
|
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL static AND VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
message(WARNING "The python module is currently unsupported on Windows when building static OpenCV libraries")
|
|
|
|
else()
|
|
|
|
vcpkg_find_acquire_program(PYTHON3)
|
|
|
|
get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
|
|
|
|
vcpkg_add_to_path("${PYTHON3_DIR}")
|
|
|
|
vcpkg_add_to_path("${PYTHON3_DIR}/Scripts")
|
|
|
|
set(ENV{PYTHON} "${PYTHON3}")
|
|
|
|
|
|
|
|
function(vcpkg_get_python_package PYTHON_DIR )
|
2021-12-09 06:03:00 +08:00
|
|
|
cmake_parse_arguments(PARSE_ARGV 0 _vgpp "" "PYTHON_EXECUTABLE" "PACKAGES")
|
|
|
|
|
|
|
|
if(NOT _vgpp_PYTHON_EXECUTABLE)
|
|
|
|
message(FATAL_ERROR "${CMAKE_CURRENT_FUNCTION} requires parameter PYTHON_EXECUTABLE!")
|
|
|
|
endif()
|
|
|
|
if(NOT _vgpp_PACKAGES)
|
|
|
|
message(FATAL_ERROR "${CMAKE_CURRENT_FUNCTION} requires parameter PACKAGES!")
|
|
|
|
endif()
|
|
|
|
if(NOT _vgpp_PYTHON_DIR)
|
|
|
|
get_filename_component(_vgpp_PYTHON_DIR "${_vgpp_PYTHON_EXECUTABLE}" DIRECTORY)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (WIN32)
|
|
|
|
set(PYTHON_OPTION "")
|
|
|
|
else()
|
|
|
|
set(PYTHON_OPTION "--user")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT EXISTS "${_vgpp_PYTHON_DIR}/easy_install${VCPKG_HOST_EXECUTABLE_SUFFIX}")
|
2022-02-24 03:57:13 +08:00
|
|
|
if(NOT EXISTS "${_vgpp_PYTHON_DIR}/Scripts/pip${VCPKG_HOST_EXECUTABLE_SUFFIX}")
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH PYFILE_PATH
|
|
|
|
REPO pypa/get-pip
|
|
|
|
REF 309a56c5fd94bd1134053a541cb4657a4e47e09d #2019-08-25
|
|
|
|
SHA512 bb4b0745998a3205cd0f0963c04fb45f4614ba3b6fcbe97efe8f8614192f244b7ae62705483a5305943d6c8fedeca53b2e9905aed918d2c6106f8a9680184c7a
|
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
execute_process(COMMAND "${_vgpp_PYTHON_EXECUTABLE}" "${PYFILE_PATH}/get-pip.py" ${PYTHON_OPTION})
|
|
|
|
endif()
|
|
|
|
foreach(_package IN LISTS _vgpp_PACKAGES)
|
|
|
|
execute_process(COMMAND "${_vgpp_PYTHON_DIR}/Scripts/pip${VCPKG_HOST_EXECUTABLE_SUFFIX}" install ${_package} ${PYTHON_OPTION})
|
|
|
|
endforeach()
|
2021-12-09 06:03:00 +08:00
|
|
|
else()
|
2022-02-24 03:57:13 +08:00
|
|
|
foreach(_package IN LISTS _vgpp_PACKAGES)
|
|
|
|
execute_process(COMMAND "${_vgpp_PYTHON_DIR}/easy_install${VCPKG_HOST_EXECUTABLE_SUFFIX}" ${_package})
|
|
|
|
endforeach()
|
2021-12-09 06:03:00 +08:00
|
|
|
endif()
|
2022-02-24 03:57:13 +08:00
|
|
|
endfunction()
|
|
|
|
vcpkg_get_python_package(PYTHON_EXECUTABLE "${PYTHON3}" PACKAGES numpy)
|
|
|
|
set(BUILD_opencv_python3 ON)
|
|
|
|
set(WITH_PYTHON ON)
|
|
|
|
endif()
|
2021-12-09 06:03:00 +08:00
|
|
|
endif()
|
|
|
|
|
2019-09-25 03:58:38 +08:00
|
|
|
if("dnn" IN_LIST FEATURES)
|
|
|
|
vcpkg_download_distfile(TINYDNN_ARCHIVE
|
|
|
|
URLS "https://github.com/tiny-dnn/tiny-dnn/archive/v1.0.0a3.tar.gz"
|
|
|
|
FILENAME "opencv-cache/tiny_dnn/adb1c512e09ca2c7a6faef36f9c53e59-v1.0.0a3.tar.gz"
|
|
|
|
SHA512 5f2c1a161771efa67e85b1fea395953b7744e29f61187ac5a6c54c912fb195b3aef9a5827135c3668bd0eeea5ae04a33cc433e1f6683e2b7955010a2632d168b
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2019-08-14 11:13:55 +08:00
|
|
|
if("cuda" IN_LIST FEATURES)
|
2019-08-13 00:22:30 +08:00
|
|
|
vcpkg_download_distfile(OCV_DOWNLOAD
|
2021-08-14 04:57:28 +08:00
|
|
|
URLS "https://github.com/NVIDIA/NVIDIAOpticalFlowSDK/archive/edb50da3cf849840d680249aa6dbef248ebce2ca.zip"
|
|
|
|
FILENAME "opencv-cache/nvidia_optical_flow/a73cd48b18dcc0cc8933b30796074191-edb50da3cf849840d680249aa6dbef248ebce2ca.zip"
|
|
|
|
SHA512 12d655ac9fcfc6df0186daa62f7185dadd489f0eeea25567d78c2b47a9840dcce2bd03a3e9b3b42f125dbaf3150f52590ea7597dc1dc8acee852dc0aed56651e
|
2019-08-13 00:22:30 +08:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# Build image quality module when building with 'contrib' feature and not UWP.
|
|
|
|
set(BUILD_opencv_quality OFF)
|
2019-08-14 11:13:55 +08:00
|
|
|
if("contrib" IN_LIST FEATURES)
|
2019-08-13 00:22:30 +08:00
|
|
|
if (VCPKG_TARGET_IS_UWP)
|
|
|
|
set(BUILD_opencv_quality OFF)
|
|
|
|
message(WARNING "The image quality module (quality) does not build for UWP, the module has been disabled.")
|
|
|
|
# The hdf module is silently disabled by OpenCVs buildsystem if HDF5 is not detected.
|
|
|
|
message(WARNING "The hierarchical data format module (hdf) depends on HDF5 which doesn't support UWP, the module has been disabled.")
|
|
|
|
else()
|
|
|
|
set(BUILD_opencv_quality CMAKE_DEPENDS_IN_PROJECT_ONLY)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH CONTRIB_SOURCE_PATH
|
|
|
|
REPO opencv/opencv_contrib
|
|
|
|
REF ${OPENCV_VERSION}
|
2022-02-24 03:57:13 +08:00
|
|
|
SHA512 8469de524e8e6f4c50a74b8cbec5e4cfc48a63a6dfc787609696099eca40dc02b9dc7a347a014d4416fd4efd66955d3af5f4847f44612312a8362f453e6c2e35
|
2019-08-13 00:22:30 +08:00
|
|
|
HEAD_REF master
|
2020-07-28 08:43:23 +08:00
|
|
|
PATCHES
|
2021-01-29 11:23:57 +08:00
|
|
|
0007-fix-hdf5.patch
|
2022-02-24 03:57:13 +08:00
|
|
|
0016-fix-freetype-contrib.patch
|
2019-08-13 00:22:30 +08:00
|
|
|
)
|
2019-09-25 03:58:38 +08:00
|
|
|
set(BUILD_WITH_CONTRIB_FLAG "-DOPENCV_EXTRA_MODULES_PATH=${CONTRIB_SOURCE_PATH}/modules")
|
|
|
|
|
2021-06-22 04:21:02 +08:00
|
|
|
vcpkg_download_distfile(OCV_DOWNLOAD
|
|
|
|
URLS "https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/detect.caffemodel"
|
|
|
|
FILENAME "opencv-cache/wechat_qrcode/238e2b2d6f3c18d6c3a30de0c31e23cf-detect.caffemodel"
|
|
|
|
SHA512 58d62faf8679d3f568a26a1d9f7c2e88060426a440315ca8bce7b3b5a8efa34be670afd0abfd0dd5d89f89a042a2408ea602f937080abc6910c2e497b7f5a4b8
|
|
|
|
)
|
|
|
|
vcpkg_download_distfile(OCV_DOWNLOAD
|
|
|
|
URLS "https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/sr.caffemodel"
|
|
|
|
FILENAME "opencv-cache/wechat_qrcode/cbfcd60361a73beb8c583eea7e8e6664-sr.caffemodel"
|
|
|
|
SHA512 917c6f6b84a898b8c8c85c79359e48a779c8a600de563dac2e1c5d013401e9ac9dbcd435013a4ed7a69fc936839fb189aaa3038c127d04ceb6fd3b8fd9dd67bd
|
|
|
|
)
|
|
|
|
vcpkg_download_distfile(OCV_DOWNLOAD
|
|
|
|
URLS "https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/detect.prototxt"
|
|
|
|
FILENAME "opencv-cache/wechat_qrcode/6fb4976b32695f9f5c6305c19f12537d-detect.prototxt"
|
|
|
|
SHA512 2239d31a597049f358f09dbb4c0a7af0b384d9b67cfa3224f8c7e44329647cf19ee7929ac06199cca23bbbf431de0481b74ab51eace6aa20bb2e2fd19b536e49
|
|
|
|
)
|
|
|
|
vcpkg_download_distfile(OCV_DOWNLOAD
|
|
|
|
URLS "https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/sr.prototxt"
|
|
|
|
FILENAME "opencv-cache/wechat_qrcode/69db99927a70df953b471daaba03fbef-sr.prototxt"
|
|
|
|
SHA512 6b715ec45c3fd081e7e113e351edcef0f3d32a75f8b5a9ca2273cb5da9a1116a1b78cba45582a9acf67a7ab76dc4fcdf123f7b3a0d3de2f5c39b26ef450058b7
|
|
|
|
)
|
2019-08-13 00:22:30 +08:00
|
|
|
vcpkg_download_distfile(OCV_DOWNLOAD
|
|
|
|
URLS "https://raw.githubusercontent.com/opencv/opencv_3rdparty/34e4206aef44d50e6bbcd0ab06354b52e7466d26/boostdesc_bgm.i"
|
|
|
|
FILENAME "opencv-cache/xfeatures2d/boostdesc/0ea90e7a8f3f7876d450e4149c97c74f-boostdesc_bgm.i"
|
|
|
|
SHA512 5c8702a60314fac4ebb6dafb62a603948ec034058d1a582fcb89a063b51511802c02e192eadfc0b233b1f711f4c74cabab6d9ebe8a50c3554ea0ccdbef87dc5c
|
|
|
|
)
|
|
|
|
vcpkg_download_distfile(OCV_DOWNLOAD
|
|
|
|
URLS "https://raw.githubusercontent.com/opencv/opencv_3rdparty/34e4206aef44d50e6bbcd0ab06354b52e7466d26/boostdesc_bgm_bi.i"
|
|
|
|
FILENAME "opencv-cache/xfeatures2d/boostdesc/232c966b13651bd0e46a1497b0852191-boostdesc_bgm_bi.i"
|
|
|
|
SHA512 b28ba2b615e0755ff0f6733b567682800fb9e7d522250aa498075cc1b8927f4177cacdcb0cfdf712539a29c4773232dc714931b6d292292b091b5cf170b203a6
|
|
|
|
)
|
|
|
|
vcpkg_download_distfile(OCV_DOWNLOAD
|
|
|
|
URLS "https://raw.githubusercontent.com/opencv/opencv_3rdparty/34e4206aef44d50e6bbcd0ab06354b52e7466d26/boostdesc_bgm_hd.i"
|
|
|
|
FILENAME "opencv-cache/xfeatures2d/boostdesc/324426a24fa56ad9c5b8e3e0b3e5303e-boostdesc_bgm_hd.i"
|
|
|
|
SHA512 c214045c3730a1d9dfc594f70895edf82d2fd3058a3928908627014371e02460d052cbaedf41bb96cf76460c0a8b4b01b7b0ac7d269ec5d3f17f2a46c9f0091b
|
|
|
|
)
|
|
|
|
vcpkg_download_distfile(OCV_DOWNLOAD
|
|
|
|
URLS "https://raw.githubusercontent.com/opencv/opencv_3rdparty/34e4206aef44d50e6bbcd0ab06354b52e7466d26/boostdesc_binboost_064.i"
|
|
|
|
FILENAME "opencv-cache/xfeatures2d/boostdesc/202e1b3e9fec871b04da31f7f016679f-boostdesc_binboost_064.i"
|
|
|
|
SHA512 f32240a7b975233d2bbad02fdb74c6e29ed71ed6f0c08172ca33eb1e69a7a7f6d6964adf41422213a0452121a9c4bb2effe3d7b9d6743c9bf58d4bc8c9b1db36
|
|
|
|
)
|
|
|
|
vcpkg_download_distfile(OCV_DOWNLOAD
|
|
|
|
URLS "https://raw.githubusercontent.com/opencv/opencv_3rdparty/34e4206aef44d50e6bbcd0ab06354b52e7466d26/boostdesc_binboost_128.i"
|
|
|
|
FILENAME "opencv-cache/xfeatures2d/boostdesc/98ea99d399965c03d555cef3ea502a0b-boostdesc_binboost_128.i"
|
|
|
|
SHA512 f58e2bebfaa690d324691a6c2067d9a1e5267037ea0f2b397966289253b9efd27d8238aff6206e95262086e1fcddf01ae1a1c49f066a8bbac3aa7908214b9a8f
|
|
|
|
)
|
|
|
|
vcpkg_download_distfile(OCV_DOWNLOAD
|
|
|
|
URLS "https://raw.githubusercontent.com/opencv/opencv_3rdparty/34e4206aef44d50e6bbcd0ab06354b52e7466d26/boostdesc_binboost_256.i"
|
|
|
|
FILENAME "opencv-cache/xfeatures2d/boostdesc/e6dcfa9f647779eb1ce446a8d759b6ea-boostdesc_binboost_256.i"
|
|
|
|
SHA512 351ee07b9714a379c311f293d96e99f001c894393c911a421b4c536345d43c02ba2d867e9f657eac104841563045ab8c8edab878e5ffeb1e1a7494375ef58987
|
|
|
|
)
|
|
|
|
vcpkg_download_distfile(OCV_DOWNLOAD
|
|
|
|
URLS "https://raw.githubusercontent.com/opencv/opencv_3rdparty/34e4206aef44d50e6bbcd0ab06354b52e7466d26/boostdesc_lbgm.i"
|
|
|
|
FILENAME "opencv-cache/xfeatures2d/boostdesc/0ae0675534aa318d9668f2a179c2a052-boostdesc_lbgm.i"
|
|
|
|
SHA512 7fa12e2207ff154acf2433bbb4f3f47aa71d1fa8789493b688d635d20586b7ead30ee8dcd3b3753992ebbe98062cbde44d02683db1c563d52e35aefd7912a4f2
|
|
|
|
)
|
|
|
|
vcpkg_download_distfile(OCV_DOWNLOAD
|
|
|
|
URLS "https://raw.githubusercontent.com/opencv/opencv_3rdparty/fccf7cd6a4b12079f73bbfb21745f9babcd4eb1d/vgg_generated_48.i"
|
|
|
|
FILENAME "opencv-cache/xfeatures2d/vgg/e8d0dcd54d1bcfdc29203d011a797179-vgg_generated_48.i"
|
|
|
|
SHA512 2403e9119738261a05a3116ca7e5c9e11da452c422f8670cd96ad2cb5bf970f76172e23b9913a3172adf06f2b31bee956f605b66dbccf3d706c4334aff713774
|
|
|
|
)
|
|
|
|
vcpkg_download_distfile(OCV_DOWNLOAD
|
|
|
|
URLS "https://raw.githubusercontent.com/opencv/opencv_3rdparty/fccf7cd6a4b12079f73bbfb21745f9babcd4eb1d/vgg_generated_64.i"
|
|
|
|
FILENAME "opencv-cache/xfeatures2d/vgg/7126a5d9a8884ebca5aea5d63d677225-vgg_generated_64.i"
|
|
|
|
SHA512 2c954223677905f489b01988389ac80a8caa33bdb57adb3cb9409075012b5e2f472f14966d8be75d75c90c9330f66d59c69539dc6b5a5e265a4d98ff5041f0ea
|
|
|
|
)
|
|
|
|
vcpkg_download_distfile(OCV_DOWNLOAD
|
|
|
|
URLS "https://raw.githubusercontent.com/opencv/opencv_3rdparty/fccf7cd6a4b12079f73bbfb21745f9babcd4eb1d/vgg_generated_80.i"
|
|
|
|
FILENAME "opencv-cache/xfeatures2d/vgg/7cd47228edec52b6d82f46511af325c5-vgg_generated_80.i"
|
|
|
|
SHA512 9931ad1d1bd6d11951ca5357ab0a524f6ff9b33f936ceeafebc0dafb379ec7e2105e467443e9f424f60a0f2f445bdff821ed9e42330abed883227183ebad4a9e
|
|
|
|
)
|
|
|
|
vcpkg_download_distfile(OCV_DOWNLOAD
|
|
|
|
URLS "https://raw.githubusercontent.com/opencv/opencv_3rdparty/fccf7cd6a4b12079f73bbfb21745f9babcd4eb1d/vgg_generated_120.i"
|
|
|
|
FILENAME "opencv-cache/xfeatures2d/vgg/151805e03568c9f490a5e3a872777b75-vgg_generated_120.i"
|
|
|
|
SHA512 ad7c1d2b159ab5790c898815663bb90549f1cf7ade3c82d939d381608b26d26c5b2af01eb1ba21f4d114ced74586ab3fc83f14e2d8cfe4e6faac538aa0e7e255
|
|
|
|
)
|
|
|
|
vcpkg_download_distfile(OCV_DOWNLOAD
|
|
|
|
URLS "https://raw.githubusercontent.com/opencv/opencv_3rdparty/8afa57abc8229d611c4937165d20e2a2d9fc5a12/face_landmark_model.dat"
|
|
|
|
FILENAME "opencv-cache/data/7505c44ca4eb54b4ab1e4777cb96ac05-face_landmark_model.dat"
|
|
|
|
SHA512 c16e60a6c4bb4de3ab39b876ae3c3f320ea56f69c93e9303bd2dff8760841dcd71be4161fff8bc71e8fe4fe8747fa8465d49d6bd8f5ebcdaea161f4bc2da7c93
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(WITH_IPP)
|
|
|
|
if(VCPKG_TARGET_IS_OSX)
|
|
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
|
|
|
vcpkg_download_distfile(OCV_DOWNLOAD
|
2020-07-28 08:43:23 +08:00
|
|
|
URLS "https://raw.githubusercontent.com/opencv/opencv_3rdparty/a56b6ac6f030c312b2dce17430eef13aed9af274/ippicv/ippicv_2020_mac_intel64_20191018_general.tgz"
|
|
|
|
FILENAME "opencv-cache/ippicv/1c3d675c2a2395d094d523024896e01b-ippicv_2020_mac_intel64_20191018_general.tgz"
|
|
|
|
SHA512 454dfaaa245e3a3b2f1ffb1aa8e27e280b03685009d66e147482b14e5796fdf2d332cac0f9b0822caedd5760fda4ee0ce2961889597456bbc18202f10bf727cd
|
2019-08-13 00:22:30 +08:00
|
|
|
)
|
|
|
|
else()
|
|
|
|
message(WARNING "This target architecture is not supported IPPICV")
|
|
|
|
set(WITH_IPP OFF)
|
|
|
|
endif()
|
|
|
|
elseif(VCPKG_TARGET_IS_LINUX)
|
|
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
|
|
|
vcpkg_download_distfile(OCV_DOWNLOAD
|
2020-07-28 08:43:23 +08:00
|
|
|
URLS "https://raw.githubusercontent.com/opencv/opencv_3rdparty/a56b6ac6f030c312b2dce17430eef13aed9af274/ippicv/ippicv_2020_lnx_intel64_20191018_general.tgz"
|
|
|
|
FILENAME "opencv-cache/ippicv/7421de0095c7a39162ae13a6098782f9-ippicv_2020_lnx_intel64_20191018_general.tgz"
|
|
|
|
SHA512 de6d80695cd6deef359376476edc4ff85fdddcf94972b936e0017f8a48aaa5d18f55c4253ae37deb83bff2f71410f68408063c88b5f3bf4df3c416aa93ceca87
|
2019-08-13 00:22:30 +08:00
|
|
|
)
|
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
|
|
|
vcpkg_download_distfile(OCV_DOWNLOAD
|
2020-07-28 08:43:23 +08:00
|
|
|
URLS "https://raw.githubusercontent.com/opencv/opencv_3rdparty/a56b6ac6f030c312b2dce17430eef13aed9af274/ippicv/ippicv_2020_lnx_ia32_20191018_general.tgz"
|
|
|
|
FILENAME "opencv-cache/ippicv/ad189a940fb60eb71f291321322fe3e8-ippicv_2020_lnx_ia32_20191018_general.tgz"
|
|
|
|
SHA512 5ca9dafc3a634e2a5f83f6a498611c990ef16d54358e9b44574b01694e9d64b118d46d6e2011506e40d37e5a9865f576f790e37ff96b7c8b503507633631a296
|
2019-08-13 00:22:30 +08:00
|
|
|
)
|
|
|
|
else()
|
|
|
|
message(WARNING "This target architecture is not supported IPPICV")
|
|
|
|
set(WITH_IPP OFF)
|
|
|
|
endif()
|
|
|
|
elseif(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
|
|
|
vcpkg_download_distfile(OCV_DOWNLOAD
|
2020-07-28 08:43:23 +08:00
|
|
|
URLS "https://raw.githubusercontent.com/opencv/opencv_3rdparty/a56b6ac6f030c312b2dce17430eef13aed9af274/ippicv/ippicv_2020_win_intel64_20191018_general.zip"
|
|
|
|
FILENAME "opencv-cache/ippicv/879741a7946b814455eee6c6ffde2984-ippicv_2020_win_intel64_20191018_general.zip"
|
|
|
|
SHA512 50c4af4b7fe2161d652264230389dad2330e8c95b734d04fb7565bffdab855c06d43085e480da554c56b04f8538087d49503538d5943221ee2a772ee7be4c93c
|
2019-08-13 00:22:30 +08:00
|
|
|
)
|
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
|
|
|
vcpkg_download_distfile(OCV_DOWNLOAD
|
2020-07-28 08:43:23 +08:00
|
|
|
URLS "https://raw.githubusercontent.com/opencv/opencv_3rdparty/a56b6ac6f030c312b2dce17430eef13aed9af274/ippicv/ippicv_2020_win_ia32_20191018_general.zip"
|
|
|
|
FILENAME "opencv-cache/ippicv/cd39bdf0c2e1cac9a61101dad7a2413e-ippicv_2020_win_ia32_20191018_general.zip"
|
|
|
|
SHA512 058d00775d9f16955c7a557d554b8c2976ab9dbad4ba3fdb9823c0f768809edbd835e4397f01dc090a9bc80d81de834375e7006614d2a898f42e8004de0e04bf
|
2019-08-13 00:22:30 +08:00
|
|
|
)
|
|
|
|
else()
|
|
|
|
message(WARNING "This target architecture is not supported IPPICV")
|
|
|
|
set(WITH_IPP OFF)
|
|
|
|
endif()
|
|
|
|
else()
|
|
|
|
message(WARNING "This target architecture is not supported IPPICV")
|
|
|
|
set(WITH_IPP OFF)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(WITH_MSMF ON)
|
|
|
|
if(NOT VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP)
|
|
|
|
set(WITH_MSMF OFF)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
|
|
if (WITH_TBB)
|
|
|
|
message(WARNING "TBB is currently unsupported in this build configuration, turning it off")
|
|
|
|
set(WITH_TBB OFF)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (VCPKG_TARGET_IS_WINDOWS AND BUILD_opencv_ovis)
|
|
|
|
message(WARNING "OVIS is currently unsupported in this build configuration, turning it off")
|
|
|
|
set(BUILD_opencv_ovis OFF)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2019-09-25 03:58:38 +08:00
|
|
|
if("ffmpeg" IN_LIST FEATURES)
|
|
|
|
if(VCPKG_TARGET_IS_UWP)
|
|
|
|
set(VCPKG_C_FLAGS "/sdl- ${VCPKG_C_FLAGS}")
|
|
|
|
set(VCPKG_CXX_FLAGS "/sdl- ${VCPKG_CXX_FLAGS}")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2021-12-21 00:21:15 +08:00
|
|
|
if("halide" IN_LIST FEATURES)
|
|
|
|
list(APPEND ADDITIONAL_BUILD_FLAGS
|
|
|
|
# Halide 13 requires C++17
|
|
|
|
"-DCMAKE_CXX_STANDARD=17"
|
|
|
|
"-DCMAKE_CXX_STANDARD_REQUIRED=ON"
|
|
|
|
"-DCMAKE_DISABLE_FIND_PACKAGE_Halide=ON"
|
|
|
|
"-DHALIDE_ROOT_DIR=${CURRENT_INSTALLED_DIR}"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2019-09-25 03:58:38 +08:00
|
|
|
if("qt" IN_LIST FEATURES)
|
|
|
|
list(APPEND ADDITIONAL_BUILD_FLAGS "-DCMAKE_AUTOMOC=ON")
|
|
|
|
endif()
|
|
|
|
|
2021-08-13 23:46:11 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-08-13 00:22:30 +08:00
|
|
|
OPTIONS
|
2021-01-23 04:13:33 +08:00
|
|
|
###### opencv cpu recognition is broken, always using host and not target: here we bypass that
|
|
|
|
-DOPENCV_SKIP_SYSTEM_PROCESSOR_DETECTION=TRUE
|
|
|
|
-DAARCH64=${TARGET_IS_AARCH64}
|
|
|
|
-DX86_64=${TARGET_IS_X86_64}
|
|
|
|
-DX86=${TARGET_IS_X86}
|
|
|
|
-DARM=${TARGET_IS_ARM}
|
2019-08-13 00:22:30 +08:00
|
|
|
###### ocv_options
|
|
|
|
-DOpenCV_INSTALL_BINARIES_PREFIX=
|
2020-07-28 08:43:23 +08:00
|
|
|
-DOPENCV_BIN_INSTALL_PATH=bin
|
|
|
|
-DOPENCV_INCLUDE_INSTALL_PATH=include
|
2019-08-13 00:22:30 +08:00
|
|
|
-DOPENCV_LIB_INSTALL_PATH=lib
|
|
|
|
-DOPENCV_3P_LIB_INSTALL_PATH=lib
|
|
|
|
-DOPENCV_CONFIG_INSTALL_PATH=share/opencv
|
2020-07-28 08:43:23 +08:00
|
|
|
-DINSTALL_TO_MANGLED_PATHS=OFF
|
2019-08-13 00:22:30 +08:00
|
|
|
-DOPENCV_FFMPEG_USE_FIND_PACKAGE=FFMPEG
|
2020-12-12 06:16:29 +08:00
|
|
|
-DOPENCV_FFMPEG_SKIP_BUILD_CHECK=TRUE
|
2019-08-13 00:22:30 +08:00
|
|
|
-DCMAKE_DEBUG_POSTFIX=d
|
2020-07-28 08:43:23 +08:00
|
|
|
-DOPENCV_DLLVERSION=
|
|
|
|
-DOPENCV_DEBUG_POSTFIX=d
|
|
|
|
-DOPENCV_GENERATE_SETUPVARS=OFF
|
2019-09-25 03:58:38 +08:00
|
|
|
# Do not build docs/examples
|
|
|
|
-DBUILD_DOCS=OFF
|
|
|
|
-DBUILD_EXAMPLES=OFF
|
2019-08-13 00:22:30 +08:00
|
|
|
-Dade_DIR=${ADE_DIR}
|
|
|
|
###### Disable build 3rd party libs
|
|
|
|
-DBUILD_JASPER=OFF
|
|
|
|
-DBUILD_JPEG=OFF
|
|
|
|
-DBUILD_OPENEXR=OFF
|
|
|
|
-DBUILD_PNG=OFF
|
|
|
|
-DBUILD_TIFF=OFF
|
|
|
|
-DBUILD_WEBP=OFF
|
|
|
|
-DBUILD_ZLIB=OFF
|
|
|
|
-DBUILD_TBB=OFF
|
|
|
|
-DBUILD_IPP_IW=OFF
|
|
|
|
-DBUILD_ITT=OFF
|
|
|
|
###### Disable build 3rd party components
|
|
|
|
-DBUILD_PROTOBUF=OFF
|
|
|
|
###### OpenCV Build components
|
|
|
|
-DBUILD_opencv_apps=OFF
|
2019-09-25 03:58:38 +08:00
|
|
|
-DBUILD_opencv_java=OFF
|
2019-08-13 00:22:30 +08:00
|
|
|
-DBUILD_opencv_js=OFF
|
|
|
|
-DBUILD_ANDROID_PROJECT=OFF
|
|
|
|
-DBUILD_ANDROID_EXAMPLES=OFF
|
|
|
|
-DBUILD_PACKAGE=OFF
|
|
|
|
-DBUILD_PERF_TESTS=OFF
|
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
-DBUILD_WITH_DEBUG_INFO=ON
|
|
|
|
-DBUILD_WITH_STATIC_CRT=${BUILD_WITH_STATIC_CRT}
|
|
|
|
-DBUILD_JAVA=OFF
|
|
|
|
-DCURRENT_INSTALLED_DIR=${CURRENT_INSTALLED_DIR}
|
|
|
|
###### PROTOBUF
|
2020-10-21 04:20:20 +08:00
|
|
|
-DPROTOBUF_UPDATE_FILES=${BUILD_opencv_dnn}
|
|
|
|
-DUPDATE_PROTO_FILES=${BUILD_opencv_dnn}
|
2019-08-13 00:22:30 +08:00
|
|
|
###### PYLINT/FLAKE8
|
|
|
|
-DENABLE_PYLINT=OFF
|
|
|
|
-DENABLE_FLAKE8=OFF
|
|
|
|
# CMAKE
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_JNI=ON
|
|
|
|
# ENABLE
|
|
|
|
-DENABLE_CXX11=ON
|
|
|
|
###### OPENCV vars
|
|
|
|
"-DOPENCV_DOWNLOAD_PATH=${DOWNLOADS}/opencv-cache"
|
|
|
|
${BUILD_WITH_CONTRIB_FLAG}
|
|
|
|
-DOPENCV_OTHER_INSTALL_PATH=share/opencv
|
|
|
|
###### customized properties
|
2019-08-14 11:13:55 +08:00
|
|
|
## Options from vcpkg_check_features()
|
|
|
|
${FEATURE_OPTIONS}
|
2021-12-02 11:11:01 +08:00
|
|
|
-DWITH_GTK=${WITH_GTK}
|
|
|
|
-DWITH_QT=${WITH_QT}
|
2019-08-13 00:22:30 +08:00
|
|
|
-DWITH_IPP=${WITH_IPP}
|
2021-01-23 04:13:33 +08:00
|
|
|
-DWITH_MATLAB=OFF
|
2019-08-13 00:22:30 +08:00
|
|
|
-DWITH_MSMF=${WITH_MSMF}
|
2021-12-09 06:03:00 +08:00
|
|
|
-DWITH_PYTHON=${WITH_PYTHON}
|
2020-07-28 08:43:23 +08:00
|
|
|
-DWITH_OPENMP=${WITH_OPENMP}
|
2020-10-21 04:20:20 +08:00
|
|
|
-DWITH_PROTOBUF=${BUILD_opencv_dnn}
|
2021-01-23 04:13:33 +08:00
|
|
|
-DWITH_OPENCLAMDBLAS=OFF
|
2019-08-13 00:22:30 +08:00
|
|
|
-DWITH_TBB=${WITH_TBB}
|
2020-07-28 08:43:23 +08:00
|
|
|
-DWITH_OPENJPEG=OFF
|
2022-02-05 07:40:49 +08:00
|
|
|
-DWITH_CPUFEATURES=OFF
|
2019-08-13 00:22:30 +08:00
|
|
|
###### BUILD_options (mainly modules which require additional libraries)
|
|
|
|
-DBUILD_opencv_ovis=${BUILD_opencv_ovis}
|
2020-07-28 08:43:23 +08:00
|
|
|
-DBUILD_opencv_dnn=${BUILD_opencv_dnn}
|
2022-02-24 03:57:13 +08:00
|
|
|
-DBUILD_opencv_python3=${BUILD_opencv_python3}
|
2019-08-13 00:22:30 +08:00
|
|
|
###### The following modules are disabled for UWP
|
|
|
|
-DBUILD_opencv_quality=${BUILD_opencv_quality}
|
2021-04-30 01:45:23 +08:00
|
|
|
-DBUILD_opencv_gapi=${BUILD_opencv_gapi}
|
2020-07-28 08:43:23 +08:00
|
|
|
###### The following module is disabled because it's broken #https://github.com/opencv/opencv_contrib/issues/2307
|
|
|
|
-DBUILD_opencv_rgbd=OFF
|
2019-09-25 03:58:38 +08:00
|
|
|
###### Additional build flags
|
|
|
|
${ADDITIONAL_BUILD_FLAGS}
|
2019-08-13 00:22:30 +08:00
|
|
|
)
|
|
|
|
|
2021-08-13 23:46:11 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME opencv CONFIG_PATH "share/opencv")
|
2019-08-13 00:22:30 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
2021-08-13 23:46:11 +08:00
|
|
|
file(READ "${CURRENT_PACKAGES_DIR}/share/opencv/OpenCVModules.cmake" OPENCV_MODULES)
|
2020-09-05 09:59:21 +08:00
|
|
|
set(DEPS_STRING "include(CMakeFindDependencyMacro)
|
2021-10-07 07:58:41 +08:00
|
|
|
if(${BUILD_opencv_dnn})
|
|
|
|
find_dependency(Protobuf CONFIG REQUIRED)
|
2019-08-13 00:22:30 +08:00
|
|
|
if(TARGET protobuf::libprotobuf)
|
2020-09-05 09:59:21 +08:00
|
|
|
add_library (libprotobuf INTERFACE IMPORTED)
|
2019-08-13 00:22:30 +08:00
|
|
|
set_target_properties(libprotobuf PROPERTIES
|
|
|
|
INTERFACE_LINK_LIBRARIES protobuf::libprotobuf
|
|
|
|
)
|
|
|
|
else()
|
2020-09-05 09:59:21 +08:00
|
|
|
add_library (libprotobuf UNKNOWN IMPORTED)
|
2019-08-13 00:22:30 +08:00
|
|
|
set_target_properties(libprotobuf PROPERTIES
|
|
|
|
IMPORTED_LOCATION \"${Protobuf_LIBRARY}\"
|
|
|
|
INTERFACE_INCLUDE_DIRECTORIES \"${Protobuf_INCLUDE_DIR}\"
|
|
|
|
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES \"${Protobuf_INCLUDE_DIR}\"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif()
|
2020-09-05 09:59:21 +08:00
|
|
|
find_dependency(Threads)")
|
|
|
|
if("tiff" IN_LIST FEATURES)
|
|
|
|
string(APPEND DEPS_STRING "\nfind_dependency(TIFF)")
|
|
|
|
endif()
|
|
|
|
if("cuda" IN_LIST FEATURES)
|
|
|
|
string(APPEND DEPS_STRING "\nfind_dependency(CUDA)")
|
|
|
|
endif()
|
|
|
|
if(BUILD_opencv_quality)
|
|
|
|
string(APPEND DEPS_STRING "
|
|
|
|
# C language is required for try_compile tests in FindHDF5
|
|
|
|
enable_language(C)
|
|
|
|
find_dependency(HDF5)
|
|
|
|
find_dependency(Tesseract)")
|
|
|
|
endif()
|
|
|
|
if(WITH_TBB)
|
|
|
|
string(APPEND DEPS_STRING "\nfind_dependency(TBB)")
|
|
|
|
endif()
|
2020-12-12 06:16:29 +08:00
|
|
|
if("vtk" IN_LIST FEATURES)
|
2020-09-05 09:59:21 +08:00
|
|
|
string(APPEND DEPS_STRING "\nfind_dependency(VTK)")
|
|
|
|
endif()
|
|
|
|
if("sfm" IN_LIST FEATURES)
|
|
|
|
string(APPEND DEPS_STRING "\nfind_dependency(gflags CONFIG)\nfind_dependency(Ceres CONFIG)")
|
|
|
|
endif()
|
|
|
|
if("eigen" IN_LIST FEATURES)
|
|
|
|
string(APPEND DEPS_STRING "\nfind_dependency(Eigen3 CONFIG)")
|
|
|
|
endif()
|
2021-01-17 11:26:38 +08:00
|
|
|
if("lapack" IN_LIST FEATURES)
|
|
|
|
string(APPEND DEPS_STRING "\nfind_dependency(LAPACK)")
|
|
|
|
endif()
|
2021-01-23 04:13:33 +08:00
|
|
|
if("openexr" IN_LIST FEATURES)
|
|
|
|
string(APPEND DEPS_STRING "\nfind_dependency(OpenEXR CONFIG)")
|
|
|
|
endif()
|
2020-09-05 09:59:21 +08:00
|
|
|
if(WITH_OPENMP)
|
2021-01-17 11:26:38 +08:00
|
|
|
string(APPEND DEPS_STRING "\nfind_dependency(OpenMP)")
|
2020-09-05 09:59:21 +08:00
|
|
|
endif()
|
|
|
|
if(BUILD_opencv_ovis)
|
2022-02-24 03:57:13 +08:00
|
|
|
string(APPEND DEPS_STRING "\nfind_dependency(Ogre)\nfind_dependency(freetype)")
|
2020-09-05 09:59:21 +08:00
|
|
|
endif()
|
[quirc, opencv4] Build fixes from 2021-01-18 build (#15788)
* [quirc, opencv4] Use a cmake package for quirc and devendor quirc from opencv4.
* Build fixes from 2020-01-18 build
https://dev.azure.com/vcpkg/public/_build/results?buildId=48065
> PASSING, REMOVE FROM FAIL LIST: chartdir:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: cmark:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: cppcms:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: cudnn:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: devicenameresolver:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: dxut:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: epsilon:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: fann:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: getopt-win32:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: glib:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: graphqlparser:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: halide:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: hpx:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: jemalloc:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: libepoxy:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: libhsplasma:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: libmodman:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: libpcap:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: libplist:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: milerius-sfml-imgui:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: monkeys-audio:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: moos-core:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: msix:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: ngspice:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: openni2:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: openvr:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: pmdk:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: pngpp:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: qpid-proton:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: qt5-tools:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: sciter:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: scylla-wrapper:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: soundtouch:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: spirv-tools:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: torch-th:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: treehopper:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: unrar:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: urdfdom:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: xalan-c:x64-windows-static-md (.\scripts\ci.baseline.txt)
These look like they have always passed since we turned on x64-windows-static-md in nightly CI.
>PASSING, REMOVE FROM FAIL LIST: osgearth:x64-windows (.\scripts\ci.baseline.txt)
>PASSING, REMOVE FROM FAIL LIST: osgearth:x86-windows (.\scripts\ci.baseline.txt)
Maybe addressed by https://github.com/microsoft/vcpkg/pull/15777
>REGRESSION: gettext:arm-uwp. If expected, add gettext:arm-uwp=fail to .\scripts\ci.baseline.txt.
>REGRESSION: gettext:arm64-windows. If expected, add gettext:arm64-windows=fail to .\scripts\ci.baseline.txt.
Probably fixed by https://github.com/microsoft/vcpkg/pull/15740
> PASSING, REMOVE FROM FAIL LIST: directxmesh:x64-linux (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: uvatlas:x64-linux (.\scripts\ci.baseline.txt)
Probably an error in the authoring of https://github.com/microsoft/vcpkg/pull/15554/
> REGRESSION: dcmtk:x86-windows. If expected, add dcmtk:x86-windows=fail to .\scripts\ci.baseline.txt.
>
> "C:\PROGRA~2\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29333\bin\Hostx64\x86\cl.exe" /TP -DDCMTK_BUILD_IN_PROGRESS -DNOMINMAX -DUSE_NULL_SAFE_OFSTRING -D_CRT_FAR_MAPPINGS_NO_DEPRECATE -D_CRT_IS_WCTYPE_NO_DEPRECATE -D_CRT_MANAGED_FP_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE_GLOBALS -D_CRT_SETERRORMODE_BEEP_SLEEP_NO_DEPRECATE -D_CRT_TIME_FUNCTIONS_NO_DEPRECATE -D_CRT_VCCLRIT_NO_DEPRECATE -D_REENTRANT -D_SCL_SECURE_NO_DEPRECATE -Dofstd_EXPORTS -ID:\installed\x86-windows\include -Iconfig\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\ofstd\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\oflog\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmdata\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmimgle\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmimage\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmjpeg\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmjpls\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmtls\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmnet\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmsr\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmsign\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmwlm\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmqrdb\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmpstat\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmrt\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmiod\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmfg\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmseg\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmtract\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmpmap\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmect\include /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 -DDEBUG /showIncludes /Foofstd\libsrc\CMakeFiles\ofstd.dir\offilsys.cc.obj /Fdofstd\libsrc\CMakeFiles\ofstd.dir\ofstd.pdb /FS -c D:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\ofstd\libsrc\offilsys.cc
> D:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\ofstd\libsrc\offilsys.cc(376): error C2039: 'DIR': is not a member of '`global namespace''
>
> REGRESSION: tesseract:x64-windows-static-md. If expected, add tesseract:x64-windows-static-md=fail to .\scripts\ci.baseline.txt.
> REGRESSION: tesseract:x64-windows-static. If expected, add tesseract:x64-windows-static=fail to .\scripts\ci.baseline.txt.
> REGRESSION: tesseract:x64-windows. If expected, add tesseract:x64-windows=fail to .\scripts\ci.baseline.txt.
> REGRESSION: tesseract:x86-windows. If expected, add tesseract:x86-windows=fail to .\scripts\ci.baseline.txt.
> [2/241] "C:\PROGRA~2\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29333\bin\Hostx64\x86\cl.exe" /TP -DHAVE_CONFIG_H -DTESS_EXPORTS -D_CRT_SECURE_NO_WARNINGS -D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1 -D__AVX2__ -D__AVX__ -D__BMI2__ -D__FMA__ -D__SSE2__ -D__SSE3__ -D__SSE4A__ -D__SSE4_1__ -D__SSE4_2__ -D__SSSE3__ -Dlibtesseract_EXPORTS -ID:\installed\x86-windows\share\leptonica\..\..\include -ID:\installed\x86-windows\share\leptonica\..\..\include\leptonica -I. -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\api -Iapi -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\arch -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\ccmain -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\ccstruct -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\ccutil -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\classify -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\cutil -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\dict -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\lstm -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\opencl -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\textord -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\viewer -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\wordrec -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\training -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\vs2010\tesseract -ID:\installed\x86-windows\include /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /W4 /bigobj -std:c++17 /showIncludes /FoCMakeFiles\libtesseract.dir\src\classify\shapetable.cpp.obj /FdCMakeFiles\libtesseract.dir\ /FS -c D:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\classify\shapetable.cpp
> FAILED: CMakeFiles/libtesseract.dir/src/classify/shapetable.cpp.obj
> "C:\PROGRA~2\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29333\bin\Hostx64\x86\cl.exe" /TP -DHAVE_CONFIG_H -DTESS_EXPORTS -D_CRT_SECURE_NO_WARNINGS -D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1 -D__AVX2__ -D__AVX__ -D__BMI2__ -D__FMA__ -D__SSE2__ -D__SSE3__ -D__SSE4A__ -D__SSE4_1__ -D__SSE4_2__ -D__SSSE3__ -Dlibtesseract_EXPORTS -ID:\installed\x86-windows\share\leptonica\..\..\include -ID:\installed\x86-windows\share\leptonica\..\..\include\leptonica -I. -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\api -Iapi -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\arch -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\ccmain -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\ccstruct -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\ccutil -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\classify -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\cutil -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\dict -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\lstm -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\opencl -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\textord -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\viewer -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\wordrec -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\training -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\vs2010\tesseract -ID:\installed\x86-windows\include /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /W4 /bigobj -std:c++17 /showIncludes /FoCMakeFiles\libtesseract.dir\src\classify\shapetable.cpp.obj /FdCMakeFiles\libtesseract.dir\ /FS -c D:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\classify\shapetable.cpp
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> D:\installed\x86-windows\include\params.h(36): error C2143: syntax error: missing ';' before '*'
https://github.com/microsoft/vcpkg/pull/15785
> REGRESSION: fluidsynth:x64-windows-static-md. If expected, add fluidsynth:x64-windows-static-md=fail to .\scripts\ci.baseline.txt.
Was previously a cascaded failure from glib.
REGRESSION: libevent:x86-windows. If expected, add libevent:x86-windows=fail to .\scripts\ci.baseline.txt.
> REGRESSION: ideviceinstaller:x64-windows-static-md. If expected, add ideviceinstaller:x64-windows-static-md=fail to .\scripts\ci.baseline.txt.
> REGRESSION: libcrafter:x64-windows-static-md. If expected, add libcrafter:x64-windows-static-md=fail to .\scripts\ci.baseline.txt.
> REGRESSION: libirecovery:x64-windows-static-md. If expected, add libirecovery:x64-windows-static-md=fail to .\scripts\ci.baseline.txt.
> REGRESSION: moos-essential:x64-windows-static-md. If expected, add moos-essential:x64-windows-static-md=fail to .\scripts\ci.baseline.txt.
> REGRESSION: openmama:x64-windows-static-md. If expected, add openmama:x64-windows-static-md=fail to .\scripts\ci.baseline.txt.
> REGRESSION: sdformat10:x64-windows-static-md. If expected, add sdformat10:x64-windows-static-md=fail to .\scripts\ci.baseline.txt.
> REGRESSION: sdformat6:x64-windows-static-md. If expected, add sdformat6:x64-windows-static-md=fail to .\scripts\ci.baseline.txt.
> REGRESSION: sdformat9:x64-windows-static-md. If expected, add sdformat9:x64-windows-static-md=fail to .\scripts\ci.baseline.txt.
I'm going to assume these were cascaded failures for now.
> REGRESSION: mesa:x64-windows-static-md. If expected, add mesa:x64-windows-static-md=fail to .\scripts\ci.baseline.txt.
> REGRESSION: mesa:x64-windows. If expected, add mesa:x64-windows=fail to .\scripts\ci.baseline.txt.
> REGRESSION: mesa:x86-windows. If expected, add mesa:x86-windows=fail to .\scripts\ci.baseline.txt.
Nancy is working on this https://github.com/microsoft/vcpkg/pull/15729
> REGRESSION: quirc:x64-linux. If expected, add quirc:x64-linux=fail to .\scripts\ci.baseline.txt.
> REGRESSION: quirc:x64-osx. If expected, add quirc:x64-osx=fail to .\scripts\ci.baseline.txt.
> Starting package 1166/1442: quirc:x64-linux
> Building package quirc[core]:x64-linux...
> -- Downloading https://github.com/dlbeer/quirc/archive/7e7ab596e4d0988faf1c12ae89c354b114181c40.tar.gz -> dlbeer-quirc-7e7ab596e4d0988faf1c12ae89c354b114181c40.tar.gz...
> -- Extracting source /mnt/vcpkg-ci/downloads/dlbeer-quirc-7e7ab596e4d0988faf1c12ae89c354b114181c40.tar.gz
> -- Using source at /mnt/vcpkg-ci/buildtrees/quirc/src/b114181c40-f1e71e0d5b.clean
> -- Configuring x64-linux-dbg
> -- Configuring x64-linux-rel
> -- Building x64-linux-dbg
> -- Building x64-linux-rel
> -- Installing: /mnt/vcpkg-ci/packages/quirc_x64-linux/share/quirc/copyright/LICENSE
> -- Performing post-build validation
> -- Performing post-build validation done
> Uploaded binaries to 1 HTTP remotes.
> Building package quirc[core]:x64-linux... done
> Installing package quirc[core]:x64-linux...
> The following files are already installed in /mnt/vcpkg-ci/installed/x64-linux and are in conflict with quirc:x64-linux
>
> Installed by opencv4:x64-linux
> lib/libquirc.a
>
> Elapsed time for package quirc:x64-linux: 2.531 s
Probably broken by https://github.com/microsoft/vcpkg/pull/15089, fix here
> REGRESSION: spatialite-tools:x64-linux. If expected, add spatialite-tools:x64-linux=fail to .\scripts\ci.baseline.txt.
> REGRESSION: spatialite-tools:x64-osx. If expected, add spatialite-tools:x64-osx=fail to .\scripts\ci.baseline.txt.
These are spewing linker errors, probably triggered by https://github.com/microsoft/vcpkg/pull/15768/ although that PR removed them from ci.baseline.txt?
* Fixup spurious / and format-manifest.
* x-add-version
* Add missing =fails.
* Update opencv4 devendor patch for 4.5
* Transform quirc into a feature.
* Repeat changes for opencv3.
* Repeat for opencv. Also fix version for "opencv".
* [dxut] Use vcpkg_from_github, correct "supports",
if(NOT VCPKG_CRT_LINKAGE STREQUAL "dynamic")
message(FATAL_ERROR "DXUT only supports dynamic CRT linkage")
endif()
* [epsilon] Skip in ci.baseline.txt for now because it has "vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)" but also checks against the CRT linkage making the right fix unclear.
* Fix flipped supports:
* Update ports/opencv3/portfile.cmake
* x-add-version
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2021-01-27 06:33:06 +08:00
|
|
|
if("quirc" IN_LIST FEATURES)
|
2021-01-29 11:23:57 +08:00
|
|
|
string(APPEND DEPS_STRING "\nfind_dependency(quirc)")
|
[quirc, opencv4] Build fixes from 2021-01-18 build (#15788)
* [quirc, opencv4] Use a cmake package for quirc and devendor quirc from opencv4.
* Build fixes from 2020-01-18 build
https://dev.azure.com/vcpkg/public/_build/results?buildId=48065
> PASSING, REMOVE FROM FAIL LIST: chartdir:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: cmark:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: cppcms:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: cudnn:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: devicenameresolver:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: dxut:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: epsilon:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: fann:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: getopt-win32:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: glib:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: graphqlparser:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: halide:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: hpx:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: jemalloc:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: libepoxy:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: libhsplasma:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: libmodman:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: libpcap:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: libplist:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: milerius-sfml-imgui:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: monkeys-audio:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: moos-core:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: msix:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: ngspice:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: openni2:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: openvr:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: pmdk:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: pngpp:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: qpid-proton:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: qt5-tools:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: sciter:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: scylla-wrapper:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: soundtouch:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: spirv-tools:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: torch-th:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: treehopper:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: unrar:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: urdfdom:x64-windows-static-md (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: xalan-c:x64-windows-static-md (.\scripts\ci.baseline.txt)
These look like they have always passed since we turned on x64-windows-static-md in nightly CI.
>PASSING, REMOVE FROM FAIL LIST: osgearth:x64-windows (.\scripts\ci.baseline.txt)
>PASSING, REMOVE FROM FAIL LIST: osgearth:x86-windows (.\scripts\ci.baseline.txt)
Maybe addressed by https://github.com/microsoft/vcpkg/pull/15777
>REGRESSION: gettext:arm-uwp. If expected, add gettext:arm-uwp=fail to .\scripts\ci.baseline.txt.
>REGRESSION: gettext:arm64-windows. If expected, add gettext:arm64-windows=fail to .\scripts\ci.baseline.txt.
Probably fixed by https://github.com/microsoft/vcpkg/pull/15740
> PASSING, REMOVE FROM FAIL LIST: directxmesh:x64-linux (.\scripts\ci.baseline.txt)
> PASSING, REMOVE FROM FAIL LIST: uvatlas:x64-linux (.\scripts\ci.baseline.txt)
Probably an error in the authoring of https://github.com/microsoft/vcpkg/pull/15554/
> REGRESSION: dcmtk:x86-windows. If expected, add dcmtk:x86-windows=fail to .\scripts\ci.baseline.txt.
>
> "C:\PROGRA~2\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29333\bin\Hostx64\x86\cl.exe" /TP -DDCMTK_BUILD_IN_PROGRESS -DNOMINMAX -DUSE_NULL_SAFE_OFSTRING -D_CRT_FAR_MAPPINGS_NO_DEPRECATE -D_CRT_IS_WCTYPE_NO_DEPRECATE -D_CRT_MANAGED_FP_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE_GLOBALS -D_CRT_SETERRORMODE_BEEP_SLEEP_NO_DEPRECATE -D_CRT_TIME_FUNCTIONS_NO_DEPRECATE -D_CRT_VCCLRIT_NO_DEPRECATE -D_REENTRANT -D_SCL_SECURE_NO_DEPRECATE -Dofstd_EXPORTS -ID:\installed\x86-windows\include -Iconfig\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\ofstd\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\oflog\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmdata\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmimgle\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmimage\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmjpeg\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmjpls\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmtls\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmnet\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmsr\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmsign\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmwlm\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmqrdb\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmpstat\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmrt\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmiod\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmfg\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmseg\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmtract\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmpmap\include -ID:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\dcmect\include /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 -DDEBUG /showIncludes /Foofstd\libsrc\CMakeFiles\ofstd.dir\offilsys.cc.obj /Fdofstd\libsrc\CMakeFiles\ofstd.dir\ofstd.pdb /FS -c D:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\ofstd\libsrc\offilsys.cc
> D:\buildtrees\dcmtk\src\95da808b49-b82aa35f79.clean\ofstd\libsrc\offilsys.cc(376): error C2039: 'DIR': is not a member of '`global namespace''
>
> REGRESSION: tesseract:x64-windows-static-md. If expected, add tesseract:x64-windows-static-md=fail to .\scripts\ci.baseline.txt.
> REGRESSION: tesseract:x64-windows-static. If expected, add tesseract:x64-windows-static=fail to .\scripts\ci.baseline.txt.
> REGRESSION: tesseract:x64-windows. If expected, add tesseract:x64-windows=fail to .\scripts\ci.baseline.txt.
> REGRESSION: tesseract:x86-windows. If expected, add tesseract:x86-windows=fail to .\scripts\ci.baseline.txt.
> [2/241] "C:\PROGRA~2\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29333\bin\Hostx64\x86\cl.exe" /TP -DHAVE_CONFIG_H -DTESS_EXPORTS -D_CRT_SECURE_NO_WARNINGS -D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1 -D__AVX2__ -D__AVX__ -D__BMI2__ -D__FMA__ -D__SSE2__ -D__SSE3__ -D__SSE4A__ -D__SSE4_1__ -D__SSE4_2__ -D__SSSE3__ -Dlibtesseract_EXPORTS -ID:\installed\x86-windows\share\leptonica\..\..\include -ID:\installed\x86-windows\share\leptonica\..\..\include\leptonica -I. -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\api -Iapi -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\arch -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\ccmain -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\ccstruct -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\ccutil -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\classify -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\cutil -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\dict -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\lstm -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\opencl -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\textord -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\viewer -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\wordrec -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\training -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\vs2010\tesseract -ID:\installed\x86-windows\include /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /W4 /bigobj -std:c++17 /showIncludes /FoCMakeFiles\libtesseract.dir\src\classify\shapetable.cpp.obj /FdCMakeFiles\libtesseract.dir\ /FS -c D:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\classify\shapetable.cpp
> FAILED: CMakeFiles/libtesseract.dir/src/classify/shapetable.cpp.obj
> "C:\PROGRA~2\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29333\bin\Hostx64\x86\cl.exe" /TP -DHAVE_CONFIG_H -DTESS_EXPORTS -D_CRT_SECURE_NO_WARNINGS -D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1 -D__AVX2__ -D__AVX__ -D__BMI2__ -D__FMA__ -D__SSE2__ -D__SSE3__ -D__SSE4A__ -D__SSE4_1__ -D__SSE4_2__ -D__SSSE3__ -Dlibtesseract_EXPORTS -ID:\installed\x86-windows\share\leptonica\..\..\include -ID:\installed\x86-windows\share\leptonica\..\..\include\leptonica -I. -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\api -Iapi -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\arch -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\ccmain -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\ccstruct -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\ccutil -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\classify -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\cutil -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\dict -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\lstm -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\opencl -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\textord -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\viewer -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\wordrec -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\training -ID:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\vs2010\tesseract -ID:\installed\x86-windows\include /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /W4 /bigobj -std:c++17 /showIncludes /FoCMakeFiles\libtesseract.dir\src\classify\shapetable.cpp.obj /FdCMakeFiles\libtesseract.dir\ /FS -c D:\buildtrees\tesseract\src\4.1.1-3a7d5a1d2b.clean\src\classify\shapetable.cpp
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> D:\installed\x86-windows\include\params.h(36): error C2143: syntax error: missing ';' before '*'
https://github.com/microsoft/vcpkg/pull/15785
> REGRESSION: fluidsynth:x64-windows-static-md. If expected, add fluidsynth:x64-windows-static-md=fail to .\scripts\ci.baseline.txt.
Was previously a cascaded failure from glib.
REGRESSION: libevent:x86-windows. If expected, add libevent:x86-windows=fail to .\scripts\ci.baseline.txt.
> REGRESSION: ideviceinstaller:x64-windows-static-md. If expected, add ideviceinstaller:x64-windows-static-md=fail to .\scripts\ci.baseline.txt.
> REGRESSION: libcrafter:x64-windows-static-md. If expected, add libcrafter:x64-windows-static-md=fail to .\scripts\ci.baseline.txt.
> REGRESSION: libirecovery:x64-windows-static-md. If expected, add libirecovery:x64-windows-static-md=fail to .\scripts\ci.baseline.txt.
> REGRESSION: moos-essential:x64-windows-static-md. If expected, add moos-essential:x64-windows-static-md=fail to .\scripts\ci.baseline.txt.
> REGRESSION: openmama:x64-windows-static-md. If expected, add openmama:x64-windows-static-md=fail to .\scripts\ci.baseline.txt.
> REGRESSION: sdformat10:x64-windows-static-md. If expected, add sdformat10:x64-windows-static-md=fail to .\scripts\ci.baseline.txt.
> REGRESSION: sdformat6:x64-windows-static-md. If expected, add sdformat6:x64-windows-static-md=fail to .\scripts\ci.baseline.txt.
> REGRESSION: sdformat9:x64-windows-static-md. If expected, add sdformat9:x64-windows-static-md=fail to .\scripts\ci.baseline.txt.
I'm going to assume these were cascaded failures for now.
> REGRESSION: mesa:x64-windows-static-md. If expected, add mesa:x64-windows-static-md=fail to .\scripts\ci.baseline.txt.
> REGRESSION: mesa:x64-windows. If expected, add mesa:x64-windows=fail to .\scripts\ci.baseline.txt.
> REGRESSION: mesa:x86-windows. If expected, add mesa:x86-windows=fail to .\scripts\ci.baseline.txt.
Nancy is working on this https://github.com/microsoft/vcpkg/pull/15729
> REGRESSION: quirc:x64-linux. If expected, add quirc:x64-linux=fail to .\scripts\ci.baseline.txt.
> REGRESSION: quirc:x64-osx. If expected, add quirc:x64-osx=fail to .\scripts\ci.baseline.txt.
> Starting package 1166/1442: quirc:x64-linux
> Building package quirc[core]:x64-linux...
> -- Downloading https://github.com/dlbeer/quirc/archive/7e7ab596e4d0988faf1c12ae89c354b114181c40.tar.gz -> dlbeer-quirc-7e7ab596e4d0988faf1c12ae89c354b114181c40.tar.gz...
> -- Extracting source /mnt/vcpkg-ci/downloads/dlbeer-quirc-7e7ab596e4d0988faf1c12ae89c354b114181c40.tar.gz
> -- Using source at /mnt/vcpkg-ci/buildtrees/quirc/src/b114181c40-f1e71e0d5b.clean
> -- Configuring x64-linux-dbg
> -- Configuring x64-linux-rel
> -- Building x64-linux-dbg
> -- Building x64-linux-rel
> -- Installing: /mnt/vcpkg-ci/packages/quirc_x64-linux/share/quirc/copyright/LICENSE
> -- Performing post-build validation
> -- Performing post-build validation done
> Uploaded binaries to 1 HTTP remotes.
> Building package quirc[core]:x64-linux... done
> Installing package quirc[core]:x64-linux...
> The following files are already installed in /mnt/vcpkg-ci/installed/x64-linux and are in conflict with quirc:x64-linux
>
> Installed by opencv4:x64-linux
> lib/libquirc.a
>
> Elapsed time for package quirc:x64-linux: 2.531 s
Probably broken by https://github.com/microsoft/vcpkg/pull/15089, fix here
> REGRESSION: spatialite-tools:x64-linux. If expected, add spatialite-tools:x64-linux=fail to .\scripts\ci.baseline.txt.
> REGRESSION: spatialite-tools:x64-osx. If expected, add spatialite-tools:x64-osx=fail to .\scripts\ci.baseline.txt.
These are spewing linker errors, probably triggered by https://github.com/microsoft/vcpkg/pull/15768/ although that PR removed them from ci.baseline.txt?
* Fixup spurious / and format-manifest.
* x-add-version
* Add missing =fails.
* Update opencv4 devendor patch for 4.5
* Transform quirc into a feature.
* Repeat changes for opencv3.
* Repeat for opencv. Also fix version for "opencv".
* [dxut] Use vcpkg_from_github, correct "supports",
if(NOT VCPKG_CRT_LINKAGE STREQUAL "dynamic")
message(FATAL_ERROR "DXUT only supports dynamic CRT linkage")
endif()
* [epsilon] Skip in ci.baseline.txt for now because it has "vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)" but also checks against the CRT linkage making the right fix unclear.
* Fix flipped supports:
* Update ports/opencv3/portfile.cmake
* x-add-version
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2021-01-27 06:33:06 +08:00
|
|
|
endif()
|
2020-09-05 09:59:21 +08:00
|
|
|
if("qt" IN_LIST FEATURES)
|
|
|
|
string(APPEND DEPS_STRING "
|
2020-07-28 08:43:23 +08:00
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
set(CMAKE_AUTOUIC ON)
|
2021-12-02 11:11:01 +08:00
|
|
|
find_dependency(Qt${USE_QT_VERSION} COMPONENTS Core Gui Widgets Test Concurrent)")
|
|
|
|
if("opengl" IN_LIST FEATURES)
|
|
|
|
string(APPEND DEPS_STRING "
|
|
|
|
find_dependency(Qt${USE_QT_VERSION} COMPONENTS OpenGL)")
|
|
|
|
endif()
|
2020-09-05 09:59:21 +08:00
|
|
|
endif()
|
|
|
|
if("ade" IN_LIST FEATURES)
|
|
|
|
string(APPEND DEPS_STRING "\nfind_dependency(ade)")
|
|
|
|
endif()
|
|
|
|
if("gdcm" IN_LIST FEATURES)
|
|
|
|
string(APPEND DEPS_STRING "\nfind_dependency(GDCM)")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
string(REPLACE "set(CMAKE_IMPORT_FILE_VERSION 1)"
|
|
|
|
"set(CMAKE_IMPORT_FILE_VERSION 1)\n${DEPS_STRING}" OPENCV_MODULES "${OPENCV_MODULES}")
|
2019-08-13 00:22:30 +08:00
|
|
|
|
2020-07-28 08:43:23 +08:00
|
|
|
if(WITH_OPENMP)
|
2019-08-13 00:22:30 +08:00
|
|
|
string(REPLACE "set_target_properties(opencv_core PROPERTIES
|
|
|
|
INTERFACE_LINK_LIBRARIES \""
|
|
|
|
"set_target_properties(opencv_core PROPERTIES
|
|
|
|
INTERFACE_LINK_LIBRARIES \"\$<LINK_ONLY:OpenMP::OpenMP_CXX>;" OPENCV_MODULES "${OPENCV_MODULES}")
|
|
|
|
endif()
|
|
|
|
|
2020-07-28 08:43:23 +08:00
|
|
|
if(BUILD_opencv_ovis)
|
|
|
|
string(REPLACE "OgreGLSupportStatic"
|
|
|
|
"OgreGLSupport" OPENCV_MODULES "${OPENCV_MODULES}")
|
|
|
|
endif()
|
|
|
|
|
2021-08-13 23:46:11 +08:00
|
|
|
file(WRITE "${CURRENT_PACKAGES_DIR}/share/opencv/OpenCVModules.cmake" "${OPENCV_MODULES}")
|
2019-08-13 00:22:30 +08:00
|
|
|
|
2021-01-23 04:13:33 +08:00
|
|
|
|
2021-08-13 23:46:11 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
2019-08-13 00:22:30 +08:00
|
|
|
endif()
|
|
|
|
|
2021-08-13 23:46:11 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/LICENSE")
|
|
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/LICENSE")
|
2019-08-13 00:22:30 +08:00
|
|
|
|
2020-07-28 08:43:23 +08:00
|
|
|
if(VCPKG_TARGET_IS_ANDROID)
|
2021-08-13 23:46:11 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/README.android")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/README.android")
|
2020-07-28 08:43:23 +08:00
|
|
|
endif()
|
|
|
|
|
2022-02-24 03:57:13 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2021-08-13 23:46:11 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|