[win32 build] use /DELAYLOAD option for libEGL and libGLESv2 to allow apps that don't use GLES backend to work without redistributing those unused DLLs

This commit is contained in:
martinfouilleul 2023-02-21 19:02:16 +01:00
parent 665c63c3d0
commit 0f5c93b767
2 changed files with 3 additions and 3 deletions

View File

@ -6,6 +6,6 @@ set glsl_shaders=src\glsl_shaders\common.glsl src\glsl_shaders\blit_vertex.glsl
call python3 scripts\embed_text.py %glsl_shaders% --prefix=glsl_ --output src\glsl_shaders.h
set INCLUDES=/I src /I src/util /I src/platform /I ext /I ext/angle_headers
set LIBS=user32.lib opengl32.lib gdi32.lib shcore.lib /LIBPATH:./bin libEGL.dll.lib libGLESv2.dll.lib
set LIBS=user32.lib opengl32.lib gdi32.lib shcore.lib delayimp.lib /LIBPATH:./bin libEGL.dll.lib libGLESv2.dll.lib /DELAYLOAD:libEGL.dll /DELAYLOAD:libGLESv2.dll
cl /we4013 /Zi /Zc:preprocessor /DMP_BUILD_DLL /std:c11 %INCLUDES% src/milepost.c /Fo:bin/milepost.o /LD /link %LIBS% /OUT:bin/milepost.dll /IMPLIB:bin/milepost.dll.lib

View File

@ -13,9 +13,9 @@ Overview
- pass/set attributes when creating surface?
[/] Automatic surface resizing
[.] Make linking with libEGL optional, even if EGL backend is compiled in milepost?
[x] Make linking with libEGL optional, even if EGL backend is compiled in milepost?
[x] using weak linking on macos
[ ] use /DELAYLOAD:lib on windows?
[x] use /DELAYLOAD:lib on windows
[x] Remove the need for client apps to link with all dependent libs explicitly
[!] Allow controlling surface overlaying