Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows on ARM Support #707

Merged
merged 4 commits into from
Aug 5, 2023
Merged

Windows on ARM Support #707

merged 4 commits into from
Aug 5, 2023

Conversation

syoon2
Copy link
Contributor

@syoon2 syoon2 commented Aug 4, 2023

Closes #443

This PR adds native library support for Windows on ARM.

Verification steps

  1. Compile native libraries and build flatlaf-demo.
  2. Observe embedded menu bars working on all Windows architectures (i.e., x86, x86_64, and aarch64).

Now that the aarch64 library is added, this
check is unnecessary.
@syoon2 syoon2 marked this pull request as ready for review August 4, 2023 13:20
@syoon2
Copy link
Contributor Author

syoon2 commented Aug 4, 2023

@DevCharly ready for review 😄

- changed DLL filename from aarch64 to arm64
- publish ARM DLL to Maven Central
@DevCharly DevCharly merged commit be28761 into JFormDesigner:main Aug 5, 2023
DevCharly added a commit that referenced this pull request Aug 5, 2023
, PR #707)

built by GitHub Actions:
https://github.com/JFormDesigner/FlatLaf/actions/runs/5771160235

locally signed Windows DLLs with FormDev Software GmbH code signing certificate
@DevCharly DevCharly added this to the 3.2 milestone Aug 5, 2023
@@ -55,12 +55,12 @@ private static void initialize() {

String classifier;
String ext;
if( SystemInfo.isWindows_10_orLater ) {
// Windows: requires Windows 10/11
if( SystemInfo.isWindows_10_orLater && (SystemInfo.isX86 || SystemInfo.isX86_64 || SystemInfo.isAARCH64) ) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have re-added this check for platforms to be sure to exclude unknown platforms.
E.g. Windows 10 ARM 32 bit (not sure whether Java exists for this platform).
Theoretically Microsoft could port Windows to RISC-V in the future. We don't know 😺

Copy link
Contributor Author

@syoon2 syoon2 Aug 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK the only time a Windows variant for ARM 32bit existed (except Windows Mobile) was Windows RT, which I think is safe to say dead. Never mind... Windows IoT Core does support ARM32. Still, Java is not supported on that platform. But yeah, I guess it wouldn't hurt to keep the check there. :-)

@DevCharly
Copy link
Collaborator

@syoon2 thanks for your contribution 👍

@syoon2 syoon2 deleted the win-aarch64 branch August 5, 2023 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for Windows on ARM 64-bit
2 participants