mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-23 23:49:06 +08:00
[wolf-midi] Add new port (#42160)
This commit is contained in:
parent
fc9a1789b4
commit
44204b98aa
25
ports/wolf-midi/portfile.cmake
Normal file
25
ports/wolf-midi/portfile.cmake
Normal file
@ -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)
|
4
ports/wolf-midi/usage
Normal file
4
ports/wolf-midi/usage
Normal file
@ -0,0 +1,4 @@
|
||||
wolf-midi provides CMake targets:
|
||||
|
||||
find_package(wolf-midi CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE wolf-midi::wolf-midi)
|
17
ports/wolf-midi/vcpkg.json
Normal file
17
ports/wolf-midi/vcpkg.json
Normal file
@ -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
|
||||
|
9
versions/w-/wolf-midi.json
Normal file
9
versions/w-/wolf-midi.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "29df2327bba3b60ffed9b02ef8ff967887771f02",
|
||||
"version": "1.0.1",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user