Skip to content

Use native-bootstrap to find folder for safer natives extraction - #3012

Draft
riccardobl wants to merge 1 commit into
jMonkeyEngine:masterfrom
riccardobl:nativeloader
Draft

riccardobl wants to merge 1 commit into
jMonkeyEngine:masterfrom
riccardobl:nativeloader

Conversation

@riccardobl

Copy link
Copy Markdown
Member

Moves out of the repo the code that finds candidate folders for native extraction, so that it can be reused by other native libraries like saferalloc.

@riccardobl
riccardobl marked this pull request as draft October 6, 2026 20:33

@jaime-jmebot jaime-jmebot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This refactoring cleanly extracts candidate folder resolution out of NativeLibraryLoader and delegates it to the external native-directories library.

Summary of changes:

  • Dependency Updates: Added native-bootstrap (v0.1.1) and native-directories library to libs.versions.toml and jme3-desktop/build.gradle.
  • Code Cleanup: Removed NativeLibraryExtraction.java and simplified NativeLibraryLoader candidate folder initialization.
  • Test Alignment: Updated unit tests to use NativeDirectories and properly manage temporary/cache system properties.

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.

2 participants