mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 15:12:46 +08:00
37 lines
1.1 KiB
CMake
37 lines
1.1 KiB
CMake
include(vcpkg_common_functions)
|
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/aubio-3c230fae309e9ea3298783368dd71bae6172359a)
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO aubio/aubio
|
|
REF 0.4.6
|
|
SHA512 9bb787d81f39ab8e3440be9936552a712a24e009884818e13e80dde756ad3874055bcd931ca3af638122f6a0d0bc53e62e1abeedce3fd79af35fe9ddea6bc707
|
|
HEAD_REF master
|
|
)
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS_RELEASE
|
|
-DTOOLS_INSTALLDIR=tools/aubio
|
|
-DBUILD_TOOLS=ON
|
|
OPTIONS_DEBUG
|
|
-DDISABLE_INSTALL_HEADERS=1
|
|
-DBUILD_TOOLS=OFF
|
|
)
|
|
vcpkg_install_cmake()
|
|
|
|
# Handle copyright and credentials
|
|
file(COPY
|
|
${SOURCE_PATH}/COPYING
|
|
${SOURCE_PATH}/AUTHORS
|
|
${SOURCE_PATH}/ChangeLog
|
|
${SOURCE_PATH}/README.md
|
|
DESTINATION
|
|
${CURRENT_PACKAGES_DIR}/share/aubio)
|
|
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/aubio)
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/aubio/COPYING ${CURRENT_PACKAGES_DIR}/share/aubio/copyright)
|