[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:
parent
665c63c3d0
commit
0f5c93b767
|
@ -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
|
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 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
|
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
|
||||||
|
|
4
todo.txt
4
todo.txt
|
@ -13,9 +13,9 @@ Overview
|
||||||
- pass/set attributes when creating surface?
|
- pass/set attributes when creating surface?
|
||||||
[/] Automatic surface resizing
|
[/] 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
|
[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
|
[x] Remove the need for client apps to link with all dependent libs explicitly
|
||||||
|
|
||||||
[!] Allow controlling surface overlaying
|
[!] Allow controlling surface overlaying
|
||||||
|
|
Loading…
Reference in New Issue