QT -= gui TEMPLATE = lib DEFINES += QMAC_LIBRARY CONFIG += c++11 win32:CONFIG(debug, debug|release): TARGET = $${TARGET}d # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 exists(/etc/astra_version) { SOURCES += mac.cpp LIBS += -lparsec-mac } else { SOURCES += nomac.cpp } HEADERS += \ qmac.h target.path = /lib # lib/dll install location headers.path = /include # headers install location headers.files = $$HEADERS