forked from LWJGL/lwjgl3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_native_image.sh
executable file
·61 lines (58 loc) · 1.54 KB
/
build_native_image.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env bash
# Step 1: point JAVA_HOME to a GraalVM JDK w/ Native Image
# jdk graalvm-17
# Step 2: make sure everything is up-to-date
ant compile-native compile-tests
# Step 3: build the native image
$JAVA_HOME/bin/native-image -cp \
bin/classes/lwjgl/core:\
bin/classes/lwjgl/assimp:\
bin/classes/lwjgl/bgfx:\
bin/classes/lwjgl/cuda:\
bin/classes/lwjgl/egl:\
bin/classes/lwjgl/fmod:\
bin/classes/lwjgl/freetype:\
bin/classes/lwjgl/glfw:\
bin/classes/lwjgl/harfbuzz:\
bin/classes/lwjgl/hwloc:\
bin/classes/lwjgl/jawt:\
bin/classes/lwjgl/jemalloc:\
bin/classes/lwjgl/ktx:\
bin/classes/lwjgl/libdivide:\
bin/classes/lwjgl/llvm:\
bin/classes/lwjgl/lz4:\
bin/classes/lwjgl/meow:\
bin/classes/lwjgl/meshoptimizer:\
bin/classes/lwjgl/nanovg:\
bin/classes/lwjgl/nfd:\
bin/classes/lwjgl/nuklear:\
bin/classes/lwjgl/odbc:\
bin/classes/lwjgl/openal:\
bin/classes/lwjgl/opencl:\
bin/classes/lwjgl/opengl:\
bin/classes/lwjgl/opengles:\
bin/classes/lwjgl/openvr:\
bin/classes/lwjgl/openxr:\
bin/classes/lwjgl/opus:\
bin/classes/lwjgl/ovr:\
bin/classes/lwjgl/par:\
bin/classes/lwjgl/remotery:\
bin/classes/lwjgl/rpmalloc:\
bin/classes/lwjgl/shaderc:\
bin/classes/lwjgl/spvc:\
bin/classes/lwjgl/sse:\
bin/classes/lwjgl/stb:\
bin/classes/lwjgl/tinyexr:\
bin/classes/lwjgl/tinyfd:\
bin/classes/lwjgl/tootle:\
bin/classes/lwjgl/vma:\
bin/classes/lwjgl/vulkan:\
bin/classes/lwjgl/xxhash:\
bin/classes/lwjgl/yoga:\
bin/classes/lwjgl/zstd:\
bin/classes/samples:\
modules/samples/src/test/resources:\
bin/libs/java/joml.jar:\
bin/libs/native:\
config/native-image \
$1 --verbose --no-fallback