mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 18:51:46 +00:00
673dfd0f02
The new embedded ImGui OpenGL loader has been extended with a couple of functions and definitions needed by TracyTexture.cpp.
37 lines
941 B
Makefile
37 lines
941 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
|
|
|
|
DISPLAY_SERVER := X11
|
|
|
|
ifdef TRACY_USE_WAYLAND
|
|
DISPLAY_SERVER := WAYLAND
|
|
LIBS += $(shell pkg-config --libs wayland-client)
|
|
endif
|
|
|
|
CXXFLAGS += -D"DISPLAY_SERVER_$(DISPLAY_SERVER)"
|
|
|
|
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
|
|
else
|
|
SRC2 += ../../../nfd/nfd_gtk.c
|
|
INCLUDES += $(shell pkg-config --cflags gtk+-3.0)
|
|
LIBS += $(shell pkg-config --libs gtk+-3.0)
|
|
endif
|
|
endif
|
|
|
|
include ../../../common/unix.mk
|