Skip to content

Commit

Permalink
Merge pull request #1842 from microsoft/master
Browse files Browse the repository at this point in the history
Merge from microsoft-master
  • Loading branch information
Jimmy-Hu authored Jan 9, 2025
2 parents 6b86a5e + a3a2cda commit 65dbd81
Show file tree
Hide file tree
Showing 62 changed files with 605 additions and 273 deletions.
2 changes: 1 addition & 1 deletion ports/catch2/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO catchorg/Catch2
REF v${VERSION}
SHA512 e04c676e6bb3d7791f51a1caa770c4675d79b5396c9ba029c01ca0938e53bfa374dce117fccf753a89f3663192c91356acc9bc195e4866d215855df0667faff0
SHA512 a8084d2fc7d792c87b13dc0db6b4bad5222efea79e7f60a6e093019de97619a4d6adc8eef73195cf74f1827c2ca0655d572471d4b7c90a757282f0e6742b6711
HEAD_REF devel
PATCHES
fix-install-path.patch
Expand Down
2 changes: 1 addition & 1 deletion ports/catch2/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "catch2",
"version-semver": "3.7.1",
"version-semver": "3.8.0",
"description": "A modern, C++-native, test framework for unit-tests, TDD and BDD.",
"homepage": "https://github.com/catchorg/Catch2",
"license": "BSL-1.0",
Expand Down
2 changes: 1 addition & 1 deletion ports/fbthrift/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO facebook/fbthrift
REF "v${VERSION}"
SHA512 7b21682c020c4e281e54da40407d13e002e2a5342fcbef3e444be4026450867673d7a747dc18e37989210f770c8898db8b7e5cd94c57e21d849efb93592c0441
SHA512 a288bd91f3f0b7adb0d5dcfc6e7fef2f60a18ea56545e63e67d449a72986e710c2f58c8782d0950ef48f7a6bf331af0bc2019240638ece4cdacebec4571c920e
HEAD_REF main
PATCHES
fix-deps.patch
Expand Down
2 changes: 1 addition & 1 deletion ports/fbthrift/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fbthrift",
"version-string": "2024.12.30.00",
"version-string": "2025.01.06.00",
"description": "Facebook's branch of Apache Thrift, including a new C++ server.",
"homepage": "https://github.com/facebook/fbthrift",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion ports/fizz/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO facebookincubator/fizz
REF "v${VERSION}"
SHA512 5c20cfb7e12f850a2aa9c92457e497281cebb9e3b56532707f544e81e3f7d13a5ee543d37b13bf766ffde6e0c01a3a64c614c7e73c662f00c4ae2479bbdfdb26
SHA512 5066a9f394a9cfce396a3bee06c1d3a1ad84ebc1ff5b7c860540149727b0278dc007073748af54f2d61a4c5ab246cdb825f22c7cb88d50f17f96a633adb08ea4
HEAD_REF main
PATCHES
fix-build.patch
Expand Down
2 changes: 1 addition & 1 deletion ports/fizz/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fizz",
"version-string": "2024.12.30.00",
"version-string": "2025.01.06.00",
"description": "a TLS 1.3 implementation by Facebook",
"homepage": "https://github.com/facebookincubator/fizz",
"license": "BSD-3-Clause",
Expand Down
2 changes: 1 addition & 1 deletion ports/folly/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO facebook/folly
REF "v${VERSION}"
SHA512 2cf26cfcd11399b05d55472085343b2705d89a0aad9012582ad16c53dafdc132b99359d5d6b2e237ba6ff539ab3e18d4ac5e7424ad420353cf289aca9d4d7c4b
SHA512 df28a863e11aa7d6b58b2a1b6634c2697b427269c70d2b7eba2fa6fa70665eaa6fa3f50ffc21dc2ff2afb86cd56aa06fd2488449029b14f76c0f3f40ac8fc640
HEAD_REF main
PATCHES
fix-windows-minmax.patch
Expand Down
2 changes: 1 addition & 1 deletion ports/folly/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "folly",
"version-string": "2024.12.30.00",
"version-string": "2025.01.06.00",
"description": "An open-source C++ library developed and used at Facebook. The library is UNSTABLE on Windows",
"homepage": "https://github.com/facebook/folly",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion ports/libjpeg-turbo/usage
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
libjpeg-turbo is compatible with built-in implementation-agnostic CMake targets:

