Skip to content

Commit

Permalink
[glad] Use registry ports instead of vendored copies
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0219-msft committed Nov 20, 2018
1 parent 9eab773 commit 35ea469
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ports/egl-registry/CONTROL
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Source: egl-registry
Version: 2018-06-30
Version: 2018-06-30-1
Description: the EGL API and Extension Registry
6 changes: 6 additions & 0 deletions ports/egl-registry/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion ports/glad/CONTROL
Original file line number Diff line number Diff line change
@@ -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
13 changes: 11 additions & 2 deletions ports/glad/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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)
2 changes: 1 addition & 1 deletion ports/opengl-registry/CONTROL
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions ports/opengl-registry/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 35ea469

Please sign in to comment.