From 21451b097487c34f65873e881836d22e2072da4f Mon Sep 17 00:00:00 2001 From: Isaac <62234577+Isaac0-dev@users.noreply.github.com> Date: Fri, 20 May 2022 10:12:39 +1000 Subject: [PATCH] Headless compile flag (#107) --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 59372def..4ca1ae3c 100644 --- a/Makefile +++ b/Makefile @@ -64,9 +64,10 @@ DOCKERBUILD ?= 0 DEBUG_INFO_LEVEL ?= 2 # Enable profiling PROFILE ?= 0 +# Compile headless +HEADLESS ?= 0 # Enable Game ICON ICON ?= 1 - # Various workarounds for weird toolchains NO_BZERO_BCOPY ?= 0 @@ -349,6 +350,13 @@ else endif endif +ifeq ($(HEADLESS),1) + $(warning Compiling headless) + RENDER_API := DUMMY + WINDOW_API := DUMMY + AUDIO_API := DUMMY + CONTROLLER_API := +endif # NON_MATCHING - whether to build a matching, identical copy of the ROM # 1 - enable some alternate, more portable code that does not produce a matching ROM