find_package(JPEG REQUIRED)
target_include_directories(main PRIVATE JPEG::JPEG)
target_link_libraries(main PRIVATE JPEG::JPEG)

libjpeg-turbo provides CMake targets for the TurboJPEG C API:

Expand Down
1 change: 1 addition & 0 deletions ports/libjpeg-turbo/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "libjpeg-turbo",
"version": "3.1.0",
"port-version": 1,
"description": "libjpeg-turbo is a JPEG image codec that uses SIMD instructions (MMX, SSE2, NEON, AltiVec) to accelerate baseline JPEG compression and decompression on x86, x86-64, ARM, and PowerPC systems.",
"homepage": "https://github.com/libjpeg-turbo/libjpeg-turbo",
"license": "BSD-3-Clause",
Expand Down
5 changes: 5 additions & 0 deletions ports/libremidi/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "libremidi",
"version": "4.5.0",
"port-version": 1,
"description": "A modern C++ MIDI real-time & file I/O library",
"homepage": "https://github.com/jcelerier/libremidi",
"license": "BSD-2-Clause",
Expand All @@ -9,6 +10,10 @@
"name": "alsa",
"platform": "linux"
},
{
"name": "readerwriterqueue",
"platform": "linux"
},
{
"name": "vcpkg-cmake",
"host": true
Expand Down
2 changes: 1 addition & 1 deletion ports/mvfst/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO facebook/mvfst
REF "v${VERSION}"
SHA512 ef46bcab8fc157f8ce524b97ac9ee01bde618eab3b14a550774a94bf1f3fad96f0817856d427975dee108f751a5727ea52b8c925300a8aa49666f909a58917e2
SHA512 d0bf90eb2e07a951bcc3414455c5feb4ff7578f5d0c714c9fba2bcb9df2057cb352846a1b99bdde96b5b21095adb19bc1376372aea72e862141f942165d16796
HEAD_REF main
)

Expand Down
2 changes: 1 addition & 1 deletion ports/mvfst/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mvfst",
"version-string": "2024.12.30.00",
"version-string": "2025.01.06.00",
"description": "mvfst (Pronounced move fast) is a client and server implementation of IETF QUIC protocol in C++ by Facebook.",
"homepage": "https://github.com/facebook/mvfst",
"license": "MIT",
Expand Down
36 changes: 36 additions & 0 deletions ports/opencl/001-remove-extra-install-rules.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index dfb336d..ef97f82 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -114,13 +114,6 @@ foreach(UTIL_LIB_NAME IN ITEMS Utils UtilsCpp)
DESTINATION ${config_package_location}
COMPONENT binary
)
-
- # For packaging the utils libraries
- install(
- TARGETS ${UTIL_LIB_TARGET}
- DESTINATION ${CMAKE_INSTALL_LIBDIR}
- COMPONENT binary
- )
endforeach()

if(OPENCL_SDK_BUILD_SAMPLES)
diff --git a/lib/src/Extensions/CMakeLists.txt b/lib/src/Extensions/CMakeLists.txt
index e05d4e7..017f7ad 100644
--- a/lib/src/Extensions/CMakeLists.txt
+++ b/lib/src/Extensions/CMakeLists.txt
@@ -151,13 +151,6 @@ if (OPENCL_EXTENSION_LOADER_INSTALL)
DESTINATION ${OPENCL_EXTENSION_LOADER_CONFIG_PATH}
COMPONENT binary
)
-
- # For packaging the extensions library
- install(
- TARGETS OpenCLExt
- DESTINATION ${CMAKE_INSTALL_LIBDIR}
- COMPONENT binary
- )
endif()

