mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 01:20:36 +08:00
b12243bd33
* Add Spout2 * Add Spout2 * Disable UWP * Fixup * Disable ARM64 * Disable ARM64 * Fix cmake config * Explain dx feature * Fix * vcpkg_check_features * FEATURE_OPTIONS * fixes * fixes * fixes * fixes * fixes * fixes
46 lines
1.3 KiB
CMake
46 lines
1.3 KiB
CMake
# vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO leadedge/Spout2
|
|
REF 9db0efadba16e1d884164d348f556922cfc80c50 #v2.007.009
|
|
SHA512 d45613590fb53155c90839cf6eb7fe646ef4ec463b6cd1624aff54870818f0bc4faccded78a6b2c089fa4e8756cf15c7e17def2ef32ac6c34144e562b58c5d8b
|
|
HEAD_REF master
|
|
)
|
|
|
|
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()
|