mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 18:57:50 +08:00
bfe983d721
* [portaudio] Remove from baseline, fix CRT linkage and mark UWP as unsupported. portaudio was fixed by654adc64b3
* [chakracore] Remove passing case from baseline and add Supports. PASSING, REMOVE FROM FAIL LIST: chakracore:arm64-windows (.\scripts\ci.baseline.txt) * [gamma] Remove from baseline. PASSING, REMOVE FROM FAIL LIST: gamma:x64-linux (.\scripts\ci.baseline.txt) This was blocked by portaudio before. * [usrsctp] Remove baseline PASSING, REMOVE FROM FAIL LIST: usrsctp:arm-uwp (.\scripts\ci.baseline.txt) PASSING, REMOVE FROM FAIL LIST: usrsctp:x64-uwp (.\scripts\ci.baseline.txt) Probably fixed by16b68c2f35
* [libopenmpt] Fix build on recent msvc by backporting deaf2e3837fb08b1a53fd21bb53adbafe0a84e7ddeaf2e3837
* [chakracore] Also needs dynamic universe.
45 lines
1.5 KiB
CMake
45 lines
1.5 KiB
CMake
vcpkg_fail_port_install(ON_TARGET "uwp")
|
|
vcpkg_from_git(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
URL https://git.assembla.com/portaudio.git
|
|
REF c5d2c51bd6fe354d0ee1119ba932bfebd3ebfacc
|
|
PATCHES
|
|
fix-library-can-not-be-found.patch
|
|
fix-include.patch
|
|
)
|
|
|
|
string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} dynamic PA_BUILD_SHARED)
|
|
string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} static PA_BUILD_STATIC)
|
|
|
|
# NOTE: the ASIO backend will be built automatically if the ASIO-SDK is provided
|
|
# in a sibling folder of the portaudio source in vcpkg/buildtrees/portaudio/src
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DPA_USE_DS=ON
|
|
-DPA_USE_WASAPI=ON
|
|
-DPA_USE_WDMKS=ON
|
|
-DPA_USE_WMME=ON
|
|
-DPA_LIBNAME_ADD_SUFFIX=OFF
|
|
-DPA_BUILD_SHARED=${PA_BUILD_SHARED}
|
|
-DPA_BUILD_STATIC=${PA_BUILD_STATIC}
|
|
-DPA_DLL_LINK_WITH_STATIC_RUNTIME=OFF
|
|
OPTIONS_DEBUG
|
|
-DPA_ENABLE_DEBUG_OUTPUT:BOOL=ON
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
|
endif()
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|