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

@ -28,14 +28,17 @@ FILES_DSP = \
override/library.cpp \
override/network.cpp
# override/osdialog.cpp
# override/RemoteNanoVG.cpp
# override/RemoteWindow.cpp
ifeq ($(HEADLESS),true)
FILES_DSP += \
override/osdialog.cpp \
override/RemoteNanoVG.cpp \
override/RemoteWindow.cpp
else
FILES_UI = \
CardinalUI.cpp \
override/MenuBar.cpp \
override/Window.cpp
endif
# --------------------------------------------------------------
# Import base definitions
@ -143,6 +146,10 @@ BASE_FLAGS += -I../include/mingw-compat
BASE_FLAGS += -I../include/mingw-std-threads
endif
ifeq ($(HEADLESS),true)
BASE_FLAGS += -DHEADLESS
endif
ifeq ($(WITH_LTO),true)
BASE_FLAGS += -fno-strict-aliasing -flto
endif