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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user