mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 04:43:02 +08:00
[monkeys-audio] msbuild (#33169)
* monkeys-audio msbuild * v db * patch out dir * v db
This commit is contained in:
parent
2bfd2b07e6
commit
5ac6f3b37a
18
ports/monkeys-audio/fix-outdir.patch
Normal file
18
ports/monkeys-audio/fix-outdir.patch
Normal file
@ -0,0 +1,18 @@
|
||||
diff --git a/Source/Projects/VS2022/MACDll/MACDll.vcxproj b/Source/Projects/VS2022/MACDll/MACDll.vcxproj
|
||||
index f5b20e8eb..d9fd63c20 100644
|
||||
--- a/Source/Projects/VS2022/MACDll/MACDll.vcxproj
|
||||
+++ b/Source/Projects/VS2022/MACDll/MACDll.vcxproj
|
||||
@@ -150,10 +150,10 @@
|
||||
<_ProjectFileVersion>11.0.50727.1</_ProjectFileVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
- <OutDir>C:\Applications\Winamp\plugins\</OutDir>
|
||||
- <IntDir>$(Configuration)\</IntDir>
|
||||
+ <OutDir>$(Platform)\$(Configuration)\</OutDir>
|
||||
+ <IntDir>$(Platform)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
- <TargetName>in_APE</TargetName>
|
||||
+ <TargetName>MACDll</TargetName>
|
||||
<TargetExt>.dll</TargetExt>
|
||||
<EnableClangTidyCodeAnalysis>true</EnableClangTidyCodeAnalysis>
|
||||
<ClangTidyChecks>-clang-diagnostic-c++98-compat,-clang-diagnostic-zero-as-null-pointer-constant,-clang-diagnostic-language-extension-token,-clang-diagnostic-global-constructors,-clang-diagnostic-exit-time-destructors</ClangTidyChecks>
|
@ -14,6 +14,7 @@ vcpkg_extract_source_archive(
|
||||
NO_REMOVE_ONE_LEVEL
|
||||
PATCHES
|
||||
remove-certificate-step.patch
|
||||
fix-outdir.patch
|
||||
)
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
@ -49,13 +50,15 @@ foreach(VCXPROJ IN ITEMS
|
||||
endforeach()
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
vcpkg_install_msbuild(
|
||||
list(APPEND VCPKG_C_FLAGS "-D_AFXDLL")
|
||||
list(APPEND VCPKG_CXX_FLAGS "-D_AFXDLL")
|
||||
vcpkg_msbuild_install(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
PROJECT_SUBPATH "Source/Projects/VS2022/MACDll/MACDll.vcxproj"
|
||||
PLATFORM ${PLATFORM}
|
||||
)
|
||||
else()
|
||||
vcpkg_install_msbuild(
|
||||
vcpkg_msbuild_install(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
PROJECT_SUBPATH "Source/Projects/VS2022/MACLib/MACLib.vcxproj"
|
||||
PLATFORM ${PLATFORM}
|
||||
@ -63,7 +66,7 @@ else()
|
||||
endif()
|
||||
|
||||
if ("tools" IN_LIST FEATURES)
|
||||
vcpkg_install_msbuild(
|
||||
vcpkg_msbuild_install(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
PROJECT_SUBPATH "Source/Projects/VS2022/Console/Console.vcxproj"
|
||||
PLATFORM ${PLATFORM}
|
||||
@ -71,17 +74,11 @@ if ("tools" IN_LIST FEATURES)
|
||||
|
||||
file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/Console.lib" "${CURRENT_PACKAGES_DIR}/debug/lib/Console.lib")
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/tools/monkeys-audio/Console.exe" "${CURRENT_PACKAGES_DIR}/tools/monkeys-audio/mac.exe")
|
||||
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
||||
endif()
|
||||
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
||||
file(COPY "${CURRENT_PACKAGES_DIR}/bin/MACDll.dll" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin")
|
||||
file(COPY "${CURRENT_PACKAGES_DIR}/lib/MACDll.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
|
||||
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
||||
file(COPY "${CURRENT_PACKAGES_DIR}/bin/MACDll64.dll" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin")
|
||||
file(COPY "${CURRENT_PACKAGES_DIR}/lib/MACDll64.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
|
||||
endif()
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
set(VCPKG_POLICY_DLLS_WITHOUT_LIBS enabled)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib" "${CURRENT_PACKAGES_DIR}/lib")
|
||||
file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/MACLib.lib" "${CURRENT_PACKAGES_DIR}/debug/lib/MACLib.lib")
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "monkeys-audio",
|
||||
"version-string": "10.08",
|
||||
"port-version": 1,
|
||||
"description": [
|
||||
"Monkey's Audio is an excellent audio compression tool which has multiple advantages over traditional methods.",
|
||||
"Audio files compressed with it end with .ape extension."
|
||||
@ -8,6 +9,13 @@
|
||||
"homepage": "https://monkeysaudio.com",
|
||||
"license": null,
|
||||
"supports": "!(uwp | osx | linux)",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-msbuild",
|
||||
"host": true,
|
||||
"platform": "windows"
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"tools": {
|
||||
"description": "Build monkeys-audio tools"
|
||||
|
@ -5442,7 +5442,7 @@
|
||||
},
|
||||
"monkeys-audio": {
|
||||
"baseline": "10.08",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"moos-core": {
|
||||
"baseline": "10.4.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "9334281a45f4a9a85f9a3fac1fac959b00201bab",
|
||||
"version-string": "10.08",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "55e5b52ffc64a4b2604fa01522d8ebbe53accf56",
|
||||
"version-string": "10.08",
|
||||
|
Loading…
Reference in New Issue
Block a user