mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-03 21:09:00 +08:00
8a8eb71941
* bump glfw version and convert to json format. * update versions * Update ports/glfw3/vcpkg.json Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * update git refs Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>
40 lines
1022 B
CMake
40 lines
1022 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO glfw/glfw
|
|
REF 3.3.3
|
|
SHA512 6d743d89d159bff6c4f7fa3fc5bc407fd728bdc432d76acc4897fd392580be272f8a9d1d7c375c4323e82bf2fd28310e5daab097fef33e8f43b69ce104f9bd31
|
|
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_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DGLFW_BUILD_EXAMPLES=OFF
|
|
-DGLFW_BUILD_TESTS=OFF
|
|
-DGLFW_BUILD_DOCS=OFF
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(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()
|