aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/native/make-drm_gbm_egl_test01.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/newt/native/make-drm_gbm_egl_test01.sh')
-rw-r--r--src/newt/native/make-drm_gbm_egl_test01.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/newt/native/make-drm_gbm_egl_test01.sh b/src/newt/native/make-drm_gbm_egl_test01.sh
new file mode 100644
index 000000000..3669ff970
--- /dev/null
+++ b/src/newt/native/make-drm_gbm_egl_test01.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+rm -f drm_gbm_egl_test01
+
+# if defined(USE_EGL_DEFAULT_DISPLAY) && !defined(USE_SURFACELESS) -> ERROR
+# -DUSE_SURFACELESS \
+# -DUSE_EGL_DEFAULT_DISPLAY \
+#
+
+gcc \
+ -DUSE_SURFACELESS \
+ -I/usr/lib/jvm/java-11-openjdk-amd64/include/ \
+ -I/usr/lib/jvm/java-11-openjdk-amd64/include/linux/ \
+ -o drm_gbm_egl_test01 \
+ drm_gbm_egl_test01.c \
+ `pkg-config --cflags --libs libdrm` -lgbm -lEGL -lGLESv2
+