Allow using GTK file chooser instead of portal one (#387).

This commit is contained in:
Bartosz Taudul 2022-05-09 22:37:40 +02:00
parent bdd4d28770
commit 4347b5c99c
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -26,11 +26,17 @@ else
ifeq ($(UNAME),Darwin) ifeq ($(UNAME),Darwin)
SRC3 += ../../../nfd/nfd_cocoa.m SRC3 += ../../../nfd/nfd_cocoa.m
LIBS += -framework CoreFoundation -framework AppKit LIBS += -framework CoreFoundation -framework AppKit
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 else
SRC += ../../../nfd/nfd_portal.cpp SRC += ../../../nfd/nfd_portal.cpp
INCLUDES += $(shell pkg-config --cflags dbus-1) INCLUDES += $(shell pkg-config --cflags dbus-1)
LIBS += $(shell pkg-config --libs dbus-1) LIBS += $(shell pkg-config --libs dbus-1)
endif endif
endif endif
endif
include ../../../common/unix.mk include ../../../common/unix.mk