2020-07-31 16:14:12 +00:00
|
|
|
CFLAGS +=
|
2018-05-07 23:21:19 +00:00
|
|
|
CXXFLAGS := $(CFLAGS) -std=c++17
|
2021-08-22 11:11:26 +00:00
|
|
|
DEFINES += -DIMGUI_ENABLE_FREETYPE
|
|
|
|
INCLUDES := $(shell pkg-config --cflags glfw3 freetype2 capstone) -I../../../imgui
|
2020-07-31 16:53:50 +00:00
|
|
|
LIBS := $(shell pkg-config --libs glfw3 freetype2 capstone) -lpthread -ldl
|
2020-09-29 02:00:06 +00:00
|
|
|
|
|
|
|
DISPLAY_SERVER := X11
|
2020-10-02 01:55:31 +00:00
|
|
|
|
|
|
|
ifdef TRACY_USE_WAYLAND
|
2020-09-29 02:00:06 +00:00
|
|
|
DISPLAY_SERVER := WAYLAND
|
2020-10-02 01:55:31 +00:00
|
|
|
LIBS += $(shell pkg-config --libs wayland-client)
|
2020-09-29 02:00:06 +00:00
|
|
|
endif
|
2020-10-02 01:55:31 +00:00
|
|
|
|
2020-09-29 02:00:06 +00:00
|
|
|
CXXFLAGS += -D"DISPLAY_SERVER_$(DISPLAY_SERVER)"
|
|
|
|
|
2018-06-27 18:31:17 +00:00
|
|
|
PROJECT := Tracy
|
|
|
|
IMAGE := $(PROJECT)-$(BUILD)
|
2017-09-15 20:45:23 +00:00
|
|
|
|
2017-10-01 00:37:52 +00:00
|
|
|
FILTER := ../../../nfd/nfd_win.cpp
|
2020-07-31 16:53:50 +00:00
|
|
|
include ../../../common/src-from-vcxproj.mk
|
2018-07-13 16:01:36 +00:00
|
|
|
|
2021-03-16 23:51:24 +00:00
|
|
|
ifdef TRACY_NO_FILESELECTOR
|
|
|
|
CXXFLAGS += -DTRACY_NO_FILESELECTOR
|
2018-07-13 16:01:36 +00:00
|
|
|
else
|
2021-03-16 23:51:24 +00:00
|
|
|
UNAME := $(shell uname -s)
|
|
|
|
ifeq ($(UNAME),Darwin)
|
|
|
|
SRC3 += ../../../nfd/nfd_cocoa.m
|
2022-07-03 11:52:39 +00:00
|
|
|
LIBS += -framework CoreFoundation -framework AppKit -framework UniformTypeIdentifiers
|
2021-03-16 23:51:24 +00:00
|
|
|
else
|
2022-05-09 20:37:40 +00:00
|
|
|
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
|
2021-03-16 23:51:24 +00:00
|
|
|
endif
|
2018-07-13 16:01:36 +00:00
|
|
|
endif
|
2017-09-15 20:45:23 +00:00
|
|
|
|
2020-07-31 16:53:50 +00:00
|
|
|
include ../../../common/unix.mk
|