Files
FlatLaf/flatlaf-natives/flatlaf-natives-windows
Karl Tauber 02f7cb8972
Some checks failed
CI / build (push) Has been cancelled
CI / release (push) Has been cancelled
Error Prone / error-prone (push) Has been cancelled
Fonts / Fonts (inter) (push) Has been cancelled
Fonts / Fonts (jetbrains-mono) (push) Has been cancelled
Fonts / Fonts (roboto) (push) Has been cancelled
Fonts / Fonts (roboto-mono) (push) Has been cancelled
Native Libraries / Natives (macos-latest) (push) Has been cancelled
Native Libraries / Natives (ubuntu-24.04-arm) (push) Has been cancelled
Native Libraries / Natives (ubuntu-latest) (push) Has been cancelled
Native Libraries / Natives (windows-latest) (push) Has been cancelled
update to Gradle 9.2.0; always use Java 25 toolchain to generate javadoc
Notes:
- Gradle 9+ requires Java 17 to run
- using Java 21 on GitHub Actions
- not using Java 25 because Kotlin does not yet support it and output some warnings
2025-10-31 23:52:08 +01: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 following CPU architectures: x86_64 (or amd64), x86 and arm64 (or aarch64).

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.

Development

To build the library on Windows using Gradle, (parts of) Visual Studio Community 2022 needs to be installed. After downloading and running VisualStudioSetup.exe the Visual Studio Installer is installed and started. Once running, it shows the Workloads tab that allows you to install additional packages. Either choose Desktop development with C++, or to save some disk space switch to the Single Components tab and choose following components (newest versions):

  • MSVC v143 - VS 2022 C++ x64/x86 Buildtools
  • MSVC v143 - VS 2022 C++ ARM64/ARM64EC Buildtools
  • Windows 11 SDK

Note that the Visual Studio Installer shows many similar named components for MSVC. Make sure to choose exactly those components listed above.

Using Build Tools for Visual Studio 2022 (installs only compiler and SDKs) instead of Visual Studio Community 2022 does not work with Gradle.

Visual Studio Code with C/C++ extension can be used for C++ code editing.