CONFIG -= qt
CONFIG += shared
+CONFIG += use_pkgconfig
-INCLUDEPATH += $$PWD/.. \
- $$PWD/../../ffi
-
-LIBS += -L $$PWD/../../../../lib/ -lffi
+include(../shared.pri)
SOURCES = ../wayland-client.c \
../wayland-protocol.c \
CONFIG -= qt
CONFIG += shared
+CONFIG += use_pkgconfig
-INCLUDEPATH += $$PWD/.. \
- $$PWD/../../ffi
-
-LIBS += -L $$PWD/../../../../lib/ -lffi
+include(../shared.pri)
SOURCES = ../event-loop.c \
../wayland-server.c \
--- /dev/null
+INCLUDEPATH += $$PWD
+
+use_pkgconfig {
+ CONFIG += link_pkgconfig
+ PKGCONFIG += libffi
+} else {
+ LIBS += -L $$PWD/../../../../lib/ -lffi
+ INCLUDEPATH += $$PWD/../ffi
+}