mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-31 05:03:22 +08:00
4cac260c4b
* Generate Imath.pc * update version * add dependency imath minizip-ng * updata version * update version * Fix the name of the dynamic library under win in the pc file * update version * Fix the name of the dynamic library under win in the pc file * update version
62 lines
1.7 KiB
CMake
62 lines
1.7 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO glfw/glfw
|
|
REF 7482de6071d21db77a7236155da44c172a7f6c9e #v3.3.8
|
|
SHA512 ec45b620338cf36a8dbdf7aaf54d7c3a49a1be4ae1a1ef95f1531094fec670870713969bbc23476769d374c7a71d93f6540ab64c46fb5f66f4402bb2d15c7d87
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix_win32_dllname.pacth #https://github.com/glfw/glfw/pull/2386
|
|
)
|
|
|
|
if(VCPKG_TARGET_IS_LINUX)
|
|
message(
|
|
"GLFW3 currently requires the following libraries from the system package manager:
|
|
xinerama
|
|
xcursor
|
|
xorg
|
|
libglu1-mesa
|
|
pkg-config
|
|
|
|
These can be installed on Ubuntu systems via sudo apt install libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev pkg-config
|
|
|
|
Alternatively, when targeting the Wayland display server, use the packages listed in the GLFW documentation here:
|
|
|
|
https://www.glfw.org/docs/3.3/compile.html#compile_deps_wayland")
|
|
else(VCPKG_TARGET_IS_OSX)
|
|
message(
|
|
"GLFW3 currently requires the following libraries from the system package manager:
|
|
xinerama
|
|
xcursor
|
|
xorg
|
|
libglu1-mesa
|
|
pkg-config
|
|
|
|
These can be installed via brew install libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev pkg-config")
|
|
endif()
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
wayland GLFW_USE_WAYLAND
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DGLFW_BUILD_EXAMPLES=OFF
|
|
-DGLFW_BUILD_TESTS=OFF
|
|
-DGLFW_BUILD_DOCS=OFF
|
|
${FEATURE_OPTIONS}
|
|
)
|
|
|
|
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()
|