summaryrefslogtreecommitdiffstats
path: root/examples/updaterplugin/updaterplugin.pro
blob: 14af657fa79fac5a5bf3cf21913cb9c72d5a10cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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