2.1 KiB
The ANGLE vcpkg port
The ANGLE port's buildsystem is based off of WebKit's approach to converting ANGLE's buildsystem to CMake.
Details:
cmake-buildsystem/CMakeLists.txt- This is an augmented version of WebKit's CMakeLists.txt, with vcpkg edits and additions.
cmake-buildsystem/*.cmake- These are configuration files based on WebKit's approach, but customized for vcpkg (and using
PlatformLinuxinstead ofPlatformGTK)
- These are configuration files based on WebKit's approach, but customized for vcpkg (and using
Updating the ANGLE vcpkg port
- Select a new ANGLE version
Recommendation: Follow the recommendations in the libANGLE "Choosing an ANGLE branch" guide, and find the branch that matches the current Chromium Stable.
-
Find the branch (usually
chromium/<version>) and latest commit on that branch, and update the following variables inportfile.cmake:ANGLE_COMMITANGLE_VERSIONANGLE_SHA512
-
Check the
DEPSfile at that ANGLE commit, for the commit used in'third_party/zlib', and updateANGLE_THIRDPARTY_ZLIB_COMMITinportfile.cmakeif necessary. -
Attempt to build. You may have to tweak the
CMakeLists.txt,Platform*.cmakefiles, etc. Check with the latest files in WebKit's repo to see if any updates need to be ported to the vcpkg's custom files. You might also need to change theANGLE_WEBKIT_BUILDSYSTEM_COMMITin the portfile (although this should theoretically need updating less frequently). -
Check headers against
opengl-registry- make sure headers are similar.
angle defines some additional entrypoints. opengl-registry should be latest before updating angle
- Complete all the other normal steps in the Maintainer Guide