Makefile: Add API_ONLY variable

This commit is contained in:
Samantaz Fox 2023-06-08 23:45:11 +02:00
parent bbf16279bb
commit 867d488931
No known key found for this signature in database
GPG Key ID: F42821059186176E
1 changed files with 9 additions and 4 deletions

View File

@ -31,6 +31,10 @@ ifeq ($(DISABLE_QUIC), 1)
FLAGS += -Ddisable_quic FLAGS += -Ddisable_quic
endif endif
ifeq ($(API_ONLY), 1)
FLAGS += -Dapi_only
endif
# ----------------------- # -----------------------
# Main # Main
@ -109,6 +113,7 @@ help:
@echo " RELEASE Make a release build (Default: 1)" @echo " RELEASE Make a release build (Default: 1)"
@echo " STATIC Link libraries statically (Default: 0)" @echo " STATIC Link libraries statically (Default: 0)"
@echo "" @echo ""
@echo " API_ONLY Build invidious without a GUI (Default: 0)"
@echo " DISABLE_QUIC Disable support for QUIC (Default: 0)" @echo " DISABLE_QUIC Disable support for QUIC (Default: 0)"
@echo " NO_DBG_SYMBOLS Strip debug symbols (Default: 0)" @echo " NO_DBG_SYMBOLS Strip debug symbols (Default: 0)"