diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2018-11-16 18:19:03 -0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-11-20 15:47:14 -0800 |
| commit | 35ea46995b6a3b384b4a76d613ac29d7d001b51a (patch) | |
| tree | f5a3f8f54d46051343cd3429b456f08d437dfebf /ports/glad | |
| parent | 9eab773b8fe7ae7700d77b686836c093fdfdeb31 (diff) | |
| download | vcpkg-35ea46995b6a3b384b4a76d613ac29d7d001b51a.tar.gz vcpkg-35ea46995b6a3b384b4a76d613ac29d7d001b51a.zip | |
[glad] Use registry ports instead of vendored copies
Diffstat (limited to 'ports/glad')
| -rw-r--r-- | ports/glad/CONTROL | 3 | ||||
| -rw-r--r-- | ports/glad/portfile.cmake | 13 |
2 files changed, 13 insertions, 3 deletions
diff --git a/ports/glad/CONTROL b/ports/glad/CONTROL index e8354c205..d74a35089 100644 --- a/ports/glad/CONTROL +++ b/ports/glad/CONTROL @@ -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
diff --git a/ports/glad/portfile.cmake b/ports/glad/portfile.cmake index 432c14503..cc73b1e39 100644 --- a/ports/glad/portfile.cmake +++ b/ports/glad/portfile.cmake @@ -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)
|
