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
REF 3a21c880500eac21cdf79bef5b80f970a55ac6af
SHA512 a6b2f589d432015d3830027dee377350529bec9c339a8de24aa52bab5ca52b3e17e2163d3bd1a7d91f7a08c446ebfe86d64bbbbae5a23af831d2e0cb724f7418
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)