2018-11-07 09:50:54 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO glfw/glfw
|
2021-05-18 15:42:12 +08:00
|
|
|
REF 814b7929c5add4b0541ccad26fb81f28b71dc4d8 #v3.3.4
|
|
|
|
SHA512 8e34d011ab49940b405998312af4807e4c9837a44d95d873cb3723e7c141da6a10c1dfaf1652f03b31b911f0ae4515ded52cac02844435dc374b93d376921e43
|
2018-11-07 09:50:54 +08:00
|
|
|
HEAD_REF master
|
2016-09-19 11:50:08 +08:00
|
|
|
)
|
|
|
|
|
2020-01-15 02:12:05 +08:00
|
|
|
if(VCPKG_TARGET_IS_LINUX)
|
2018-11-07 09:50:54 +08:00
|
|
|
message(
|
|
|
|
"GLFW3 currently requires the following libraries from the system package manager:
|
|
|
|
xinerama
|
|
|
|
xcursor
|
2019-08-26 11:31:55 +08:00
|
|
|
xorg
|
|
|
|
libglu1-mesa
|
2016-09-19 11:50:08 +08:00
|
|
|
|
2019-08-26 11:31:55 +08:00
|
|
|
These can be installed on Ubuntu systems via sudo apt install libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev")
|
2018-11-07 09:50:54 +08:00
|
|
|
endif()
|
2017-03-31 12:52:18 +08:00
|
|
|
|
2016-09-19 11:50:08 +08:00
|
|
|
vcpkg_configure_cmake(
|
2016-09-29 08:05:56 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-08-01 04:01:02 +08:00
|
|
|
PREFER_NINJA
|
2016-09-19 11:50:08 +08:00
|
|
|
OPTIONS
|
|
|
|
-DGLFW_BUILD_EXAMPLES=OFF
|
|
|
|
-DGLFW_BUILD_TESTS=OFF
|
|
|
|
-DGLFW_BUILD_DOCS=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2018-11-07 09:50:54 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/glfw3)
|
2016-09-19 11:50:08 +08:00
|
|
|
|
2021-02-11 15:55:18 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2016-09-19 11:50:08 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
2019-10-08 01:35:13 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
2016-09-19 11:50:08 +08:00
|
|
|
|
2018-11-07 09:50:54 +08:00
|
|
|
vcpkg_copy_pdbs()
|