Support fully headless builds
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
79e74ef909
commit
a00020e597
14 changed files with 175 additions and 61 deletions
15
src/Makefile
15
src/Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue