mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 02:19:41 +08:00
ad0240d482
* Update glfw3 to 3.3.5 * Update CI baseline Co-authored-by: chausner <chausner@users.noreply.github.com>
39 lines
1012 B
CMake
39 lines
1012 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO glfw/glfw
|
|
REF 3.3.5
|
|
SHA512 cbb8ebf25d3d826eb1daeff3ad2e0e965ce9def3352955f297743d918f625d96bc05bf87c90f7b57ec53376a0f2f6ce62f80b57fac4e81e023400de275e97beb
|
|
HEAD_REF master
|
|
)
|
|
|
|
if(VCPKG_TARGET_IS_LINUX)
|
|
message(
|
|
"GLFW3 currently requires the following libraries from the system package manager:
|
|
xinerama
|
|
xcursor
|
|
xorg
|
|
libglu1-mesa
|
|
|
|
These can be installed on Ubuntu systems via sudo apt install libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev")
|
|
endif()
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DGLFW_BUILD_EXAMPLES=OFF
|
|
-DGLFW_BUILD_TESTS=OFF
|
|
-DGLFW_BUILD_DOCS=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/glfw3)
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
vcpkg_copy_pdbs()
|