Skip to content

Commit a7ed5ff

Browse files
committed
Merge remote-tracking branch 'Microsoft/master' into update_2.7_from_upstream
2 parents a97d27c + f14401c commit a7ed5ff

File tree

2,801 files changed

+27946
-14073
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,801 files changed

+27946
-14073
lines changed

.github/workflows/check_issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
permissions:
1212
issues: write
1313
steps:
14-
- uses: actions/github-script@v7
14+
- uses: actions/github-script@v8
1515
with:
1616
script: |
1717
let issue_query = {

ports/ableton-link/correct_cmake_include_directory.patch

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
diff --git "a/AbletonLinkConfig.cmake" "b/AbletonLinkConfig.cmake"
2+
index 43b66e7..1e84fa5 100644
3+
--- "a/cmake_include/ConfigureAbletonLink.cmake"
4+
+++ "b/cmake_include/ConfigureAbletonLink.cmake"
5+
@@ -30,6 +30,11 @@ function(ConfigureAbletonLink PATH_TO_LINK)
6+
INTERFACE_COMPILE_DEFINITIONS
7+
LINK_PLATFORM_WINDOWS=1
8+
)
9+
+ elseif(CMAKE_SYSTEM_NAME MATCHES "Android")
10+
+ set_property(TARGET Ableton::Link APPEND PROPERTY
11+
+ INTERFACE_COMPILE_DEFINITIONS
12+
+ LINK_PLATFORM_LINUX=1
13+
+ )
14+
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux|kFreeBSD|GNU")
15+
set_property(TARGET Ableton::Link APPEND PROPERTY
16+
INTERFACE_COMPILE_DEFINITIONS

ports/ableton-link/portfile.cmake

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,19 @@ vcpkg_from_github(
55
OUT_SOURCE_PATH SOURCE_PATH
66
REPO Ableton/link
77
REF "Link-${VERSION}"
8-
SHA512 889aa8cf56df19631a15cc4e245f3b7165a1d08aa199446de3b209c5be58904c11776899e9202900e73cc90ea63d366c6c3b2628657dac96db5a16a5217b3df7
8+
SHA512 21ab3f47b1b2a7961cae238ca846adf0190341e8379a33938824acc49d3b95d8823b61bc321b1dfcbb3864f740425ac81d8c5c581e882394e1edac230f4c34e4
99
HEAD_REF master
1010
PATCHES
1111
replace_local_asiostandalone_by_vcpkg_asio.patch
1212
replace_asiosdk_download_by_vcpkg_asiosdk.patch
1313
replace_local_catch_by_vcpkg_catch2.patch
1414
no-werror.patch
15+
fix_android_build.patch
1516
)
17+
1618
# Note that the dependencies ASIO and ASIOSDK are completely different things:
1719
# -ASIO (ASyncronous IO) is a cross-platform C++ library for network and low-level I/O programming
18-
# -ASIOSDK is the SDK for the Steinberg ASIO (Audio Stream Input/Output) driver, for profesional Windows audio applications
20+
# -ASIOSDK is the SDK for the Steinberg ASIO (Audio Stream Input/Output) driver, for professional Windows audio applications
1921

2022
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
2123
FEATURES
@@ -50,35 +52,35 @@ vcpkg_cmake_configure(
5052
OPTIONS
5153
-DNEED_CATCH2=${NEED_CATCH2}
5254
-DLINK_BUILD_ASIO=${NEED_ASIOSDK}
55+
${FEATURE_OPTIONS}
5356
)
5457

55-
if ("coretest" IN_LIST FEATURES)
56-
vcpkg_cmake_build(TARGET LinkCoreTest)
57-
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/bin/LinkCoreTest${VCPKG_TARGET_EXECUTABLE_SUFFIX}" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
58-
endif()
59-
if ("discoverytest" IN_LIST FEATURES)
60-
vcpkg_cmake_build(TARGET LinkDiscoveryTest)
61-
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/bin/LinkDiscoveryTest${VCPKG_TARGET_EXECUTABLE_SUFFIX}" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
62-
endif()
63-
if ("hut" IN_LIST FEATURES)
64-
vcpkg_cmake_build(TARGET LinkHut)
65-
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/bin/LinkHut${VCPKG_TARGET_EXECUTABLE_SUFFIX}" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
66-
endif()
67-
if ("hutsilent" IN_LIST FEATURES)
68-
vcpkg_cmake_build(TARGET LinkHutSilent)
69-
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/bin/LinkHutSilent${VCPKG_TARGET_EXECUTABLE_SUFFIX}" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
70-
endif()
58+
# Helper function to build and install helper executables
59+
function(install_test_executable FEATURE_NAME TARGET_NAME)
60+
if(${FEATURE_NAME} IN_LIST FEATURES)
61+
vcpkg_cmake_build(TARGET ${TARGET_NAME})
62+
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bin/${TARGET_NAME}${VCPKG_TARGET_EXECUTABLE_SUFFIX}"
63+
DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
64+
if(NOT VCPKG_BUILD_TYPE)
65+
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/bin/${TARGET_NAME}${VCPKG_TARGET_EXECUTABLE_SUFFIX}"
66+
DESTINATION "${CURRENT_PACKAGES_DIR}/debug/tools/${PORT}")
67+
endif()
68+
endif()
69+
endfunction()
70+
71+
# Install test executables
72+
install_test_executable("coretest" "LinkCoreTest")
73+
install_test_executable("discoverytest" "LinkDiscoveryTest")
74+
install_test_executable("hut" "LinkHut")
75+
install_test_executable("hutsilent" "LinkHutSilent")
7176

