mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 01:19:00 +08:00
d98696de85
* re-trigger ci test * [kealib] Switch repo to github * [mongo-c-driver] Set icu as a feature * [monkeys-audio] Update version to 5.24 * [mongo-c-driver] Fix arm build * [mongo-c-driver] Re-generate patch * [mongo-c-driver] Remove key word PRIVATE in patch * [llvm] Remove default feature tools * [llvm] Add judgment to install tools * [llvm] Add more condition * [llvm] Fix clang cmake files when selecting feature tools * [halide] Fix build depends info in CONTROL * update baseline
69 lines
2.2 KiB
CMake
69 lines
2.2 KiB
CMake
vcpkg_fail_port_install(ON_TARGET "UWP" "OSX" "Linux")
|
|
|
|
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
|
|
|
|
set(MA_VERSION 524)
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "https://monkeysaudio.com/files/MAC_SDK_${MA_VERSION}.zip"
|
|
FILENAME "MAC_SDK_${MA_VERSION}.zip"
|
|
SHA512 799035463f16dc94439e14c6b4a3755fbcf67e924d1c4925e26bb8172ff77122cf3e347f84d7e470dbddde79430f590dbeb1f69d6419cd36633cc8c616ea04f8
|
|
)
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
ARCHIVE ${ARCHIVE}
|
|
NO_REMOVE_ONE_LEVEL
|
|
)
|
|
|
|
file(REMOVE_RECURSE
|
|
${SOURCE_PATH}/Shared/32
|
|
${SOURCE_PATH}/Shared/64
|
|
)
|
|
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
|
set(PLATFORM Win32)
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
|
set(PLATFORM x64)
|
|
else()
|
|
message(FATAL_ERROR "Unsupported architecture")
|
|
endif()
|
|
|
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
|
vcpkg_install_msbuild(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PROJECT_SUBPATH Source/Projects/VS2019/MACDll/MACDll.vcxproj
|
|
PLATFORM ${PLATFORM}
|
|
)
|
|
else()
|
|
vcpkg_install_msbuild(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PROJECT_SUBPATH Source/Projects/VS2019/MACLib/MACLib.vcxproj
|
|
PLATFORM ${PLATFORM}
|
|
)
|
|
endif()
|
|
|
|
if ("tools" IN_LIST FEATURES)
|
|
vcpkg_install_msbuild(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PROJECT_SUBPATH Source/Projects/VS2019/Console/Console.vcxproj
|
|
PLATFORM ${PLATFORM}
|
|
)
|
|
|
|
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_LIBRARY_LINKAGE STREQUAL dynamic)
|
|
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/MACLib.lib ${CURRENT_PACKAGES_DIR}/debug/lib/MACLib.lib)
|
|
endif()
|
|
|
|
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/include)
|
|
file(COPY ${SOURCE_PATH}/Shared/
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/include/monkeys-audio
|
|
FILES_MATCHING PATTERN "*.h")
|
|
file(REMOVE ${CURRENT_PACKAGES_DIR}/include/monkeys-audio/MACDll.h)
|
|
|
|
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/license DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) |