2016-11-26 01:08:06 +08:00
|
|
|
include(vcpkg_common_functions)
|
2018-10-12 12:27:22 +08:00
|
|
|
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2016-11-26 01:08:06 +08:00
|
|
|
|
2017-07-28 10:25:07 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO KhronosGroup/glslang
|
2018-03-04 03:33:59 +08:00
|
|
|
REF b5b5f918c6b72d7cf2ee73641cc6c6ddb211ca70
|
|
|
|
SHA512 ec0f7a23fa60457a481c7b3acf4c127c3bf898d23655d346aeafb304f74e798d632c83d676873f2c764d241de6dc4392cff8d6ce0ee509a4b74ee2233b01c008
|
2017-07-28 10:25:07 +08:00
|
|
|
HEAD_REF master
|
2019-03-06 02:57:56 +08:00
|
|
|
PATCHES
|
|
|
|
CMakeLists-targets.patch
|
2017-07-28 10:25:07 +08:00
|
|
|
)
|
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
|
2019-03-06 02:57:56 +08:00
|
|
|
OPTIONS -DCMAKE_DEBUG_POSTFIX=d -DSKIP_GLSLANG_INSTALL=OFF
|
2016-11-26 01:08:06 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2019-03-16 12:39:46 +08:00
|
|
|
vcpkg_fixup_cmake_targets()
|
|
|
|
|
2017-09-06 03:58:53 +08:00
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/tools")
|
2019-03-16 12:39:46 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2017-09-06 03:58:53 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
|
2019-03-06 02:57:56 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2016-11-26 01:08:06 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/copyright DESTINATION ${CURRENT_PACKAGES_DIR}/share/glslang)
|
2019-03-06 02:57:56 +08:00
|
|
|
|
|
|
|
vcpkg_test_cmake(PACKAGE_NAME glslang)
|