mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 20:59:45 +08:00
1188a3fe9b
* [libsndfile] Update to 1.0.31 * update version Co-authored-by: Jonliu1993 <13720414433@163.com>
49 lines
1.3 KiB
CMake
49 lines
1.3 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO libsndfile/libsndfile
|
|
REF 1.0.31
|
|
SHA512 5767ced306f2d300aa2014d383c22f3ee9a4fe1ffb2c463405bc26209ede09a9cfb95e1c08256db36e986d2b30151c38dbe635a3cae0b7138d7de485e2084891
|
|
HEAD_REF master
|
|
)
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
|
vcpkg_find_acquire_program(PYTHON3)
|
|
endif()
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES external-libs ENABLE_EXTERNAL_LIBS
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DBUILD_EXAMPLES=OFF
|
|
-DBUILD_REGTEST=OFF
|
|
-DBUILD_TESTING=OFF
|
|
-DENABLE_BOW_DOCS=OFF
|
|
-DBUILD_PROGRAMS=OFF
|
|
-DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON
|
|
-DPYTHON_EXECUTABLE=${PYTHON3}
|
|
${FEATURE_OPTIONS}
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
if(WIN32 AND (NOT MINGW) AND (NOT CYGWIN))
|
|
set(CONFIG_PATH cmake)
|
|
else()
|
|
set(CONFIG_PATH lib/cmake/SndFile)
|
|
endif()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH ${CONFIG_PATH} TARGET_PATH share/SndFile)
|
|
vcpkg_fixup_pkgconfig(SYSTEM_LIBRARIES m)
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|