Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 323 by
skuldw...@gmail.com: Version info missing in Windows .dll files
https://bugs.chromium.org/p/webp/issues/detail?id=323It's always good practice to add version info to DLLs (and exes) where possible.
The executable files do have displayed version info and is less of an issue.
To "fix" the dll building to include version info the following can be done:
See attached example Makefile.vc which has one line added and one line edited.
Original is:
$(LIBWEBPDECODER) $(LIBWEBP) $(LIBWEBPMUX) $(LIBWEBPDEMUX):
$(LNKDLL) /out:$(DIRBIN)\$(@B:_dll=.dll) /implib:$@ $(LFLAGS) $**
-xcopy $(DIROBJ)\*.pdb $(DIRLIB) /y
Fixed is:
$(LIBWEBPDECODER) $(LIBWEBP) $(LIBWEBPMUX) $(LIBWEBPDEMUX):
rc /nologo version.rc
$(LNKDLL) /out:$(DIRBIN)\$(@B:_dll=.dll) /implib:$@ $(LFLAGS) $** version.res
-xcopy $(DIROBJ)\*.pdb $(DIRLIB) /y
In addition the following two files need to to be added to the source archive (see attached files):
version.h and version.rc
Ideally both libwebpdecoder.dll and libwebp.dll should have their own version info (the currently example here gives libwebpdecoder.dll the same info as libwebp.dll so the name in the version info for both are "libwebp")
This is just a quick proof of concept to show how easily the version info can be added without messing with the rest of the source or change the build process.
Attachments:
Makefile.vc 14.2 KB
version.h 991 bytes
version.rc 867 bytes
--
You received this message because:
1. The project was configured to send all issue notifications to this address
You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings