From e2c5d372550eb3acd966b351f9dd016f1f4384c2 Mon Sep 17 00:00:00 2001 From: Stone Tickle Date: Fri, 2 Oct 2020 10:55:31 +0900 Subject: [PATCH] make wayland strictly on demand --- profiler/build/unix/build.mk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/profiler/build/unix/build.mk b/profiler/build/unix/build.mk index f58c8193..8df65ae9 100644 --- a/profiler/build/unix/build.mk +++ b/profiler/build/unix/build.mk @@ -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