make wayland strictly on demand

This commit is contained in:
Stone Tickle 2020-10-02 10:55:31 +09:00
parent b424bb4881
commit e2c5d37255
No known key found for this signature in database
GPG Key ID: 4DF34BD9C2622309

View File

@ -5,11 +5,12 @@ INCLUDES := $(shell pkg-config --cflags glfw3 freetype2 capstone) -I../../../img
LIBS := $(shell pkg-config --libs glfw3 freetype2 capstone) -lpthread -ldl
DISPLAY_SERVER := X11
libwayland_client := $(shell pkg-config --libs --silence-errors wayland-client)
ifeq ($(.SHELLSTATUS),0)
ifdef TRACY_USE_WAYLAND
DISPLAY_SERVER := WAYLAND
LIBS += $(libwayland_client)
LIBS += $(shell pkg-config --libs wayland-client)
endif
CXXFLAGS += -D"DISPLAY_SERVER_$(DISPLAY_SERVER)"
PROJECT := Tracy