1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

make wayland strictly on demand

This commit is contained in:
Stone Tickle
2020-10-02 10:55:31 +09:00
parent b424bb4881
commit e2c5d37255
+4 -3
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