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

Add Wayland build option

This commit is contained in:
Stone Tickle
2020-09-29 11:00:06 +09:00
parent a9a09ab094
commit a4f83c55a6
3 changed files with 22 additions and 1 deletions
+9
View File
@@ -3,6 +3,15 @@ CXXFLAGS := $(CFLAGS) -std=c++17
DEFINES += -DIMGUI_IMPL_OPENGL_LOADER_GL3W
INCLUDES := $(shell pkg-config --cflags glfw3 freetype2 capstone) -I../../../imgui -I../../libs/gl3w
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)
DISPLAY_SERVER := WAYLAND
LIBS += $(libwayland_client)
endif
CXXFLAGS += -D"DISPLAY_SERVER_$(DISPLAY_SERVER)"
PROJECT := Tracy
IMAGE := $(PROJECT)-$(BUILD)