mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 22:54:35 +00:00
7dbfed9aea
The new NFD library is not using this information, and the old one was using it only on Windows. Oh well. Removal of this functionality also removes some build-time decisions.
34 lines
977 B
Makefile
34 lines
977 B
Makefile
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
|