mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-12 01:37:58 +08:00
27 lines
836 B
CMake
27 lines
836 B
CMake
|
vcpkg_from_github(
|
||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||
|
REPO munt/munt
|
||
|
REF libmt32emu_2_4_2
|
||
|
SHA512 6e567260bce4a7ba7f4696d08fde78a05402d8b3087d7720bf86cdbe8c6c392036ce4a5c0ec5951c547d2a98218145fa155d4730404e98ad2dcc573d3cca8da4
|
||
|
HEAD_REF master
|
||
|
)
|
||
|
|
||
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
|
||
|
|
||
|
vcpkg_configure_cmake(
|
||
|
SOURCE_PATH ${SOURCE_PATH}/mt32emu
|
||
|
PREFER_NINJA
|
||
|
OPTIONS
|
||
|
-Dlibmt32emu_SHARED:BOOL=${BUILD_SHARED}
|
||
|
)
|
||
|
|
||
|
vcpkg_install_cmake()
|
||
|
vcpkg_copy_pdbs()
|
||
|
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
|
||
|
|
||
|
|
||
|
file(INSTALL ${SOURCE_PATH}/mt32emu/COPYING.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|