mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 01:57:58 +08:00
43 lines
1.2 KiB
CMake
43 lines
1.2 KiB
CMake
|
vcpkg_fail_port_install(ON_TARGET "UWP" "OSX" "Linux")
|
||
|
|
||
|
vcpkg_from_github(
|
||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||
|
REPO smoked-herring/sail
|
||
|
REF v0.9.0-pre10
|
||
|
SHA512 d38a3c7d33495c84d7ada91a4131d32ce61f3fdf32a7e0631b28e7d8492fa4cb672eea09ef8cf0272dabd57f640b090749e3ecd863be577af2b98763873dc57d
|
||
|
HEAD_REF master
|
||
|
)
|
||
|
|
||
|
vcpkg_configure_cmake(
|
||
|
SOURCE_PATH ${SOURCE_PATH}
|
||
|
PREFER_NINJA
|
||
|
OPTIONS
|
||
|
-DSAIL_VCPKG_PORT=ON
|
||
|
-DSAIL_BUILD_EXAMPLES=OFF
|
||
|
-DSAIL_BUILD_TESTS=OFF
|
||
|
)
|
||
|
|
||
|
vcpkg_install_cmake()
|
||
|
|
||
|
vcpkg_copy_pdbs()
|
||
|
|
||
|
# Remove duplicate files
|
||
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include
|
||
|
${CURRENT_PACKAGES_DIR}/debug/share)
|
||
|
|
||
|
# Move codecs
|
||
|
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/sail ${CURRENT_PACKAGES_DIR}/bin/sail)
|
||
|
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/sail ${CURRENT_PACKAGES_DIR}/debug/bin/sail)
|
||
|
|
||
|
# Move cmake configs
|
||
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/sail)
|
||
|
|
||
|
# Fix pkg-config files
|
||
|
vcpkg_fixup_pkgconfig()
|
||
|
|
||
|
# Handle usage
|
||
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
||
|
|
||
|
# Handle copyright
|
||
|
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|