mirror of https://github.com/microsoft/vcpkg.git
[angle] Add CMake package with modules. (#2223)
* added angle cmake config * bumped angle package version * [angle] Add unofficial cmake targets
This commit is contained in:
parent
1a6d0f5611
commit
4415ff5c16
|
|
@ -178,6 +178,7 @@ target_compile_definitions(libGLESv2
|
|||
-DGL_APICALL=
|
||||
-DEGLAPI=
|
||||
)
|
||||
target_include_directories(libGLESv2 PUBLIC "$<INSTALL_INTERFACE:include>")
|
||||
|
||||
##########
|
||||
# libEGL
|
||||
|
|
@ -188,13 +189,16 @@ add_library(libEGL
|
|||
"src/libEGL/resource.h"
|
||||
)
|
||||
target_link_libraries(libEGL PRIVATE angle::common angle::libANGLE libGLESv2)
|
||||
target_include_directories(libEGL PUBLIC "$<INSTALL_INTERFACE:include>")
|
||||
|
||||
install(TARGETS libEGL libGLESv2
|
||||
install(TARGETS libEGL libGLESv2 EXPORT ANGLEExport
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
|
||||
install(EXPORT ANGLEExport FILE unofficial-angle-config.cmake NAMESPACE unofficial::angle:: DESTINATION share/unofficial-angle)
|
||||
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(
|
||||
DIRECTORY include/
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
Source: angle
|
||||
Version: 2017-06-14-8d471f-2
|
||||
Version: 2017-06-14-8d471f-4
|
||||
Description: A conformant OpenGL ES implementation for Windows, Mac and Linux.
|
||||
The goal of ANGLE is to allow users of multiple operating systems to seamlessly run WebGL and other OpenGL ES content by translating OpenGL ES API calls to one of the hardware-supported APIs available for that platform. ANGLE currently provides translation from OpenGL ES 2.0 and 3.0 to desktop OpenGL, OpenGL ES, Direct3D 9, and Direct3D 11. Support for translation from OpenGL ES to Vulkan is underway, and future plans include compute shader support (ES 3.1) and MacOS support.
|
||||
|
|
|
|||
|
|
@ -31,6 +31,10 @@ vcpkg_configure_cmake(
|
|||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-angle)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/angle ${CURRENT_PACKAGES_DIR}/share/unofficial-angle)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/angle RENAME copyright)
|
||||
|
|
|
|||
Loading…
Reference in New Issue