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

compile OpenGL demos to native executable #36

Closed

Conversation

chirontt
Copy link
Contributor

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 the current LWJGL snapshot which the main branch tracks.

  • compile against LWJGL 3.2.3 version
  • restrict to the OpenGL demos (code & resources)
  • add Gradle wrapper & build script
  • use GraalVM native-image utility to produce native executable
    containing the OpenGL demos.

Native executable can be produced in Windows and Linux (Ubuntu).
Haven't tried the Mac OS, but it should work.

- 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.
@httpdigest httpdigest changed the base branch from main to graal-native April 3, 2021 09:04
@chirontt
Copy link
Contributor Author

chirontt commented Jul 2, 2021

closed as superseded by #37

@chirontt chirontt closed this Jul 2, 2021
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.

1 participant