vcpkg/ports/glslang/portfile.cmake

28 lines
866 B
CMake
Raw Normal View History

2016-11-26 01:08:06 +08:00
include(vcpkg_common_functions)
2017-07-28 10:25:07 +08:00
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
message(WARNING "Dynamic not supported. Building static")
set(VCPKG_LIBRARY_LINKAGE "static")
2016-11-26 01:08:06 +08:00
endif()
2017-07-28 10:25:07 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO KhronosGroup/glslang
2018-02-26 03:37:23 +08:00
REF 57f6a016f05b83f5f67d46e61771e8f69e0374db
SHA512 f855912cce4c13a42cebc973b3cb85f75d2f960c68a99dff8f768521d81130a031bc06624dde7d2a4c276c9d4e129c5655e74ab410ec20305e3204f3e1b319ce
2017-07-28 10:25:07 +08:00
HEAD_REF master
)
2016-11-26 01:08:06 +08:00
vcpkg_configure_cmake(
2017-07-28 10:25:07 +08:00
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
2016-11-26 01:08:06 +08:00
)
vcpkg_install_cmake()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(RENAME "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/tools")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
2016-11-26 01:08:06 +08:00
# Handle copyright
file(COPY ${CMAKE_CURRENT_LIST_DIR}/copyright DESTINATION ${CURRENT_PACKAGES_DIR}/share/glslang)