From 6b9eda35583e2be9a5484b1fd6d54b50eb367b0f Mon Sep 17 00:00:00 2001 From: JoergAtGithub Date: Thu, 31 Oct 2024 11:15:11 +0100 Subject: [PATCH 1/7] New port vst3sdk --- ports/vst3sdk/portfile.cmake | 135 +++++++++++++++++++++++++++++++++++ ports/vst3sdk/vcpkg.json | 30 ++++++++ versions/baseline.json | 4 ++ versions/v-/vst3sdk.json | 14 ++++ 4 files changed, 183 insertions(+) create mode 100644 ports/vst3sdk/portfile.cmake create mode 100644 ports/vst3sdk/vcpkg.json create mode 100644 versions/v-/vst3sdk.json diff --git a/ports/vst3sdk/portfile.cmake b/ports/vst3sdk/portfile.cmake new file mode 100644 index 00000000000000..cbac9ab1fc13c5 --- /dev/null +++ b/ports/vst3sdk/portfile.cmake @@ -0,0 +1,135 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO steinbergmedia/vst3sdk + REF ${VERSION} + SHA512 0a0dc8d84a943ef06353cea748c8dd09e012f70f28ce56912c3e0038718dd2f353e142d4f39ea52979f3c08446a4ee0e8f0038c6d602207da8b0a22877e0c9f2 + HEAD_REF master +) + +#Submodules +vcpkg_from_github( + OUT_SOURCE_PATH BASE_SOURCE_PATH + REPO steinbergmedia/vst3_base + REF ${VERSION} + SHA512 84f7ce79674756bde0829ea12220d15b1f82bd68dea8214ae0430324ab55cfa224550b7afc7962686359bb267b971860977d1993f4de76789d79d41b397ece9d + HEAD_REF master +) +file(REMOVE_RECURSE "${SOURCE_PATH}/base") +file(RENAME "${BASE_SOURCE_PATH}" "${SOURCE_PATH}/base") + +vcpkg_from_github( + OUT_SOURCE_PATH CMAKE_SOURCE_PATH + REPO steinbergmedia/vst3_cmake + REF ${VERSION} + SHA512 4beac9436786f2d6fc73f67a0eac5f96fdfb515f79c4ce1ef6fe7f39cdfdd6d026d903d177bd58438dc5576f0d3124843c7eabb97737f91425105e28efa6e636 + HEAD_REF master +) +file(REMOVE_RECURSE "${SOURCE_PATH}/cmake") +file(RENAME "${CMAKE_SOURCE_PATH}" "${SOURCE_PATH}/cmake") + +vcpkg_from_github( + OUT_SOURCE_PATH DOC_SOURCE_PATH + REPO steinbergmedia/vst3_doc + REF ${VERSION} + SHA512 b6a99ddfa749abd547ac0a1ff37e00985b7df537b32534d6e9255733257b104bbd0643d69675bc1d9c69d248aba45694e559996cc7eac97f977faef0daf84352 + HEAD_REF master +) +file(REMOVE_RECURSE "${SOURCE_PATH}/doc") +file(RENAME "${DOC_SOURCE_PATH}" "${SOURCE_PATH}/doc") + +vcpkg_from_github( + OUT_SOURCE_PATH PLUGININTERFACES_SOURCE_PATH + REPO steinbergmedia/vst3_pluginterfaces + REF ${VERSION} + SHA512 f0007b3b5c917c0bc1f0fa4320d1800ee99a0cc445654e5d12b0e094f2ec20cffc9c9051d89fca917d59ac48313524f65fb7647ffe32eae95e50c3adc811a63f + HEAD_REF master +) +file(REMOVE_RECURSE "${SOURCE_PATH}/pluginterfaces") +file(RENAME "${PLUGININTERFACES_SOURCE_PATH}" "${SOURCE_PATH}/pluginterfaces") + +vcpkg_from_github( + OUT_SOURCE_PATH PUBLIC_SDK_SOURCE_PATH + REPO steinbergmedia/vst3_public_sdk + REF ${VERSION} + SHA512 695f2cf55bbabd57f466d0c6181c2b90314745f91f90c5b27db8617b3fe98c7a5f8675909bf5294371e3e90d10b9145ed8432e5ed16e09faa5b123740f73ba3f + HEAD_REF master +) +file(REMOVE_RECURSE "${SOURCE_PATH}/public.sdk") +file(RENAME "${PUBLIC_SDK_SOURCE_PATH}" "${SOURCE_PATH}/public.sdk") + +# Note that the submodules "vst3_tutorials" and "vstgui4" are standalone repos, which have own release cycles. +# Therefore these are not part of this port + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS +FEATURES + "plugin-examples" SMTG_ENABLE_VST3_PLUGIN_EXAMPLES + "hosting-examples" SMTG_ENABLE_VST3_HOSTING_EXAMPLES + "audiounit-wrapper" SMTG_ENABLE_AUV2_BUILDS +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS -DSMTG_ENABLE_VSTGUI_SUPPORT=OFF + -DSMTG_CREATE_PLUGIN_LINK=OFF + ${FEATURE_OPTIONS} +) + +vcpkg_build_cmake( + SOURCE_PATH "${SOURCE_PATH}" +) + +file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/lib/" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib/vst3sdk") +file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/lib/" DESTINATION "${CURRENT_PACKAGES_DIR}/lib/vst3sdk") + +file(INSTALL "${SOURCE_PATH}/base/source/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/vst3sdk/base/source/" FILES_MATCHING PATTERN "*.h") +file(INSTALL "${SOURCE_PATH}/pluginterfaces/base/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/vst3sdk/pluginterfaces/base/" FILES_MATCHING PATTERN "*.h") +file(INSTALL "${SOURCE_PATH}/pluginterfaces/gui/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/vst3sdk/pluginterfaces/gui/" FILES_MATCHING PATTERN "*.h") +file(INSTALL "${SOURCE_PATH}/pluginterfaces/vst/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/vst3sdk/pluginterfaces/vst/" FILES_MATCHING PATTERN "*.h") +file(INSTALL "${SOURCE_PATH}/public.sdk/source/vst/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/vst3sdk/public.sdk//source/vst/" FILES_MATCHING PATTERN "*.h") + +if (VCPKG_TARGET_IS_LINUX) + file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/bin/Debug/moduleinfotool" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") + file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/bin/Debug/validator" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") + else() + file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/bin/moduleinfotool${VCPKG_TARGET_EXECUTABLE_SUFFIX}" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") + file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/bin/validator${VCPKG_TARGET_EXECUTABLE_SUFFIX}" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") + endif() + +if ("plugin-examples" IN_LIST FEATURES) + file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/VST3" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +endif() + +if ("hosting-examples" IN_LIST FEATURES) +if (VCPKG_TARGET_IS_LINUX) + file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/bin/Debug/editorhost" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") + else() + file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/bin/editorhost${VCPKG_TARGET_EXECUTABLE_SUFFIX}" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") + endif() +endif() + +file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) + + +if (VCPKG_TARGET_IS_APPLE AND NOT "audiounit-wrapper" IN_LIST FEATURES) + file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/include/vst3sdk/public.sdk/source/vst/aaxwrapper/resource" + "${CURRENT_PACKAGES_DIR}/include/vst3sdk/public.sdk/source/vst/auv3wrapper/AUv3WrappermacOS" + "${CURRENT_PACKAGES_DIR}/include/vst3sdk/public.sdk/source/vst/auwrapper/config" + ) +else() + file(REMOVE_RECURSE + # Remove macOS AudioUnit wrapper + "${CURRENT_PACKAGES_DIR}/include/vst3sdk/public.sdk/source/vst/aaxwrapper/" + "${CURRENT_PACKAGES_DIR}/include/vst3sdk/public.sdk/source/vst/auv3wrapper/" + "${CURRENT_PACKAGES_DIR}/include/vst3sdk/public.sdk/source/vst/auwrapper/" + ) +endif() + +# Remove other empty directories +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/include/vst3sdk/public.sdk/source/vst/hosting/test" + "${CURRENT_PACKAGES_DIR}/include/vst3sdk/public.sdk/source/vst/utility/test" +) + +# Suppress CRT linkage check +set(VCPKG_POLICY_SKIP_CRT_LINKAGE_CHECK enabled) \ No newline at end of file diff --git a/ports/vst3sdk/vcpkg.json b/ports/vst3sdk/vcpkg.json new file mode 100644 index 00000000000000..3d18c03aad1796 --- /dev/null +++ b/ports/vst3sdk/vcpkg.json @@ -0,0 +1,30 @@ +{ + "name": "vst3sdk", + "version-string": "v3.7.12_build_20", + "description": "Virtual Studio Technology (VST) is an audio plug-in software interface that facilitates the integration of software synthesizers and effects in digital audio workstations (DAW)", + "homepage": "https://steinbergmedia.github.io/vst3_dev_portal/pages/Technical+Documentation/API+Documentation/Index.html", + "license": "GPL-3.0-only", + "supports": "!android & !uwp & !(arm64 & windows) & !osx", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "audiounit-wrapper": { + "description": "Include AudioUnit wrappers for macOS", + "supports": "osx" + }, + "hosting-examples": { + "description": "Build examples for VST3 host applications" + }, + "plugin-examples": { + "description": "Build examples for VST3 plugins" + } + } +} diff --git a/versions/baseline.json b/versions/baseline.json index 9c3339178e157a..498ace4fb5fa6b 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -9448,6 +9448,10 @@ "baseline": "1.0.5", "port-version": 1 }, + "vst3sdk": { + "baseline": "v3.7.12_build_20", + "port-version": 0 + }, "vtk": { "baseline": "9.3.0-pv5.12.1", "port-version": 5 diff --git a/versions/v-/vst3sdk.json b/versions/v-/vst3sdk.json new file mode 100644 index 00000000000000..9d72e3d660974b --- /dev/null +++ b/versions/v-/vst3sdk.json @@ -0,0 +1,14 @@ +{ + "versions": [ + { + "git-tree": "e18baacdfb22bbf62a1c758c87e5b3cbf3e2394c", + "version-string": "v3.7.12_build_20", + "port-version": 0 + }, + { + "git-tree": "060f1781b84540bba8f47edeaaa1979e544aad15", + "version": "3.7.12", + "port-version": 0 + } + ] +} From 99c74c0d22d4371f1de34cdefccab1e06ed421b3 Mon Sep 17 00:00:00 2001 From: JoergAtGithub Date: Sat, 2 Nov 2024 11:09:23 +0100 Subject: [PATCH 2/7] Formating and code style suggestions --- ports/vst3sdk/portfile.cmake | 29 ++++++++++++++--------------- versions/v-/vst3sdk.json | 2 +- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/ports/vst3sdk/portfile.cmake b/ports/vst3sdk/portfile.cmake index cbac9ab1fc13c5..acdbeee8f5fdb9 100644 --- a/ports/vst3sdk/portfile.cmake +++ b/ports/vst3sdk/portfile.cmake @@ -61,22 +61,21 @@ file(RENAME "${PUBLIC_SDK_SOURCE_PATH}" "${SOURCE_PATH}/public.sdk") # Therefore these are not part of this port vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS -FEATURES - "plugin-examples" SMTG_ENABLE_VST3_PLUGIN_EXAMPLES - "hosting-examples" SMTG_ENABLE_VST3_HOSTING_EXAMPLES - "audiounit-wrapper" SMTG_ENABLE_AUV2_BUILDS + FEATURES + "plugin-examples" SMTG_ENABLE_VST3_PLUGIN_EXAMPLES + "hosting-examples" SMTG_ENABLE_VST3_HOSTING_EXAMPLES + "audiounit-wrapper" SMTG_ENABLE_AUV2_BUILDS ) vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" - OPTIONS -DSMTG_ENABLE_VSTGUI_SUPPORT=OFF - -DSMTG_CREATE_PLUGIN_LINK=OFF - ${FEATURE_OPTIONS} + OPTIONS + -DSMTG_ENABLE_VSTGUI_SUPPORT=OFF + -DSMTG_CREATE_PLUGIN_LINK=OFF + ${FEATURE_OPTIONS} ) -vcpkg_build_cmake( - SOURCE_PATH "${SOURCE_PATH}" -) +vcpkg_build_cmake() file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/lib/" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib/vst3sdk") file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/lib/" DESTINATION "${CURRENT_PACKAGES_DIR}/lib/vst3sdk") @@ -117,12 +116,12 @@ if (VCPKG_TARGET_IS_APPLE AND NOT "audiounit-wrapper" IN_LIST FEATURES) "${CURRENT_PACKAGES_DIR}/include/vst3sdk/public.sdk/source/vst/auwrapper/config" ) else() - file(REMOVE_RECURSE + file(REMOVE_RECURSE # Remove macOS AudioUnit wrapper - "${CURRENT_PACKAGES_DIR}/include/vst3sdk/public.sdk/source/vst/aaxwrapper/" - "${CURRENT_PACKAGES_DIR}/include/vst3sdk/public.sdk/source/vst/auv3wrapper/" - "${CURRENT_PACKAGES_DIR}/include/vst3sdk/public.sdk/source/vst/auwrapper/" - ) + "${CURRENT_PACKAGES_DIR}/include/vst3sdk/public.sdk/source/vst/aaxwrapper/" + "${CURRENT_PACKAGES_DIR}/include/vst3sdk/public.sdk/source/vst/auv3wrapper/" + "${CURRENT_PACKAGES_DIR}/include/vst3sdk/public.sdk/source/vst/auwrapper/" + ) endif() # Remove other empty directories diff --git a/versions/v-/vst3sdk.json b/versions/v-/vst3sdk.json index 9d72e3d660974b..ca508c3dfd2d86 100644 --- a/versions/v-/vst3sdk.json +++ b/versions/v-/vst3sdk.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "e18baacdfb22bbf62a1c758c87e5b3cbf3e2394c", + "git-tree": "8eb78d0e00a30feb495416ae5f4022fb0f3f9225", "version-string": "v3.7.12_build_20", "port-version": 0 }, From 491b2fe9bcc8e7432ef7a9e932ef328bef476ff3 Mon Sep 17 00:00:00 2001 From: JoergAtGithub Date: Sat, 2 Nov 2024 11:25:21 +0100 Subject: [PATCH 3/7] Add osx as supported by the port, but set `arm64-osx` and `x64-osx` as failing in CI baseline --- ports/vst3sdk/vcpkg.json | 2 +- scripts/ci.baseline.txt | 3 +++ versions/v-/vst3sdk.json | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ports/vst3sdk/vcpkg.json b/ports/vst3sdk/vcpkg.json index 3d18c03aad1796..a5c36be1f19f14 100644 --- a/ports/vst3sdk/vcpkg.json +++ b/ports/vst3sdk/vcpkg.json @@ -4,7 +4,7 @@ "description": "Virtual Studio Technology (VST) is an audio plug-in software interface that facilitates the integration of software synthesizers and effects in digital audio workstations (DAW)", "homepage": "https://steinbergmedia.github.io/vst3_dev_portal/pages/Technical+Documentation/API+Documentation/Index.html", "license": "GPL-3.0-only", - "supports": "!android & !uwp & !(arm64 & windows) & !osx", + "supports": "!android & !uwp & !(arm64 & windows)", "dependencies": [ { "name": "vcpkg-cmake", diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index 59fbc141deb3fc..50b8e87f3581b9 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -1165,6 +1165,9 @@ v8:x86-windows=fail vowpal-wabbit:arm-neon-android=fail vowpal-wabbit:arm64-android=fail vowpal-wabbit:x64-android=fail +# vst3sdk CMake files work only with the GUI version of Xcode +vst3sdk:arm64-osx=fail +vst3sdk:x64-osx=fail vtk-m:arm-neon-android=fail vtk-m:arm64-android=fail vtk-m:x64-android=fail diff --git a/versions/v-/vst3sdk.json b/versions/v-/vst3sdk.json index ca508c3dfd2d86..d4d4b5bcb4b5ed 100644 --- a/versions/v-/vst3sdk.json +++ b/versions/v-/vst3sdk.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "8eb78d0e00a30feb495416ae5f4022fb0f3f9225", + "git-tree": "b0dd3c9776f07c517858092509aefc769dc791ea", "version-string": "v3.7.12_build_20", "port-version": 0 }, From aba2edea3b3e864dd81591823c140f54bcc35f22 Mon Sep 17 00:00:00 2001 From: JoergAtGithub Date: Sat, 2 Nov 2024 11:54:15 +0100 Subject: [PATCH 4/7] Use vcpkg_cmake_build() instead of vcpkg_build_cmake() --- ports/vst3sdk/portfile.cmake | 2 +- versions/v-/vst3sdk.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/vst3sdk/portfile.cmake b/ports/vst3sdk/portfile.cmake index acdbeee8f5fdb9..4dfd096314e485 100644 --- a/ports/vst3sdk/portfile.cmake +++ b/ports/vst3sdk/portfile.cmake @@ -75,7 +75,7 @@ vcpkg_cmake_configure( ${FEATURE_OPTIONS} ) -vcpkg_build_cmake() +vcpkg_cmake_build() file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/lib/" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib/vst3sdk") file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/lib/" DESTINATION "${CURRENT_PACKAGES_DIR}/lib/vst3sdk") diff --git a/versions/v-/vst3sdk.json b/versions/v-/vst3sdk.json index d4d4b5bcb4b5ed..5e435b79d5b6de 100644 --- a/versions/v-/vst3sdk.json +++ b/versions/v-/vst3sdk.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "b0dd3c9776f07c517858092509aefc769dc791ea", + "git-tree": "600ed441266d9a9efb240aeb1474a42f218fc44f", "version-string": "v3.7.12_build_20", "port-version": 0 }, From d506c283d7497a6b8b02db4f9bad0d6392fe4f48 Mon Sep 17 00:00:00 2001 From: JoergAtGithub Date: Mon, 4 Nov 2024 18:48:40 +0100 Subject: [PATCH 5/7] Added missing empty line at portfile end Removed accidental added version entry "3.7.12" from vst3sdk.json. --- ports/vst3sdk/portfile.cmake | 2 +- versions/v-/vst3sdk.json | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/ports/vst3sdk/portfile.cmake b/ports/vst3sdk/portfile.cmake index 4dfd096314e485..376a85c361abb3 100644 --- a/ports/vst3sdk/portfile.cmake +++ b/ports/vst3sdk/portfile.cmake @@ -131,4 +131,4 @@ file(REMOVE_RECURSE ) # Suppress CRT linkage check -set(VCPKG_POLICY_SKIP_CRT_LINKAGE_CHECK enabled) \ No newline at end of file +set(VCPKG_POLICY_SKIP_CRT_LINKAGE_CHECK enabled) diff --git a/versions/v-/vst3sdk.json b/versions/v-/vst3sdk.json index 5e435b79d5b6de..4ca3895ee5cfee 100644 --- a/versions/v-/vst3sdk.json +++ b/versions/v-/vst3sdk.json @@ -1,14 +1,9 @@ { "versions": [ { - "git-tree": "600ed441266d9a9efb240aeb1474a42f218fc44f", + "git-tree": "a21a0f320013af1408b8a99334a8737b819bf35a", "version-string": "v3.7.12_build_20", "port-version": 0 - }, - { - "git-tree": "060f1781b84540bba8f47edeaaa1979e544aad15", - "version": "3.7.12", - "port-version": 0 } ] } From 346df4384b3439538c7ae1a91dbec9df5fd9c840 Mon Sep 17 00:00:00 2001 From: JoergAtGithub Date: Mon, 11 Nov 2024 18:58:22 +0100 Subject: [PATCH 6/7] Use vcpkg_install_copyright Use executables from release build, to support release-only community triplets Fixed if/else/endif indention --- ports/vst3sdk/portfile.cmake | 28 +++++++++++++++------------- versions/v-/vst3sdk.json | 2 +- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/ports/vst3sdk/portfile.cmake b/ports/vst3sdk/portfile.cmake index 376a85c361abb3..79cbd653d9e71c 100644 --- a/ports/vst3sdk/portfile.cmake +++ b/ports/vst3sdk/portfile.cmake @@ -77,7 +77,9 @@ vcpkg_cmake_configure( vcpkg_cmake_build() -file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/lib/" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib/vst3sdk") +if (NOT VCPKG_BUILD_TYPE STREQUAL "release") + file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/lib/" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib/vst3sdk") +endif() file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/lib/" DESTINATION "${CURRENT_PACKAGES_DIR}/lib/vst3sdk") file(INSTALL "${SOURCE_PATH}/base/source/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/vst3sdk/base/source/" FILES_MATCHING PATTERN "*.h") @@ -87,26 +89,26 @@ file(INSTALL "${SOURCE_PATH}/pluginterfaces/vst/" DESTINATION "${CURRENT_PACKAGE file(INSTALL "${SOURCE_PATH}/public.sdk/source/vst/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/vst3sdk/public.sdk//source/vst/" FILES_MATCHING PATTERN "*.h") if (VCPKG_TARGET_IS_LINUX) - file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/bin/Debug/moduleinfotool" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") - file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/bin/Debug/validator" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") - else() - file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/bin/moduleinfotool${VCPKG_TARGET_EXECUTABLE_SUFFIX}" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") - file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/bin/validator${VCPKG_TARGET_EXECUTABLE_SUFFIX}" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") - endif() + file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bin/Release/moduleinfotool" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") + file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bin/Release/validator" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +else() + file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bin/moduleinfotool${VCPKG_TARGET_EXECUTABLE_SUFFIX}" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") + file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bin/validator${VCPKG_TARGET_EXECUTABLE_SUFFIX}" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +endif() if ("plugin-examples" IN_LIST FEATURES) - file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/VST3" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") + file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/VST3" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") endif() if ("hosting-examples" IN_LIST FEATURES) -if (VCPKG_TARGET_IS_LINUX) - file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/bin/Debug/editorhost" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") - else() - file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/bin/editorhost${VCPKG_TARGET_EXECUTABLE_SUFFIX}" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") + if (VCPKG_TARGET_IS_LINUX) + file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bin/Release/editorhost" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") + else() + file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bin/editorhost${VCPKG_TARGET_EXECUTABLE_SUFFIX}" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") endif() endif() -file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") if (VCPKG_TARGET_IS_APPLE AND NOT "audiounit-wrapper" IN_LIST FEATURES) diff --git a/versions/v-/vst3sdk.json b/versions/v-/vst3sdk.json index 4ca3895ee5cfee..e631a29189b891 100644 --- a/versions/v-/vst3sdk.json +++ b/versions/v-/vst3sdk.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "a21a0f320013af1408b8a99334a8737b819bf35a", + "git-tree": "1c1a3be51174e3ea739244ee020eec6304dd50a2", "version-string": "v3.7.12_build_20", "port-version": 0 } From 0dfecb7523537c28df384ec9101c62f712afabe6 Mon Sep 17 00:00:00 2001 From: JoergAtGithub Date: Tue, 12 Nov 2024 08:27:15 +0100 Subject: [PATCH 7/7] Removed VCPKG_POLICY_SKIP_CRT_LINKAGE_CHECK and removed staticcrt triplets from suported list --- ports/vst3sdk/portfile.cmake | 3 --- ports/vst3sdk/vcpkg.json | 2 +- versions/v-/vst3sdk.json | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/ports/vst3sdk/portfile.cmake b/ports/vst3sdk/portfile.cmake index 79cbd653d9e71c..0c3c1315aaf040 100644 --- a/ports/vst3sdk/portfile.cmake +++ b/ports/vst3sdk/portfile.cmake @@ -131,6 +131,3 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/vst3sdk/public.sdk/source/vst/hosting/test" "${CURRENT_PACKAGES_DIR}/include/vst3sdk/public.sdk/source/vst/utility/test" ) - -# Suppress CRT linkage check -set(VCPKG_POLICY_SKIP_CRT_LINKAGE_CHECK enabled) diff --git a/ports/vst3sdk/vcpkg.json b/ports/vst3sdk/vcpkg.json index a5c36be1f19f14..53655f8124300f 100644 --- a/ports/vst3sdk/vcpkg.json +++ b/ports/vst3sdk/vcpkg.json @@ -4,7 +4,7 @@ "description": "Virtual Studio Technology (VST) is an audio plug-in software interface that facilitates the integration of software synthesizers and effects in digital audio workstations (DAW)", "homepage": "https://steinbergmedia.github.io/vst3_dev_portal/pages/Technical+Documentation/API+Documentation/Index.html", "license": "GPL-3.0-only", - "supports": "!android & !uwp & !(arm64 & windows)", + "supports": "!android & !uwp & !(arm64 & windows) & !staticcrt", "dependencies": [ { "name": "vcpkg-cmake", diff --git a/versions/v-/vst3sdk.json b/versions/v-/vst3sdk.json index e631a29189b891..9b15752212f132 100644 --- a/versions/v-/vst3sdk.json +++ b/versions/v-/vst3sdk.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "1c1a3be51174e3ea739244ee020eec6304dd50a2", + "git-tree": "cf72d3790530ab523bbc5065c83e5a0852d13314", "version-string": "v3.7.12_build_20", "port-version": 0 }