if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)
20 changes: 11 additions & 9 deletions ports/opencl/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO KhronosGroup/OpenCL-SDK
REF "${VERSION}"
SHA512 995ed5cff95fec7ffd8470f04eb4d00325f9acb20cc1f0d78442890d0636554c2526c015351f4b19bc673dcadd531bb62d9d3c8c526dd921f236cb5035e906e0
REF "v${VERSION}"
SHA512 be396a7aad6251d9d1f1af265ecf20f3428d87610d680c14d92fb5b060a59ce8b8522135a0dd29eaf20e75683e45c1c8ea55035a7c3ec3eddc4bc7680d68b66e
HEAD_REF main
PATCHES
# see https://github.com/KhronosGroup/OpenCL-SDK/pull/88/files#r1905072265
001-remove-extra-install-rules.patch
)

vcpkg_from_github(
OUT_SOURCE_PATH OPENCL_HEADERS
REPO KhronosGroup/OpenCL-Headers
REF "${VERSION}"
SHA512 2f1a46d58a5a9329470bab4c3662f17e81aab9558bfd9e1aafa14d3e1ab129513ab9493eeeb3cc48f0f91f0bc6b61bd54e28d7083eed58af9f34cd973cc93de1
REF "v${VERSION}"
SHA512 9d2ed2a8346bc3f967989091d8cc36148ffe5ff13fe30e12354cc8321c09328bbe23e74817526b99002729c884438a3b1834e175a271f6d36e8341fd86fc1ad5
HEAD_REF main
)
if(NOT EXISTS "${SOURCE_PATH}/external/OpenCL-Headers/CMakeLists.txt")
Expand All @@ -21,8 +24,8 @@ endif()
vcpkg_from_github(
OUT_SOURCE_PATH OPENCL_CLHPP
REPO KhronosGroup/OpenCL-CLHPP
REF "${VERSION}"
SHA512 6396cd67a2edef6a76695857e3e45f7eeb8cdaa8c729197357c6374ac58b41caa37bbe8c3b7a1724d43d3805f8cd5edd53a8ed833d6415bf072745800b744572
REF "v${VERSION}"
SHA512 7cdadc8ef182d1556346bd34b5a9ffe6e239ab61ec527e5609d69e1bcaf81a88f3fc534f5bdeed037236e1b0e61f1544d2a95c06df55f9cd8e03e13baf4143ba
HEAD_REF main
)
if(NOT EXISTS "${SOURCE_PATH}/external/OpenCL-CLHPP/CMakeLists.txt")
Expand All @@ -33,8 +36,8 @@ endif()
vcpkg_from_github(
OUT_SOURCE_PATH OPENCL_ICD_LOADER
REPO KhronosGroup/OpenCL-ICD-Loader
REF "${VERSION}"
SHA512 12d62183e49c5a1f813807291744d816008afca55b09f5acf2eef1bce50a453bf35a8dfbeb5f433022b0c5517f0a210d7123a3bac7a15ea63cc10f3bc71510f0
REF "v${VERSION}"
SHA512 29043eff21076440046314edf62bb488b7e4e17d9fbdac4c3727d8e2523c0c8fbf89ee7fcf762528af761ddbcb4be24e5f062ffa82f778401d6365faa35344a8
HEAD_REF main
)
if(NOT EXISTS "${SOURCE_PATH}/external/OpenCL-ICD-Loader/CMakeLists.txt")
Expand All @@ -49,7 +52,6 @@ vcpkg_from_github(
SHA512 d6fa8b6788cabdbb185a6ffba79c994762924a1c60595b769a7d3bb4a3ddf0f80cdeac7bd915cffa720f9123a720a1b7f0023fd7f2cf58906d15758529a99e2d
HEAD_REF master
)
vcpkg_replace_string("${SOURCE_PATH}/cmake/Dependencies/whereami/whereami.cmake" [[${CMAKE_CURRENT_BINARY_DIR}/_deps/whereami-external-src]] [[${whereami-external_SOURCE_DIR}]])

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
Expand Down
2 changes: 1 addition & 1 deletion ports/opencl/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opencl",
"version-string": "v2024.05.08",
"version": "2024.10.24",
"description": "OpenCL SDK",
"homepage": "https://github.com/KhronosGroup/OpenCL-SDK",
"license": "Apache-2.0 AND (MIT OR WTFPL)",
Expand Down
7 changes: 7 additions & 0 deletions ports/opencv4/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
set(USE_QT_VERSION "6")

