mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 11:10:24 +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 f74282a7df749f50026bb07309ca20fb12b098cc24b003f8b93f4f6868a3d6f4343d4bd06b947b17d9ec6c1d08f88e477da259397d745f9cc41321f7c5722448
|
|
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"
|
|
)
|