mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 04:23:51 +00:00
make wayland strictly on demand
This commit is contained in:
parent
b424bb4881
commit
e2c5d37255
@ -5,11 +5,12 @@ INCLUDES := $(shell pkg-config --cflags glfw3 freetype2 capstone) -I../../../img
|
|||||||
LIBS := $(shell pkg-config --libs glfw3 freetype2 capstone) -lpthread -ldl
|
LIBS := $(shell pkg-config --libs glfw3 freetype2 capstone) -lpthread -ldl
|
||||||
|
|
||||||
DISPLAY_SERVER := X11
|
DISPLAY_SERVER := X11
|
||||||
libwayland_client := $(shell pkg-config --libs --silence-errors wayland-client)
|
|
||||||
ifeq ($(.SHELLSTATUS),0)
|
ifdef TRACY_USE_WAYLAND
|
||||||
DISPLAY_SERVER := WAYLAND
|
DISPLAY_SERVER := WAYLAND
|
||||||
LIBS += $(libwayland_client)
|
LIBS += $(shell pkg-config --libs wayland-client)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CXXFLAGS += -D"DISPLAY_SERVER_$(DISPLAY_SERVER)"
|
CXXFLAGS += -D"DISPLAY_SERVER_$(DISPLAY_SERVER)"
|
||||||
|
|
||||||
PROJECT := Tracy
|
PROJECT := Tracy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user