2016-10-15 02:02:46 +08:00
|
|
|
include(vcpkg_common_functions)
|
2017-07-28 11:08:28 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO xiph/ogg
|
2018-01-19 13:10:01 +08:00
|
|
|
REF v1.3.3
|
|
|
|
SHA512 0bd6095d647530d4cb1f509eb5e99965a25cc3dd9b8125b93abd6b248255c890cf20710154bdec40568478eb5c4cde724abfb2eff1f3a04e63acef0fbbc9799b
|
2017-07-28 11:08:28 +08:00
|
|
|
HEAD_REF master
|
2019-02-27 00:44:48 +08:00
|
|
|
PATCHES 0001-Install-CMake-package-config-module.patch
|
2017-07-28 11:08:28 +08:00
|
|
|
)
|
2016-10-15 02:02:46 +08:00
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
2017-07-28 11:08:28 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-08-16 00:17:20 +08:00
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON
|
2016-10-15 02:02:46 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2017-07-28 11:08:28 +08:00
|
|
|
|
2019-02-27 00:44:48 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Ogg TARGET_PATH share/Ogg)
|
|
|
|
|
2016-10-15 02:02:46 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2016-10-25 06:36:33 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
2017-07-28 11:08:28 +08:00
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libogg RENAME copyright)
|