7277
# We must not correct the CMake include path before build
73-
vcpkg_apply_patches(
74-
SOURCE_PATH "${SOURCE_PATH}"
75-
PATCHES
76-
correct_cmake_include_directory.patch
77-
)
78+
file(READ "${SOURCE_PATH}/cmake_include/ConfigureAbletonLink.cmake" CONFIG_CONTENT)
79+
string(REPLACE "\${PATH_TO_LINK}/include/ableton/Link.hpp" "\${PATH_TO_LINK}/../../include/ableton/Link.hpp" CONFIG_CONTENT "${CONFIG_CONTENT}")
80+
string(REPLACE "\${PATH_TO_LINK}/include" "\${PATH_TO_LINK}/../../include/ableton" CONFIG_CONTENT "${CONFIG_CONTENT}")
81+
file(WRITE "${SOURCE_PATH}/cmake_include/ConfigureAbletonLink.cmake" "${CONFIG_CONTENT}")
7882

7983
file(INSTALL "${SOURCE_PATH}/AbletonLinkConfig.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/abletonlink")
8084
file(INSTALL "${SOURCE_PATH}/cmake_include/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/abletonlink/cmake_include/")
8185
file(INSTALL "${SOURCE_PATH}/include/" DESTINATION "${CURRENT_PACKAGES_DIR}/include" PATTERN "CMakeLists.txt" EXCLUDE)
82-
83-
# Handle copyright
8486
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

ports/ableton-link/replace_asiosdk_download_by_vcpkg_asiosdk.patch

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,26 @@ diff --git "a/examples/CMakeLists.txt" "b/examples/CMakeLists.txt"
4646
endif()
4747

