mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 02:48:58 +08:00
265bf361b6
* fix spout2 * fix spout2
49 lines
1.4 KiB
CMake
49 lines
1.4 KiB
CMake
# vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO leadedge/Spout2
|
|
REF 62362774c96547d63b502d7efd5cfbf138eb7570 #v2.007.010
|
|
SHA512 89d0dcec719c068e27c2f55605e4b45b32fe3a5e097c821b0aa45f4ee9284e63830bd741ac7bb1bff917190d9a51daa36b452580fc673c05767b7bfcbc9a494f
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-include-path.patch
|
|
fix-dx-keyed.patch
|
|
)
|
|
|
|
if(VCPKG_CRT_LINKAGE STREQUAL "static")
|
|
list(APPEND OPTIONS -DSPOUT_BUILD_CMT=ON)
|
|
else()
|
|
list(APPEND OPTIONS -DSPOUT_BUILD_CMT=OFF)
|
|
endif()
|
|
|
|
vcpkg_check_features(
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
dx SPOUT_BUILD_SPOUTDX
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DSKIP_INSTALL_ALL=OFF
|
|
${FEATURE_OPTIONS}
|
|
${OPTIONS}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
|
|
|
# Handle copyright & usage
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
# remove unneeded files
|
|
file(REMOVE_RECURSE
|
|
${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
endif()
|