mirror of https://github.com/microsoft/vcpkg.git
[libremidi] Disable pipewire, add test port (#46564)
This commit is contained in:
parent
aeac3fa8d3
commit
a620c9e62e
|
|
@ -19,9 +19,11 @@ vcpkg_cmake_configure(
|
|||
${options}
|
||||
-DLIBREMIDI_NO_BOOST=ON
|
||||
-DLIBREMIDI_NO_JACK=ON
|
||||
-DLIBREMIDI_NO_PIPEWIRE=ON
|
||||
)
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "libremidi",
|
||||
"version": "4.5.0",
|
||||
"port-version": 1,
|
||||
"port-version": 2,
|
||||
"description": "A modern C++ MIDI real-time & file I/O library",
|
||||
"homepage": "https://github.com/jcelerier/libremidi",
|
||||
"license": "BSD-2-Clause",
|
||||
|
|
@ -10,10 +10,6 @@
|
|||
"name": "alsa",
|
||||
"platform": "linux"
|
||||
},
|
||||
{
|
||||
"name": "readerwriterqueue",
|
||||
"platform": "linux"
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${CURRENT_PORT_DIR}/project"
|
||||
)
|
||||
vcpkg_cmake_build()
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
cmake_minimum_required(VERSION 3.30)
|
||||
project(libremidi-test CXX)
|
||||
|
||||
find_package(libremidi CONFIG REQUIRED)
|
||||
add_library(imported::libremidi ALIAS libremidi)
|
||||
|
||||
add_executable(main main.cpp)
|
||||
target_link_libraries(main PRIVATE imported::libremidi)
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
#include <libremidi/libremidi.hpp>
|
||||
#include <libremidi/backends.hpp>
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << "Default midi2 API: " << libremidi::get_api_display_name(libremidi::midi2::default_api()) << std::endl;
|
||||
libremidi::midi_any::for_all_backends([](auto& backend) {
|
||||
std::cout << "- " << backend.display_name << std::endl;
|
||||
});
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"name": "vcpkg-ci-libremidi",
|
||||
"version-string": "ci",
|
||||
"description": "Validates libremidi",
|
||||
"dependencies": [
|
||||
"libremidi",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -5286,7 +5286,7 @@
|
|||
},
|
||||
"libremidi": {
|
||||
"baseline": "4.5.0",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"libressl": {
|
||||
"baseline": "4.1.0",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "a5a10d57f2032120b80d4645366bc7290a4f149e",
|
||||
"version": "4.5.0",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "a9f7f74d1c8742a224f1bd79011ac5fee7a0247b",
|
||||
"version": "4.5.0",
|
||||
|
|
|
|||
Loading…
Reference in New Issue