Skip to content

Commit 9d9a260

Browse files
Calinouskyace65
authored andcommitted
Update Compiling for Windows to refer to ANGLE install script
This simplifies the process for compiling with statically linked ANGLE.
1 parent 5767932 commit 9d9a260

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

engine_details/development/compiling/compiling_for_windows.rst

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -371,12 +371,25 @@ ANGLE provides a translation layer from OpenGL ES 3.x to Direct3D 11 and can be
371371
to improve support for the Compatibility renderer on some older GPUs with outdated
372372
OpenGL drivers and on Windows for ARM.
373373

374-
Compiling with ANGLE requires additional dependencies to be installed.
375-
If you wish to skip this step, you can use the ``angle=no`` SCons option.
374+
By default, Godot is built with dynamically linked ANGLE, you can use it by placing
375+
``libEGL.dll`` and ``libGLESv2.dll`` alongside the executable.
376376

377-
You can install the required dependencies by running
378-
``python misc/scripts/install_angle.py``
379-
in the Godot source repository. After running this script, compile Godot as usual.
377+
.. note:: You can use dynamically linked ANGLE with export templates as well, rename
378+
aforementioned DLLs to ``libEGL.{architecture}.dll`` and ``libGLESv2.{architecture}.dll``
379+
and place them alongside export template executables, and libraries will
380+
be automatically copied during the export process.
381+
382+
To compile Godot with statically linked ANGLE:
383+
384+
- Run ``misc/scripts/install_angle.py`` in the Godot source repository.
385+
- When building Godot, add ``angle=yes`` to tell SCons to statically link ANGLE:
386+
387+
::
388+
389+
scons platform=windows angle=yes
390+
391+
If you've manually installed ANGLE, you can specify a custom path using the ``angle_libs``
392+
SCons option.
380393

381394
.. note:: You can optionally build the godot-angle-static libraries yourself with
382395
the following steps:

0 commit comments

Comments
 (0)