-
Notifications
You must be signed in to change notification settings - Fork 89
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
compile all demos to native executable #37
Open
chirontt
wants to merge
12
commits into
LWJGL:main
Choose a base branch
from
chirontt:3.2.3_demos_native_image
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- compile against LWJGL 3.2.3 version - restrict to the four BGFX demos (code & resources) - add Gradle wrapper & build script - use GraalVM native-image utility to produce native executable containing the four BGFX demos
the README.md changes are specific to this branch only.
- org.lwjgl.Version's getVersion() method is patched in native image to retrieve the build number correctly from manifest entry - system properties from the command line can be passed on to the running demo in Gradle/Maven build scripts and in native image
to make it work in Linux. Also, remove the ThreadLocalUtil's substitution by GraalVM, as the resulting native image seems to work fine without it.
- compile against LWJGL 3.2.3 version - restrict to the Vulkan demos (code & resources) - add Gradle wrapper & build script - use GraalVM native-image utility to produce native executable containing the Vulkan demos.
- compile against LWJGL 3.2.3 version - restrict to the OpenGL demos (code & resources) - exclude the SWT demos for now - use GraalVM native-image utility to produce native executable containing the OpenGL demos.
- src/org/lwjgl/demo/opengl/swt classes are now included in the build - SWT has different APIs for different platforms, especially in the native-to-Java callbacks, which makes it challenging to create portable build script to generate platform-specific native images from platform-specific configuration files - Gluon provides the client-gradle-plugin/client-maven-plugin for Gradle/Maven, which have excellent supports for platform-specific configuration files to generate platform-specific native images - platform-specific configuration files for SWT are in the res/META-INF/substrate/config directory which are used by the Gluon plugins during the native-image building.
to the reflect-config.json file, to make the Vulkan demos working in the generated native image.
This was referenced Jul 2, 2021
httpdigest
force-pushed
the
main
branch
17 times, most recently
from
August 22, 2021 16:20
c0ee337
to
2378857
Compare
httpdigest
force-pushed
the
main
branch
11 times, most recently
from
October 31, 2021 17:41
f5eb99a
to
5149b90
Compare
httpdigest
force-pushed
the
main
branch
2 times, most recently
from
March 3, 2022 17:08
4131b94
to
3ef47ae
Compare
httpdigest
force-pushed
the
main
branch
3 times, most recently
from
October 19, 2022 09:52
6127460
to
6717e49
Compare
httpdigest
force-pushed
the
main
branch
10 times, most recently
from
April 29, 2023 17:48
eafcf00
to
492ad16
Compare
httpdigest
force-pushed
the
main
branch
2 times, most recently
from
January 7, 2024 20:20
86d8b54
to
bdb5675
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is recommended to be merged to its own branch, rather than to the main branch, as the code is designed to compile against the official LWJGL 3.2.3 release, not against the current LWJGL snapshot which the main branch tracks.
containing all the demos
Native executable can be produced in Windows and Linux (Ubuntu).
Mac status is unknown, as no Mac hardware is available for testing.
Ditto for CUDA demos, which require NVIDIA graphics card to run.