mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 02:53:02 +08:00
parent
5a9b14c978
commit
55eeb17c66
@ -1,3 +1,3 @@
|
|||||||
Source: glew
|
Source: glew
|
||||||
Version: 2.1.0-1
|
Version: 2.1.0-2
|
||||||
Description: The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library.
|
Description: The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library.
|
||||||
|
@ -3,7 +3,7 @@ include(vcpkg_common_functions)
|
|||||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/glew/glew-2.1.0)
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/glew/glew-2.1.0)
|
||||||
|
|
||||||
# Don't change to vcpkg_from_github! The github-auto-generated archives are missing some files.
|
# Don't change to vcpkg_from_github! The github-auto-generated archives are missing some files.
|
||||||
# More info: https://github.com/nigels-com/glew/issues/31
|
# More info: https://github.com/nigels-com/glew/issues/31 and https://github.com/nigels-com/glew/issues/13
|
||||||
vcpkg_download_distfile(ARCHIVE_FILE
|
vcpkg_download_distfile(ARCHIVE_FILE
|
||||||
URLS "https://github.com/nigels-com/glew/releases/download/glew-2.1.0/glew-2.1.0.tgz"
|
URLS "https://github.com/nigels-com/glew/releases/download/glew-2.1.0/glew-2.1.0.tgz"
|
||||||
FILENAME "glew-2.1.0.tgz"
|
FILENAME "glew-2.1.0.tgz"
|
||||||
@ -13,7 +13,9 @@ vcpkg_extract_source_archive(${ARCHIVE_FILE} ${CURRENT_BUILDTREES_DIR}/src/glew)
|
|||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${SOURCE_PATH}/build/cmake
|
SOURCE_PATH ${SOURCE_PATH}/build/cmake
|
||||||
)
|
OPTIONS
|
||||||
|
-DBUILD_UTILS=OFF
|
||||||
|
)
|
||||||
|
|
||||||
vcpkg_install_cmake()
|
vcpkg_install_cmake()
|
||||||
|
|
||||||
@ -40,11 +42,6 @@ if(EXISTS ${CURRENT_PACKAGES_DIR}/debug/lib/libglew32d.lib)
|
|||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/libglew32d.lib ${CURRENT_PACKAGES_DIR}/debug/lib/glew32d.lib)
|
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/libglew32d.lib ${CURRENT_PACKAGES_DIR}/debug/lib/glew32d.lib)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/glewinfo.exe)
|
|
||||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/visualinfo.exe)
|
|
||||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/glewinfo.exe)
|
|
||||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/visualinfo.exe)
|
|
||||||
|
|
||||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
||||||
|
Loading…
Reference in New Issue
Block a user