[aubio] Add ws2_32 to linkage (#18385)

* [aubio] Add ws2_32 to linkage

* Update version files
This commit is contained in:
NancyLi1013 2021-06-16 01:27:52 +08:00 committed by GitHub
parent 16ecf1ba14
commit 315d0a1129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 6 deletions

View File

@ -55,6 +55,10 @@ if(WITH_DEPENDENCIES)
)
endif()
if(WIN32)
target_link_libraries(aubio PUBLIC ws2_32)
endif()
if(BUILD_TOOLS AND WITH_DEPENDENCIES)
set(EXAMPLE_EXECS aubiomfcc aubionotes aubioonset aubiopitch aubioquiet aubiotrack)
foreach(EXAMPLE_EXEC ${EXAMPLE_EXECS})
@ -62,6 +66,7 @@ if(BUILD_TOOLS AND WITH_DEPENDENCIES)
target_link_libraries(${EXAMPLE_EXEC} PRIVATE aubio)
if(WIN32)
target_compile_definitions(${EXAMPLE_EXEC} PRIVATE -DHAVE_WIN_HACKS=1)
target_link_libraries(${EXAMPLE_EXEC} PUBLIC ws2_32)
else()
target_compile_definitions(${EXAMPLE_EXEC} PRIVATE -DHAVE_UNISTD_H=1)
endif()

View File

@ -35,8 +35,8 @@ file(COPY
${SOURCE_PATH}/ChangeLog
${SOURCE_PATH}/README.md
DESTINATION
${CURRENT_PACKAGES_DIR}/share/aubio)
${CURRENT_PACKAGES_DIR}/share/${PORT})
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)
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/${PORT})
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/COPYING ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)

View File

@ -1,7 +1,7 @@
{
"name": "aubio",
"version-semver": "0.4.9",
"port-version": 5,
"port-version": 6,
"description": "Aubio is a tool designed for the extraction of annotations from audio signals. Its features include segmenting a sound file before each of its attacks, performing pitch detection, tapping the beat and producing midi streams from live audio.",
"homepage": "https://github.com/aubio/aubio",
"default-features": [

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "0abf18908332cd2ccfe8e298f8fd90c0db42dcd9",
"version-semver": "0.4.9",
"port-version": 6
},
{
"git-tree": "229c53eddabe48fa718f95c3dd3094a694770a19",
"version-semver": "0.4.9",

View File

@ -206,7 +206,7 @@
},
"aubio": {
"baseline": "0.4.9",
"port-version": 5
"port-version": 6
},
"audiofile": {
"baseline": "1.0.7",