qtcreator.pro 1.64 KB
Newer Older
Eike Ziller's avatar
Eike Ziller committed
1 2
include(qtcreator.pri)

3
#version check qt
Eike Ziller's avatar
Eike Ziller committed
4
!minQtVersion(4, 7, 4) {
5
    message("Cannot build Qt Creator with Qt version $${QT_VERSION}.")
Eike Ziller's avatar
Eike Ziller committed
6
    error("Use at least Qt 4.7.4.")
7 8
}

Daniel Molkentin's avatar
Daniel Molkentin committed
9
include(doc/doc.pri)
10

con's avatar
con committed
11 12 13
TEMPLATE  = subdirs
CONFIG   += ordered

14
SUBDIRS = src share lib/qtcreator/qtcomponents
15
unix:!macx:!isEmpty(copydata):SUBDIRS += bin
Eike Ziller's avatar
Eike Ziller committed
16 17

OTHER_FILES += dist/copyright_template.txt \
18
    $$files(dist/changes-*)
19 20 21

macx {
    APPBUNDLE = "$$OUT_PWD/bin/Qt Creator.app"
22 23
    deployqt.commands = $$PWD/scripts/deployqtHelper_mac.sh \"$${APPBUNDLE}\"
    bindist.commands = 7z a -mx9 $$OUT_PWD/qtcreator-mac$(INSTALL_EDITION)-$${QTCREATOR_VERSION}$(INSTALL_POSTFIX).7z \"$$OUT_PWD/bin/Qt Creator.app/\"
24
    dmg.commands = $$PWD/scripts/makedmg.sh $$OUT_PWD/bin qt-creator-mac$(INSTALL_EDITION)-$${QTCREATOR_VERSION}$(INSTALL_POSTFIX).dmg
25
    dmg.depends = deployqt
Daniel Molkentin's avatar
Daniel Molkentin committed
26
    QMAKE_EXTRA_TARGETS += dmg
27 28 29
} else {
    deployqt.commands = $$PWD/scripts/deployqt.py -i $(INSTALL_ROOT)
    deployqt.depends = install
Daniel Molkentin's avatar
Daniel Molkentin committed
30 31 32 33 34 35 36 37 38
    bindist.commands = $$PWD/scripts/bindist_helper.py $(INSTALL_ROOT) $${PLATFORM}$(INSTALL_EDITION)-$${QTCREATOR_VERSION}$(INSTALL_POSTFIX)
    win32 {
        bindist.commands ~= s,/,\\\\,g
        deployqt.commands ~= s,/,\\\\,g
        deployartifacts.depends = install
        PLATFORM="windows"
        deployartifacts.commands = git clone "git://gitorious.org/qt-creator/binary-artifacts.git"&& xcopy /s /q /y /i "binary-artifacts\\win32" $(INSTALL_ROOT)&& rmdir /s binary-artifacts
        QMAKE_EXTRA_TARGETS += deployartifacts
    }
39 40
    else:linux-*:PLATFORM="linux-$${QT_ARCH}"
    else:PLATFORM="unknown"
41 42 43
}
bindist.depends = deployqt
QMAKE_EXTRA_TARGETS += deployqt bindist