vcpkg_download_distfile(PATCH_ADD_INCLUDE_CHRONO
URLS https://github.com/opencv/opencv/commit/96d6395a6dccb9554bc2f83105f87ebd071d37fa.patch?full_index=1
SHA512 d385b5386a19e4a0b3e78d5423baac4d132d25581d9336f084db819b9f68a6bc1ac23968a901891ac5023ab2fe4fa4513d7c70e5170e72cb57710d51b50e67a1
FILENAME opencv4-4.11.0-include-chrono.patch
)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO opencv/opencv
Expand All @@ -23,6 +29,7 @@ vcpkg_from_github(
0017-fix-flatbuffers.patch
0019-opencl-kernel.patch
0020-miss-openexr.patch
"${PATCH_ADD_INCLUDE_CHRONO}"
)
# Disallow accidental build of vendored copies
file(REMOVE_RECURSE "${SOURCE_PATH}/3rdparty/openexr")
Expand Down
2 changes: 1 addition & 1 deletion ports/opencv4/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "opencv4",
"version": "4.10.0",
"port-version": 2,
"port-version": 3,
"description": "computer vision library",
"homepage": "https://github.com/opencv/opencv",
"license": "Apache-2.0",
Expand Down
15 changes: 15 additions & 0 deletions ports/openssl/mkbuildinf.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/util/mkbuildinf.pl b/util/mkbuildinf.pl
index a57c80a..5cecf83 100755
--- a/util/mkbuildinf.pl
+++ b/util/mkbuildinf.pl
@@ -9,7 +9,9 @@
use strict;
use warnings;

-my ($cflags, $platform) = @ARGV;
+my $platform = pop @ARGV;
+my $cflags = join(' ', @ARGV);
+$cflags =~ s(\\)(\\\\)g;
$cflags = "compiler: $cflags";

# Use the value of the envvar SOURCE_DATE_EPOCH, even if it's
1 change: 1 addition & 0 deletions ports/openssl/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ vcpkg_from_github(
PATCHES
cmake-config.patch
command-line-length.patch
mkbuildinf.diff
script-prefix.patch
asm-armcap.patch
windows/install-layout.patch
Expand Down
1 change: 1 addition & 0 deletions ports/openssl/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "openssl",
"version": "3.4.0",
"port-version": 1,
"description": "OpenSSL is an open source project that provides a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. It is also a general-purpose cryptography library.",
"homepage": "https://www.openssl.org",
"license": "Apache-2.0",
Expand Down
64 changes: 64 additions & 0 deletions ports/openvino/004-opencl-v2024.10.24.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
commit 255202328d39490f2cdca0d646b2e12b17ac9b69
Author: Ilya Lavrenov <[email protected]>
Date: Mon Jan 6 09:56:08 2025 +0100

Migrate to OpenCL v2024.10.24

diff --git a/src/plugins/intel_gpu/src/runtime/ocl/ocl_ext.hpp b/src/plugins/intel_gpu/src/runtime/ocl/ocl_ext.hpp
index 759d796a5e..7246a6f6df 100644
--- a/src/plugins/intel_gpu/src/runtime/ocl/ocl_ext.hpp
+++ b/src/plugins/intel_gpu/src/runtime/ocl/ocl_ext.hpp
@@ -16,6 +16,10 @@
#include <CL/cl2.hpp>
#endif

+#ifndef CL_HPP_PARAM_NAME_CL_INTEL_UNIFIED_SHARED_MEMORY_
+#define OPENVINO_CLHPP_HEADERS_ARE_OLDER_THAN_V2024_10_24
+#endif
+
#include <CL/cl_ext.h>

#ifdef _WIN32
@@ -45,12 +49,16 @@ typedef cl_va_api_device_set_intel cl_device_set_intel;

#endif // cl_intel_required_subgroup_size

+#ifdef OPENVINO_CLHPP_HEADERS_ARE_OLDER_THAN_V2024_10_24
+
namespace cl {
namespace detail {
-CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_SUB_GROUP_SIZES_INTEL, vector<size_type>)
+CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_SUB_GROUP_SIZES_INTEL, cl::vector<size_type>)
} // namespace detail
} // namespace cl

