mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-19 19:20:24 +08:00
1550b9e71b
* [many ports] Upgrades 2019.07.11 * Re-generate patches and fix build errors. * [manyport]Fix build errors. * Fix avro-c and console-bridge failures, revert curl and tesseract * fix botan failure * Fix build errors and undo some ports upgrades. * [aws-c-common,chipmunk,cxxopts,grpc]Fix build errors * Fix build errors. * [angle]Undo upgrade changes. * [directxtk]Fix UWP build error (#7233) * Revert leptonica since it cause tesseract failed * Revert jsonnet * [google-cloud-cpp] Disable parallel configure due to source directory writes * [many ports] Undo undesired changes * [bitsery] Fix indentation * [avro-c][aws-c-common][graphite2] Convert line endings to minimize PR diff * fix console-bridge and remove usockets unused patch * update ogre patch * [many ports] Revert unneeded changes w.r.t. master. Add missing write to console-bridge. * [console-bridge] Fix export macro * [avro-c] Revert upgrade; split to #7875 * [avro-c] Complete previous revert
46 lines
1.5 KiB
CMake
46 lines
1.5 KiB
CMake
include(vcpkg_common_functions)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO Dav1dde/glad
|
|
REF 1a42f8a6099c60f6a4522731fadad4191d64e6ff
|
|
SHA512 02870cf43b5ee33a733122885f748a1368e4487fc08f32ba376d6d53c0efd9ed6e9aea350b723d955869ed47b4d9d69235a52f01723215cf4393d6ca99e2ac00
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_find_acquire_program(PYTHON3)
|
|
get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
|
|
vcpkg_add_to_path("${PYTHON3_DIR}")
|
|
|
|
file(COPY
|
|
${CURRENT_INSTALLED_DIR}/include/KHR/khrplatform.h
|
|
${CURRENT_INSTALLED_DIR}/share/egl-registry/egl.xml
|
|
${CURRENT_INSTALLED_DIR}/share/opengl-registry/gl.xml
|
|
${CURRENT_INSTALLED_DIR}/share/opengl-registry/glx.xml
|
|
${CURRENT_INSTALLED_DIR}/share/opengl-registry/wgl.xml
|
|
DESTINATION ${SOURCE_PATH}/glad/files
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DGLAD_NO_LOADER=OFF
|
|
-DGLAD_EXPORT=OFF
|
|
-DGLAD_INSTALL=ON
|
|
-DGLAD_REPRODUCIBLE=ON
|
|
-DGLAD_SPEC="gl" # {gl,egl,glx,wgl}
|
|
-DGLAD_PROFILE="compatibility" # {core,compatibility}
|
|
OPTIONS_DEBUG
|
|
-DGLAD_GENERATOR="c-debug"
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/glad)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/include/KHR)
|
|
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/glad/copyright COPYONLY)
|