aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/app.pro
blob: 0894b2a7261e8b1c5e579e8722e687a4fde928c4 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
IDE_BUILD_TREE = $$OUT_PWD/../../

include(../qworkbench.pri)
include(../shared/qtsingleapplication/qtsingleapplication.pri)

TEMPLATE = app
TARGET = $$IDE_APP_TARGET
DESTDIR = ../../bin


SOURCES += main.cpp

include(../rpath.pri)

win32 {
        RC_FILE = qtcreator.rc
}

macx {
        ICON = qtcreator.icns
}

macx {
    CONFIG(debug, debug|release):LIBS *= -lExtensionSystem_debug -lAggregation_debug
    else:LIBS *= -lExtensionSystem -lAggregation
}
win32 {
    CONFIG(debug, debug|release):LIBS *= -lExtensionSystemd -lAggregationd
    else:LIBS *= -lExtensionSystem -lAggregation
}
unix:!macx {
    LIBS *= -lExtensionSystem -lAggregation

    # make sure the wrapper is in place
    !exists($$OUT_PWD/app.pro) {
        # we are shadow build
        COPYSRC = $$PWD/$$DESTDIR/$$IDE_APP_WRAPPER
        COPYDEST = $$OUT_PWD/$$DESTDIR/$$IDE_APP_WRAPPER
        win32:COPYSRC ~= s|/+|\|
        win32:COPYDEST ~= s|/+|\|
        unix:SEPARATOR = ;
        win32:SEPARATOR = &
        QMAKE_POST_LINK += $${QMAKE_COPY_FILE} $${COPYSRC} $${COPYDEST} $$SEPARATOR
    }

    wrapper.files  = $$OUT_PWD/$$DESTDIR/$$IDE_APP_WRAPPER
    wrapper.path   = /bin

    target.path  = /bin

    INSTALLS    += target wrapper

}

include(../../share/share.pri)