2017-03-06 18:41:45 +08:00
|
|
|
include(vcpkg_common_functions)
|
2018-10-24 07:43:28 +08:00
|
|
|
|
2019-10-15 07:34:34 +08:00
|
|
|
vcpkg_from_git(
|
2018-10-24 07:43:28 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2019-10-15 07:34:34 +08:00
|
|
|
URL https://git.assembla.com/portaudio.git
|
|
|
|
REF c5d2c51bd6fe354d0ee1119ba932bfebd3ebfacc
|
2018-10-24 07:43:28 +08:00
|
|
|
)
|
2017-03-06 18:41:45 +08:00
|
|
|
|
2017-06-06 17:02:33 +08:00
|
|
|
# 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
|
2017-03-06 18:41:45 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2017-06-06 17:02:33 +08:00
|
|
|
OPTIONS
|
|
|
|
-DPA_USE_DS=ON
|
|
|
|
-DPA_USE_WASAPI=ON
|
|
|
|
-DPA_USE_WDMKS=ON
|
|
|
|
-DPA_USE_WMME=ON
|
2018-11-08 15:50:51 +08:00
|
|
|
-DPA_ENABLE_DEBUG_OUTPUT:BOOL=ON
|
2017-03-06 18:41:45 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
# Remove static builds from dynamic builds and otherwise
|
|
|
|
# Remove x86 and x64 from resulting files
|
[openexr,openimageio,suitesparse,theia] updates for non-win32 (#6371)
* [openexr,openimageio,suitesparse,theia] updates for non-win32
* [theia] use only valid cmake symbols
* [suitesparse] Fix build
* [lapack] still not properly integrating with other ports
* [lapack] intercept cmake module calls and substitute them with our defs
* [suitesparse,clapack] fixes for proper integration
* [ceres,clapack] bump CONTROL
* [suitesparse] remove unnecessary defs
* [clapack] improve wrapper logic
* [WIN32] remove wrong symbol
* [clapack] fix wrapper integration
* [Accelerate] use best framework when available
* [clapack] separate config from wrapper
* [clapack] fix paths and filenames
* [mlpack,armadillo,clapack] improve library handling
* [mlpack] remove unnecessary cmake option
* [clp,coinutils,osi,liblemon] dependencies of openmvg, improve compatibility with non-win32
* [openmvg] fix for case-sensitive filesystems
* [clp,coinutils,osi] simplify CMakeLists removing many unnecessary steps
* [sophus] Force rebuild
* [theia] fixes for linux, part1
* [io2d] remove broken sintax
* [fontconfig] bump version to remove CI cached failure
* [theia] fixes for linux, part2
* [theia] remove unnecessary empty folders and comments from portfile
* [theia] use correct build type removing forced vars in cmakelists.txt
* [openmvg] add missing suitesparse target detection
* [sophus] fix Suitesparse dependency
* [sophus,openmvg] use suitesparse lowercase for module compatibility on case-sensitive filesystems
* [suitesparse] fixes for case-sensitive filesystems
* [openmvg] use correct Eigen3 name for case-sensitive filesystems
* [sophus] trigger rebuild
* [shogun] use modern vcpkg style
* [shogun] add missing cmake system processor symbol
2019-06-01 06:48:17 +08:00
|
|
|
if (NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
2019-03-16 01:23:02 +08:00
|
|
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
|
|
|
file (REMOVE ${CURRENT_PACKAGES_DIR}/lib/portaudio_static_${VCPKG_TARGET_ARCHITECTURE}.lib)
|
|
|
|
file (REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/portaudio_static_${VCPKG_TARGET_ARCHITECTURE}.lib)
|
|
|
|
|
|
|
|
file (RENAME ${CURRENT_PACKAGES_DIR}/lib/portaudio_${VCPKG_TARGET_ARCHITECTURE}.lib ${CURRENT_PACKAGES_DIR}/lib/portaudio.lib)
|
|
|
|
file (RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/portaudio_${VCPKG_TARGET_ARCHITECTURE}.lib ${CURRENT_PACKAGES_DIR}/debug/lib/portaudio.lib)
|
|
|
|
else ()
|
|
|
|
file (RENAME ${CURRENT_PACKAGES_DIR}/lib/portaudio_static_${VCPKG_TARGET_ARCHITECTURE}.lib ${CURRENT_PACKAGES_DIR}/lib/portaudio.lib)
|
|
|
|
file (RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/portaudio_static_${VCPKG_TARGET_ARCHITECTURE}.lib ${CURRENT_PACKAGES_DIR}/debug/lib/portaudio.lib)
|
|
|
|
file (REMOVE ${CURRENT_PACKAGES_DIR}/lib/portaudio_${VCPKG_TARGET_ARCHITECTURE}.lib)
|
|
|
|
file (REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
|
|
|
file (REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/portaudio_${VCPKG_TARGET_ARCHITECTURE}.lib)
|
|
|
|
file (REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
|
|
|
|
endif ()
|
2017-03-06 18:41:45 +08:00
|
|
|
endif ()
|
2019-10-15 07:34:34 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
2018-11-07 10:26:01 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2017-03-06 18:41:45 +08:00
|
|
|
# Handle copyright
|
|
|
|
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/portaudio)
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/portaudio/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/portaudio/copyright)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2019-10-15 07:34:34 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|