[vamp-sdk] install pkgconfig files (#23331)

* install pkgconfig files

* remove useless commands
This commit is contained in:
Mengna Li 2022-03-03 07:00:06 +08:00 committed by GitHub
parent ac392a1ed0
commit 188617d873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 6 deletions

View File

@ -81,6 +81,12 @@ target_link_libraries(vamp-hostsdk PUBLIC SndFile::sndfile)
target_link_libraries(vamp-sdk PUBLIC SndFile::sndfile)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/pkgconfig/vamp.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/pkgconfig/vamp.pc" @ONLY)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/pkgconfig/vamp-hostsdk.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/pkgconfig/vamp-hostsdk.pc" @ONLY)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/pkgconfig/vamp-sdk.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/pkgconfig/vamp-sdk.pc" @ONLY)
file(GLOB PKGCONFIG_FILES "${CMAKE_CURRENT_BINARY_DIR}/pkgconfig/*.pc")
install(FILES ${PKGCONFIG_FILES} DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
install(
TARGETS vamp-hostsdk vamp-sdk
RUNTIME DESTINATION bin

View File

@ -7,12 +7,13 @@ vcpkg_from_github(
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
vcpkg_configure_cmake(
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
)
vcpkg_install_cmake()
vcpkg_cmake_install()
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

View File

@ -2,11 +2,19 @@
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
"name": "vamp-sdk",
"version": "2.10",
"port-version": 1,
"port-version": 2,
"description": "Library for Vamp plugins",
"homepage": "https://www.vamp-plugins.org/develop.html",
"supports": "!uwp",
"dependencies": [
"libsndfile"
"libsndfile",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake",
"host": true
}
]
}

View File

@ -7198,7 +7198,7 @@
},
"vamp-sdk": {
"baseline": "2.10",
"port-version": 1
"port-version": 2
},
"variant-lite": {
"baseline": "2.0.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "9d2b2ab057b4e31d833668e82f95283c7afbc551",
"version": "2.10",
"port-version": 2
},
{
"git-tree": "1c71927e1997998f40a9d051d65ba4e5760f4257",
"version": "2.10",