mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Setup Wayland build.
This commit is contained in:
parent
aa0e899573
commit
58f84379d0
@ -1,3 +1,7 @@
|
||||
ifneq ($(shell uname),Linux)
|
||||
export LEGACY=1
|
||||
endif
|
||||
|
||||
all: release
|
||||
|
||||
debug:
|
||||
|
@ -1,32 +1,29 @@
|
||||
CFLAGS +=
|
||||
CXXFLAGS := $(CFLAGS) -std=c++17
|
||||
DEFINES += -DIMGUI_ENABLE_FREETYPE
|
||||
INCLUDES := $(shell pkg-config --cflags glfw3 freetype2 capstone) -I../../../imgui
|
||||
LIBS := $(shell pkg-config --libs glfw3 freetype2 capstone) -lpthread -ldl
|
||||
INCLUDES := $(shell pkg-config --cflags freetype2 capstone wayland-egl egl wayland-cursor xkbcommon) -I../../../imgui
|
||||
LIBS := $(shell pkg-config --libs freetype2 capstone wayland-egl egl wayland-cursor xkbcommon) -lpthread -ldl
|
||||
|
||||
PROJECT := Tracy
|
||||
IMAGE := $(PROJECT)-$(BUILD)
|
||||
|
||||
FILTER := ../../../nfd/nfd_win.cpp
|
||||
FILTER := ../../../nfd/nfd_win.cpp ../../src/BackendGlfw.cpp ../../src/imgui/imgui_impl_glfw.cpp
|
||||
include ../../../common/src-from-vcxproj.mk
|
||||
|
||||
SRC += ../../src/BackendWayland.cpp
|
||||
SRC2 += ../../src/wayland/xdg-shell.c ../../src/wayland/xdg-activation.c ../../src/wayland/xdg-decoration.c
|
||||
|
||||
ifdef TRACY_NO_FILESELECTOR
|
||||
CXXFLAGS += -DTRACY_NO_FILESELECTOR
|
||||
else
|
||||
UNAME := $(shell uname -s)
|
||||
ifeq ($(UNAME),Darwin)
|
||||
SRC3 += ../../../nfd/nfd_cocoa.m
|
||||
LIBS += -framework CoreFoundation -framework AppKit -framework UniformTypeIdentifiers
|
||||
ifdef TRACY_GTK_FILESELECTOR
|
||||
SRC += ../../../nfd/nfd_gtk.cpp
|
||||
INCLUDES += $(shell pkg-config --cflags gtk+-3.0)
|
||||
LIBS += $(shell pkg-config --libs gtk+-3.0)
|
||||
else
|
||||
ifdef TRACY_GTK_FILESELECTOR
|
||||
SRC += ../../../nfd/nfd_gtk.cpp
|
||||
INCLUDES += $(shell pkg-config --cflags gtk+-3.0)
|
||||
LIBS += $(shell pkg-config --libs gtk+-3.0)
|
||||
else
|
||||
SRC += ../../../nfd/nfd_portal.cpp
|
||||
INCLUDES += $(shell pkg-config --cflags dbus-1)
|
||||
LIBS += $(shell pkg-config --libs dbus-1)
|
||||
endif
|
||||
SRC += ../../../nfd/nfd_portal.cpp
|
||||
INCLUDES += $(shell pkg-config --cflags dbus-1)
|
||||
LIBS += $(shell pkg-config --libs dbus-1)
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -3,4 +3,9 @@ DEFINES := -DDEBUG
|
||||
BUILD := debug
|
||||
|
||||
include ../../../common/unix-debug.mk
|
||||
include build.mk
|
||||
|
||||
ifeq ($(LEGACY),1)
|
||||
include legacy.mk
|
||||
else
|
||||
include build.mk
|
||||
endif
|
||||
|
33
profiler/build/unix/legacy.mk
Normal file
33
profiler/build/unix/legacy.mk
Normal file
@ -0,0 +1,33 @@
|
||||
CFLAGS +=
|
||||
CXXFLAGS := $(CFLAGS) -std=c++17
|
||||
DEFINES += -DIMGUI_ENABLE_FREETYPE
|
||||
INCLUDES := $(shell pkg-config --cflags glfw3 freetype2 capstone) -I../../../imgui
|
||||
LIBS := $(shell pkg-config --libs glfw3 freetype2 capstone) -lpthread -ldl
|
||||
|
||||
PROJECT := Tracy
|
||||
IMAGE := $(PROJECT)-$(BUILD)
|
||||
|
||||
FILTER := ../../../nfd/nfd_win.cpp
|
||||
include ../../../common/src-from-vcxproj.mk
|
||||
|
||||
ifdef TRACY_NO_FILESELECTOR
|
||||
CXXFLAGS += -DTRACY_NO_FILESELECTOR
|
||||
else
|
||||
UNAME := $(shell uname -s)
|
||||
ifeq ($(UNAME),Darwin)
|
||||
SRC3 += ../../../nfd/nfd_cocoa.m
|
||||
LIBS += -framework CoreFoundation -framework AppKit -framework UniformTypeIdentifiers
|
||||
else
|
||||
ifdef TRACY_GTK_FILESELECTOR
|
||||
SRC += ../../../nfd/nfd_gtk.cpp
|
||||
INCLUDES += $(shell pkg-config --cflags gtk+-3.0)
|
||||
LIBS += $(shell pkg-config --libs gtk+-3.0)
|
||||
else
|
||||
SRC += ../../../nfd/nfd_portal.cpp
|
||||
INCLUDES += $(shell pkg-config --cflags dbus-1)
|
||||
LIBS += $(shell pkg-config --libs dbus-1)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
include ../../../common/unix.mk
|
@ -6,4 +6,9 @@ DEFINES := -DNDEBUG
|
||||
BUILD := release
|
||||
|
||||
include ../../../common/unix-release.mk
|
||||
include build.mk
|
||||
|
||||
ifeq ($(LEGACY),1)
|
||||
include legacy.mk
|
||||
else
|
||||
include build.mk
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user