Files
FlatLaf/flatlaf-natives/flatlaf-natives-windows
Karl Tauber 32d102dbc9 Native Libraries: added API version to:
- test whether native library matches the JAR (bad builds could e.g. ship a newer JAR with an older incompatible native library)
- invoke a method (to get API version) to check whether native library works correctly

if API version do not match, or method could not invoked correctly, disable usage of FlatLaf native library

Windows and macOS binaries built and signed locally in clean workspace
Linux binary built by GitHub Actions
2024-03-24 16:37:11 +01:00
..
2023-08-12 17:04:21 +02:00

FlatLaf Windows 10/11 Native Library

This sub-project contains the source code for the FlatLaf Windows 10/11 native library (DLL).

The native library can be built only on Windows and requires a C++ compiler. Tested with Microsoft Visual C++ (MSVC) 2019 and 2022 (comes with Visual Studio 2019 and 2022).

The native library is available for folloging CPU architectures: x86_64 (or amd64), x86 and arm64.

To be able to build FlatLaf on any platform, and without C++ compiler, the pre-built DLLs are checked into Git at flatlaf-core/src/main/resources/com/formdev/flatlaf/natives/.

The DLLs were built on a GitHub server with the help of GitHub Actions. See: Native Libraries workflow. Then the produced Artifacts ZIP was downloaded, signed DLLs with FormDev Software code signing certificate and committed the DLLs to Git.