From 4347b5c99c18bafb7356ab6cb14ac077737f69e5 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 9 May 2022 22:37:40 +0200 Subject: [PATCH] Allow using GTK file chooser instead of portal one (#387). --- profiler/build/unix/build.mk | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/profiler/build/unix/build.mk b/profiler/build/unix/build.mk index 5a8b94af..7bce877c 100644 --- a/profiler/build/unix/build.mk +++ b/profiler/build/unix/build.mk @@ -27,9 +27,15 @@ else SRC3 += ../../../nfd/nfd_cocoa.m LIBS += -framework CoreFoundation -framework AppKit else - SRC += ../../../nfd/nfd_portal.cpp - INCLUDES += $(shell pkg-config --cflags dbus-1) - LIBS += $(shell pkg-config --libs dbus-1) + 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