RFR: 8244417: support static build for Windows

Joeri Sykora sykora at openjdk.java.net
Fri May 8 07:16:32 UTC 2020


Adds support for building static libraries of the OpenJFX modules for the Windows platform. Building static libraries
is done by providing the gradle property `-PSTATIC_BUILD=true`.

Changes include:

- add static flags for the compiler and linker
- use `lib` for linking instead of `link`
- only build and include version.rc once (from GlassResources.rc)
- include library specific `JNI_OnLoad_xxx` methods
- functionality loaded via `DllMain` has been implemented at a different location

-------------

Commit messages:
 - 8244417: support static build for Windows

Changes: https://git.openjdk.java.net/jfx/pull/214/files
 Webrev: https://webrevs.openjdk.java.net/jfx/214/webrev.00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8244417
  Stats: 83 lines in 9 files changed: 69 ins; 2 del; 12 mod
  Patch: https://git.openjdk.java.net/jfx/pull/214.diff
  Fetch: git fetch https://git.openjdk.java.net/jfx pull/214/head:pull/214

PR: https://git.openjdk.java.net/jfx/pull/214


More information about the openjfx-dev mailing list