Skip to content

Commit

Permalink
[wildmidi] Update to 0.4.6 and fix the usage (#43123)
Browse files Browse the repository at this point in the history
Co-authored-by: Monica <[email protected]>
  • Loading branch information
MonicaLiu0311 and Monica authored Jan 7, 2025
1 parent 1faad55 commit d1e9e31
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 5 deletions.
16 changes: 16 additions & 0 deletions ports/wildmidi/fix-include-path.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 73fc68c..4a606d6 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -90,6 +90,11 @@ IF (BUILD_SHARED_LIBS)
OUTPUT_NAME ${LIBRARY_DYN_NAME} CLEAN_DIRECT_OUTPUT 1
)

+ TARGET_INCLUDE_DIRECTORIES(libwildmidi INTERFACE
+ $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
+ $<INSTALL_INTERFACE:include>
+ )
+
IF (WIN32)
SET_TARGET_PROPERTIES(libwildmidi PROPERTIES
DEFINE_SYMBOL DLL_EXPORT
7 changes: 4 additions & 3 deletions ports/wildmidi/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Mindwerks/wildmidi
REF wildmidi-0.4.5
SHA512 0229914ecc60091b649b790a82ad5e755a2b9dfab7443fb3e3c19f4ae64b82817cafe74d78c27f05c68c3c8fb30092c96da732d27ff82fbd7dd7d577facc23d6
REF "wildmidi-${VERSION}"
SHA512 b7259578c1b334de13b49e27aef32ad43e41bc04f569601b765ecea789b8da536d07afdb581986b7c91de552db2a625b13d061e52a2c8c51652f3cf3d1a30000
HEAD_REF master
PATCHES fix-include-path.patch
)

if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
Expand All @@ -28,4 +29,4 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/man")

file(INSTALL "${SOURCE_PATH}/docs/license/LGPLv3.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/docs/license/LGPLv3.txt")
2 changes: 1 addition & 1 deletion ports/wildmidi/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wildmidi",
"version": "0.4.5",
"version": "0.4.6",
"description": "MIDI software synthesizer library.",
"homepage": "https://github.com/Mindwerks/wildmidi",
"license": "LGPL-3.0-only",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -9669,7 +9669,7 @@
"port-version": 0
},
"wildmidi": {
"baseline": "0.4.5",
"baseline": "0.4.6",
"port-version": 0
},
"wincrypt": {
Expand Down
5 changes: 5 additions & 0 deletions versions/w-/wildmidi.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "6125f3402595c56f9454a09af832cdd2aa379cc3",
"version": "0.4.6",
"port-version": 0
},
{
"git-tree": "a0da0fad8cf43fc4534ae5fc11060437582fa6b8",
"version": "0.4.5",
Expand Down

0 comments on commit d1e9e31

Please sign in to comment.