зеркало из https://github.com/microsoft/vcpkg.git
[wolf-midi] Add new port (#42160)
This commit is contained in:
Родитель
fc9a1789b4
Коммит
44204b98aa
|
@ -0,0 +1,25 @@
|
|||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO wolfgitpr/wolf-midi
|
||||
REF "${VERSION}"
|
||||
SHA512 6359707d2631bd2e6e3f2e34b6ca1da3718a312c09968323b1598e83085beae8417d0c8d465ce50550af6843c9c5f060f799ef6d5a78a013a08cfbaa84506cff
|
||||
HEAD_REF main
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" WOLF_MIDI_BUILD_STATIC)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DWOLF_MIDI_BUILD_STATIC=${WOLF_MIDI_BUILD_STATIC}
|
||||
-DWOLF_MIDI_BUILD_TESTS=FALSE
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
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")
|
||||
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
|
|
@ -0,0 +1,4 @@
|
|||
wolf-midi provides CMake targets:
|
||||
|
||||
find_package(wolf-midi CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE wolf-midi::wolf-midi)
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"name": "wolf-midi",
|
||||
"version": "1.0.1",
|
||||
"description": "A lightweight MIDI file read-write library.",
|
||||
"homepage": "https://github.com/wolfgitpr/wolf-midi",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
|
@ -9676,6 +9676,10 @@
|
|||
"baseline": "1.0.2",
|
||||
"port-version": 4
|
||||
},
|
||||
"wolf-midi": {
|
||||
"baseline": "1.0.1",
|
||||
"port-version": 0
|
||||
},
|
||||
"wolfmqtt": {
|
||||
"baseline": "1.19.0",
|
||||
"port-version": 0
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "29df2327bba3b60ffed9b02ef8ff967887771f02",
|
||||
"version": "1.0.1",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Загрузка…
Ссылка в новой задаче