+#endif // OPENVINO_CLHPP_HEADERS_ARE_OLDER_THAN_V2024_10_24
+
/***************************************************************
* cl_intel_command_queue_families
***************************************************************/
@@ -260,11 +268,15 @@ typedef cl_bitfield cl_device_feature_capabilities_intel;

#endif // cl_intel_device_attribute_query

+#ifndef CL_HPP_PARAM_NAME_CL_INTEL_COMMAND_QUEUE_FAMILIES_
#define CL_HPP_PARAM_NAME_CL_INTEL_COMMAND_QUEUE_FAMILIES_(F) \
F(cl_device_info, CL_DEVICE_QUEUE_FAMILY_PROPERTIES_INTEL, cl::vector<cl_queue_family_properties_intel>) \
\
F(cl_command_queue_info, CL_QUEUE_FAMILY_INTEL, cl_uint) \
F(cl_command_queue_info, CL_QUEUE_INDEX_INTEL, cl_uint)
+#endif // CL_HPP_PARAM_NAME_CL_INTEL_COMMAND_QUEUE_FAMILIES_
+
+#ifdef OPENVINO_CLHPP_HEADERS_ARE_OLDER_THAN_V2024_10_24

namespace cl {
namespace detail {
@@ -279,6 +291,8 @@ CL_HPP_PARAM_NAME_CL_INTEL_COMMAND_QUEUE_FAMILIES_(CL_HPP_DECLARE_PARAM_TRAITS_)
} // namespace detail
} // namespace cl

+#endif // OPENVINO_CLHPP_HEADERS_ARE_OLDER_THAN_V2024_10_24
+
#include <memory>

namespace {
1 change: 1 addition & 0 deletions ports/openvino/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ vcpkg_from_github(
002-fix-onnx.patch
003-protobuf.patch
add-include-chrono.patch #https://github.com/openvinotoolkit/openvino/pull/27782
004-opencl-v2024.10.24.patch # https://github.com/openvinotoolkit/openvino/pull/28275
)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
Expand Down
2 changes: 1 addition & 1 deletion ports/openvino/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"name": "openvino",
"version": "2024.4.0",
"port-version": 5,
"port-version": 6,
"maintainers": "OpenVINO Developers <[email protected]>",
"summary": "This is a port for Open Visual Inference And Optimization toolkit for AI inference",
"description": [
Expand Down
2 changes: 1 addition & 1 deletion ports/proxygen/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO facebook/proxygen
REF "v${VERSION}"
SHA512 c8bc346dac463e49bb78db8274aa95a8d991670b95e6aa418498247f7b47b1ea580f4a11914a3bae83f62b45c7b0c241f0ba6ee198d03be2f5de28772e138236
SHA512 bb744110ec328b560483ce7f04916235e73ed69240415a69a68126bc7464dc3d946fc4ce1a396354742c752a3fd4d02cbb7b647fcfecd4b1c2c3d619a8097fae
HEAD_REF main
PATCHES
remove-register.patch
Expand Down
2 changes: 1 addition & 1 deletion ports/proxygen/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "proxygen",
"version-string": "2024.12.30.00",
"version-string": "2025.01.06.00",
"description": "It comprises the core C++ HTTP abstractions used at Facebook.",
"homepage": "https://github.com/facebook/proxygen",
"license": "BSD-3-Clause",
Expand Down
Loading

0 comments on commit 65dbd81

Please sign in to comment.