diff options
Diffstat (limited to 'examples/updaterplugin/updaterplugin.pro')
-rw-r--r-- | examples/updaterplugin/updaterplugin.pro | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/examples/updaterplugin/updaterplugin.pro b/examples/updaterplugin/updaterplugin.pro new file mode 100644 index 000000000..14af657fa --- /dev/null +++ b/examples/updaterplugin/updaterplugin.pro @@ -0,0 +1,37 @@ +TEMPLATE = lib +TARGET = Updater + +include( ../../installerbuilder/libinstaller/libinstaller.pri ) + +# maybe wo should not build a static plugin for Qt Creator +CONFIG -= static +CONFIG -= staticlib +CONFIG += shared + +#PROVIDER = KDAB +IDE_PLUGIN_PATH = PlugInst + +IDE_BUILD_TREE = "$$(QTCREATOR_SOURCE_PATH)" +include($$(QTCREATOR_SOURCE_PATH)/src/qtcreatorplugin.pri) +include($$(QTCREATOR_SOURCE_PATH)/src/libs/extensionsystem/extensionsystem.pri) +include($$(QTCREATOR_SOURCE_PATH)/src/plugins/coreplugin/coreplugin.pri) + +QT += gui + +CONFIG += uitools + +LIBS = -L../../installerbuilder/lib -linstaller $$LIBS + +DEST=$$DESTDIR/libUpdater.dylib +# this will make sure we are using the Qt from the QtCreater.app bundle +ddlib="$"$lib +macx:QMAKE_POST_LINK = for lib in `otool -L \"$${DEST}\" | sed -ne \'s,.*\\(libQt[^ ]*\\).*,\1,p\'`; do install_name_tool -change $$[QT_INSTALL_LIBS]/$${ddlib} @executable_path/../Frameworks/$${ddlib} \"$${DEST}\"; done; +macx:QMAKE_POST_LINK += ../../installerbuilder/bin/binarycreator -p packages -c config -t ../../installerbuilder/bin/installerbase -e com.nokia.qtcreator QtCreatorInstaller.app com.nokia.qtcreator ; + +SOURCES += updaterplugin.cpp updatersettingspage.cpp + +HEADERS += updaterplugin.h updatersettingspage.h + +RESOURCES += updaterplugin.qrc + +OTHER_FILES += Updater.pluginspec |