[Proposal] Add a configure option to explicitly set CompanyName property in VersionInfo resource for Windows exe/dll

Frederic Thevenet fthevene at redhat.com
Tue Dec 5 11:30:16 UTC 2023


Hi,

I would like to propose a small enhancement to the way the VersionInfo 
resources[1] embedded into native exes and dlls  on Windows are 
populated by the JDK build for its native components, and more 
specifically, the value for the property called "Company name".

It is currently always the same as that of "vendor-name" but it It would 
be really useful to some build scenarios to allow for the "company name" 
property embedded in the VersionInfo compiled resources to be different 
from the "vendor name" property that is used within the JVM (e.g. java 
-version).

So I'd like to propose the addition of  a "--with-jdk-rc-company-name" 
configure option which can be used to set "Company name" to its own 
value, independently of "'vendor-name", in the same fashion as the 
existing "--with-jdk-rc-name" can be used to override the values of 
"File description" and "Product name".

If "--with-jdk-rc-company-name" isn't used, then the vendor-name value 
is used instead, reproducing the same behavior than without this patch.

[1] 
https://learn.microsoft.com/en-us/windows/win32/menurc/versioninfo-resource

Cheers,

-- 
Frederic Thevenet
Senior Software Engineer - OpenJDK
Red Hat France<https://www.redhat.com>
BAF5 C2D2 0BE0 1715 5EE1 0815 2065 AD47 B326 EB92
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20231205/2fe6ec94/attachment-0001.htm>


More information about the build-dev mailing list