mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 14:29:00 +08:00
33 lines
800 B
CMake
33 lines
800 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO FNA-XNA/faudio
|
|
REF "${VERSION}"
|
|
SHA512 275b5da657d3999b7b3d0915971eae3e1498135791c22df0e2337e0f060aa618517ffbfe1e2f004cb071cbb75c82a2376c120fdd4287260145c82084a619bb23
|
|
HEAD_REF master
|
|
)
|
|
|
|
set(options "")
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
list(APPEND options -DPLATFORM_WIN32=TRUE)
|
|
endif()
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
${options}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/FAudio)
|
|
|
|
vcpkg_install_copyright(
|
|
COMMENT "FAudio is licensed under the Zlib license."
|
|
FILE_LIST
|
|
"${SOURCE_PATH}/LICENSE"
|
|
)
|