4848
# _ _ _
49+
@@ -102,7 +96,20 @@ function(configure_linkhut_audio_sources target)
50+
-DLINKHUT_AUDIO_PLATFORM_JACK=1
51+
)
52+
else()
53+
- target_link_libraries(${target} asound portaudio)
54+
+ if(LinkHut)
55+
+ find_package(ALSA REQUIRED)
56+
+ find_package(portaudio CONFIG REQUIRED)
57+
+ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
58+
+ set(PORTAUDIO_LIB "${portaudio_DIR}/../../debug/lib/libportaudio.a")
59+
+ else()
60+
+ set(PORTAUDIO_LIB "${portaudio_DIR}/../../lib/libportaudio.a")
61+
+ endif()
62+
+ # PortAudio built with JACK support needs JACK library
63+
+ find_library(JACK_LIB NAMES jack)
64+
+ if(JACK_LIB)
65+
+ target_link_libraries(${target} ALSA::ALSA ${PORTAUDIO_LIB} ${JACK_LIB})
66+
+ endif()
67+
+ endif()
68+
target_compile_definitions(${target} PRIVATE
69+
-DLINKHUT_AUDIO_PLATFORM_PORTAUDIO=1
70+
)
71+
Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
diff a/cmake_include/AsioStandaloneConfig.cmake b/AsioStandaloneConfig.cmake
2-
3-
--- a/cmake_include/AsioStandaloneConfig.cmake
4-
+++ b/cmake_include/AsioStandaloneConfig.cmake
5-
@@ -1,6 +1,10 @@
6-
add_library(AsioStandalone::AsioStandalone IMPORTED INTERFACE)
7-
8-
-set_property(TARGET AsioStandalone::AsioStandalone APPEND PROPERTY
9-
- INTERFACE_INCLUDE_DIRECTORIES
10-
- ${CMAKE_CURRENT_LIST_DIR}/../modules/asio-standalone/asio/include
11-
-)
12-
+find_package(asio REQUIRED)
13-
+if(asio_FOUND)
14-
+ message(STATUS "Dependency asio found in ${asio_DIR}")
15-
+ set_property(TARGET AsioStandalone::AsioStandalone APPEND PROPERTY
16-
+ INTERFACE_INCLUDE_DIRECTORIES
17-
+ ${asio_DIR}/../../include
18-
+ )
19-
+endif()
1+
diff a/cmake_include/ConfigureAsioStandalone.cmake b/ConfigureAsioStandalone.cmake
2+
3+
--- a/cmake_include/ConfigureAsioStandalone.cmake
4+
+++ b/cmake_include/ConfigureAsioStandalone.cmake
5+
@@ -2,9 +2,13 @@ function(ConfigureAsioStandalone PATH_TO_LINK)
6+
7+
add_library(AsioStandalone::AsioStandalone IMPORTED INTERFACE)
8+
9+
- set_property(TARGET AsioStandalone::AsioStandalone APPEND PROPERTY
10+
- INTERFACE_INCLUDE_DIRECTORIES
11+
- ${PATH_TO_LINK}/modules/asio-standalone/asio/include
12+
- )
13+
+ find_package(asio REQUIRED)
14+
+ if(asio_FOUND)
15+
+ message(STATUS "Dependency asio found in ${asio_DIR}")
16+
+ set_property(TARGET AsioStandalone::AsioStandalone APPEND PROPERTY
17+
+ INTERFACE_INCLUDE_DIRECTORIES
18+
+ ${asio_DIR}/../../include
19+
+ )
20+
+ endif()
21+
22+
endfunction()

ports/ableton-link/vcpkg.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ableton-link",
3-
"version": "3.1.2",
3+
"version": "3.1.5",
44
"description": "Ableton Link, a technology that synchronizes musical beat, tempo, and phase across multiple applications running on one or more devices.",
55
"homepage": "https://www.ableton.com/en/link/",
66
"documentation": "http://ableton.github.io/link/",
@@ -33,10 +33,19 @@
3333
},
3434
"hut": {
3535
"description": "Build LinkHut command line tool",
36+
"supports": "!android",
3637
"dependencies": [
38+
{
39+
"name": "alsa",
40+
"platform": "linux | android | freebsd | openbsd"
41+
},
3742
{
3843
"name": "asiosdk",
3944
"platform": "windows"
45+
},
46+
{
47+
"name": "portaudio",
48+
"platform": "linux | android | freebsd | openbsd"
4049
}
4150
]
4251
},

ports/ableton/portfile.cmake

Lines changed: 0 additions & 1 deletion
This file was deleted.

ports/ableton/vcpkg.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

ports/ada-url/portfile.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ vcpkg_from_github(
66
OUT_SOURCE_PATH SOURCE_PATH
77
REPO ada-url/ada
88
REF "v${VERSION}"
9-
SHA512 728bf278fcac51a8ffdf5571cb486e789cd49511674c61e354c802bbfaeea64598fb22cd28ef4b02eacdd42c1c3437f40666ca8dba8097e0ecebbae1095de77f
9+
SHA512 49957af82afb06d36846351d61ad5d1705bf68efd072eb966f44ee67b4b0119c5b35da842092e2cea800d304a8ec6966d4170758fab04d7dbd375b4212ff08ea
1010
HEAD_REF main
1111
PATCHES
1212
no-cpm.patch

0 commit comments

Comments
 (0)