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

build: make native modules optional at runtime #363

Merged
merged 1 commit into from
Jan 11, 2018

Conversation

TheMrMilchmann
Copy link
Collaborator

Currently, native modules are required at runtime which is counter-productive when native libraries are meant to be loaded from a separate directory instead of extracting them from a jar.
This PR changes the module declarations of binding to depend "statically" on the native modules (which means that the native modules are required at compile time but optional at runtime). The only regression is that native modules are now no longer visible for modules depending on binding modules. However, this should not be a problem since these modules are empty anyway.

@Spasi
Copy link
Member

Spasi commented Jan 11, 2018

Sounds reasonable, but I'm not sure how it will interact with jlink. I'm merging this anyway so that it can be tested more widely (will be available in 3.1.6 build 10).

@Spasi Spasi merged commit 6b5d13d into LWJGL:master Jan 11, 2018
@TheMrMilchmann TheMrMilchmann deleted the jlink-fixes branch January 12, 2018 13:22
@Spasi Spasi mentioned this pull request Jan 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants