lycis / QtDropbox

Dropbox API for Qt
GNU Lesser General Public License v3.0
102 stars 47 forks source link

Support for OS X Framework #19

Closed chmmou closed 11 years ago

chmmou commented 11 years ago

The usage of this OS X Framework can be used in your own project like this

macx { INCLUDEPATH += $${QTDROPBOXDIR}/QtDropbox.framework/Versions/A/Headers DEPENDPATH += $${QTDROPBOXDIR}/QtDropbox.framework/Versions/A/Headers

QMAKE_PRE_LINK = rm -rf $${DESTDIR}/$${TARGET}.app/Contents/Frameworks && \ mkdir -p $${DESTDIR}/$${TARGET}.app/Contents/Frameworks && \ cp -R $${QTDROPBOXDIR}/QtDropbox.framework \ $${DESTDIR}/$${TARGET}.app/Contents/Frameworks/QtDropbox.framework

LIBS += -F$${DESTDIR}/$${TARGET}.app/Contents/Frameworks LIBS += -framework QtDropbox }