2018-11-07 01:50:54 +00:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO glfw/glfw
|
2020-02-03 12:16:54 +05:00
|
|
|
REF 3.3.2
|
|
|
|
SHA512 f5af749d33b5b900ccf07988ad0bf51bd766a18e4cf2bc2a76020c88e98a2528ff1b965224184fe0d290cfe34b1af1e6f633600660d81194fe354078e2f35c56
|
2018-11-07 01:50:54 +00:00
|
|
|
HEAD_REF master
|
2016-09-18 20:50:08 -07:00
|
|
|
)
|
|
|
|
|
2020-01-14 21:12:05 +03:00
|
|
|
if(VCPKG_TARGET_IS_LINUX)
|
2018-11-07 01:50:54 +00: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-18 20:50:08 -07: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 01:50:54 +00:00
|
|
|
endif()
|
2017-03-30 21:52:18 -07:00
|
|
|
|
2016-09-18 20:50:08 -07:00
|
|
|
vcpkg_configure_cmake(
|
2016-09-28 17:05:56 -07:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-08-01 04:01:02 +08:00
|
|
|
PREFER_NINJA
|
2016-09-18 20:50:08 -07:00
|
|
|
OPTIONS
|
|
|
|
-DGLFW_BUILD_EXAMPLES=OFF
|
|
|
|
-DGLFW_BUILD_TESTS=OFF
|
|
|
|
-DGLFW_BUILD_DOCS=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2018-11-07 01:50:54 +00:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/glfw3)
|
2016-09-18 20:50:08 -07:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
2019-10-07 19:35:13 +02:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
2016-09-18 20:50:08 -07:00
|
|
|
|
2018-11-07 01:50:54 +00:00
|
|
|
vcpkg_copy_pdbs()
|