Skip to content

Commit

Permalink
[glew] Do not build utilities (microsoft#5859)
Browse files Browse the repository at this point in the history
* [glew] Do not build utilities
  • Loading branch information
Sean Warren authored and Rastaban committed Mar 31, 2019
1 parent 5a9b14c commit 55eeb17
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
6 changes: 3 additions & 3 deletions ports/glew/CONTROL
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Source: glew
Version: 2.1.0-1
Description: The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library.
Source: glew
Version: 2.1.0-2
Description: The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library.
11 changes: 4 additions & 7 deletions ports/glew/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ include(vcpkg_common_functions)
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.
# 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
URLS "https://github.com/nigels-com/glew/releases/download/glew-2.1.0/glew-2.1.0.tgz"
FILENAME "glew-2.1.0.tgz"
Expand All @@ -13,7 +13,9 @@ vcpkg_extract_source_archive(${ARCHIVE_FILE} ${CURRENT_BUILDTREES_DIR}/src/glew)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}/build/cmake
)
OPTIONS
-DBUILD_UTILS=OFF
)

vcpkg_install_cmake()

Expand All @@ -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)
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")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
Expand Down

0 comments on commit 55eeb17

Please sign in to comment.