[glad] Use registry ports instead of vendored copies

This commit is contained in:
Robert Schumacher 2018-11-16 18:19:03 -08:00
parent 9eab773b8f
commit 35ea46995b
6 changed files with 27 additions and 5 deletions

View File

@ -1,3 +1,3 @@
Source: egl-registry
Version: 2018-06-30
Version: 2018-06-30-1
Description: the EGL API and Extension Registry

View File

@ -15,6 +15,12 @@ file(
DESTINATION ${CURRENT_PACKAGES_DIR}/include
)
file(
COPY
${SOURCE_PATH}/api/egl.xml
DESTINATION ${CURRENT_PACKAGES_DIR}/share/egl-registry
)
file(
INSTALL ${SOURCE_PATH}/sdk/docs/man/copyright.xml
DESTINATION ${CURRENT_PACKAGES_DIR}/share/egl-registry

View File

@ -1,3 +1,4 @@
Source: glad
Version: 0.1.28-2
Version: 0.1.28-3
Description: Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs.
Build-Depends: egl-registry, opengl-registry

View File

@ -12,7 +12,16 @@ vcpkg_from_github(
vcpkg_find_acquire_program(PYTHON2)
get_filename_component(PYTHON2_DIR "${PYTHON2}" DIRECTORY)
set(ENV{PATH} "$ENV{PATH};${PYTHON2_DIR}")
vcpkg_add_to_path("${PYTHON2_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}
@ -32,5 +41,5 @@ vcpkg_install_cmake()
vcpkg_copy_pdbs()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/glad)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
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)

View File

@ -1,4 +1,4 @@
Source: opengl-registry
Version: 2018-06-30
Version: 2018-06-30-1
Build-Depends: egl-registry
Description: the API and Extension registries for the OpenGL family APIs

View File

@ -9,6 +9,12 @@ vcpkg_from_github(
)
file(COPY ${SOURCE_PATH}/api/GL DESTINATION ${CURRENT_PACKAGES_DIR}/include)
file(COPY
${SOURCE_PATH}/xml/gl.xml
${SOURCE_PATH}/xml/glx.xml
${SOURCE_PATH}/xml/wgl.xml
DESTINATION ${CURRENT_PACKAGES_DIR}/share/opengl-registry
)
# Using the Makefile because it is the smallest file with a complete copy of the license text
file(