Support fully headless builds

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-10-23 02:30:42 +01:00
parent 79e74ef909
commit a00020e597
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
14 changed files with 175 additions and 61 deletions

View file

@ -35,7 +35,11 @@ endif
endif
# --------------------------------------------------------------
# Check for X11+OpenGL dependencies (unless headless build)
ifneq ($(HAIKU_OR_MACOS_OR_WINDOWS),true)
ifneq ($(HEADLESS),true)
ifneq ($(HAVE_OPENGL),true)
$(error X11 dependency not installed/available)
@ -50,6 +54,7 @@ ifneq ($(HAVE_XRANDR),true)
$(warning Xrandr dependency not installed/available)
endif
endif
endif
# --------------------------------------------------------------
@ -63,7 +68,9 @@ ifneq ($(SYSDEPS),true)
endif
dgl:
ifneq ($(HEADLESS),true)
$(MAKE) -C dpf/dgl opengl USE_NANOVG_FBO=true
endif
plugins: deps
$(MAKE) all -C plugins