hiro/qt: Add support for compiling with Qt 6

This commit is contained in:
John Chadwick
2025-09-01 03:42:09 -04:00
committed by Screwtapello
parent b7678f5261
commit ec8aed3f3b

View File

@@ -57,6 +57,12 @@ ifneq ($(filter $(platform),linux bsd),)
hiro.options = -L/usr/local/lib -lX11 $(shell pkg-config --libs gtk+-3.0 gtksourceview-3.0)
endif
ifeq ($(hiro),qt6)
moc = $(shell pkg-config --variable=libexecdir Qt6Core)/moc
hiro.flags = $(flags.cpp) -DHIRO_QT=6 -fPIC $(shell pkg-config --cflags Qt6Core Qt6Gui Qt6Widgets)
hiro.options = -L/usr/local/lib -lX11 $(shell pkg-config --libs Qt6Core Qt6Gui Qt6Widgets)
endif
ifeq ($(hiro),qt5)
moc = $(shell pkg-config --variable=host_bins Qt5Core)/moc
hiro.flags = $(flags.cpp) -DHIRO_QT=5 -fPIC $(shell pkg-config --cflags Qt5Core Qt5Gui Qt5Widgets)