aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools/tools.pro
blob: 688ff570afa2141a46871346c5f50c3077dd03ae (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
include(../../qtcreator.pri)

TEMPLATE = subdirs

SUBDIRS = qtpromaker \
     ../plugins/cpaster/frontend \
     valgrindfake \
     3rdparty \
     buildoutputparser \
     qtc-askpass

isEmpty(QTC_SKIP_SDKTOOL): SUBDIRS += sdktool

QTC_DO_NOT_BUILD_QMLDESIGNER = $$(QTC_DO_NOT_BUILD_QMLDESIGNER)
isEmpty(QTC_DO_NOT_BUILD_QMLDESIGNER):qtHaveModule(quick-private): SUBDIRS += qml2puppet

win32 {
    SUBDIRS += qtcdebugger \
        winrtdebughelper

    isEmpty(QTC_SKIP_WININTERRUPT): SUBDIRS += wininterrupt
}

mac {
    SUBDIRS += iostool
}

SUBDIRS += clangbackend

QTC_DISABLE_CLANG_REFACTORING=$$(QTC_DISABLE_CLANG_REFACTORING)
isEmpty(QTC_DISABLE_CLANG_REFACTORING) {
    SUBDIRS += clangrefactoringbackend
    SUBDIRS += clangpchmanagerbackend
}

isEmpty(BUILD_CPLUSPLUS_TOOLS):BUILD_CPLUSPLUS_TOOLS=$$(BUILD_CPLUSPLUS_TOOLS)
!isEmpty(BUILD_CPLUSPLUS_TOOLS) {
    SUBDIRS += cplusplus-ast2png \
        cplusplus-frontend \
        cplusplus-mkvisitor \
        cplusplus-update-frontend
}

!isEmpty(BREAKPAD_SOURCE_DIR) {
    SUBDIRS += qtcrashhandler
} else {
    linux-* {
        # Build only in debug mode.
        debug_and_release|CONFIG(debug, debug|release) {
            SUBDIRS += qtcreatorcrashhandler
        }
    }
}

exists(perfparser/perfparser.pro) {
    win32 {
        SUBDIRS += perfparser
        PERFPARSER_APP_DESTDIR = $$IDE_BUILD_TREE/bin
        PERFPARSER_APP_INSTALLDIR = $$QTC_PREFIX/bin

        # On windows we take advantage of the fixed path in eblopenbackend.c: "..\lib\elfutils\"
        # So, in order to deploy elfutils with perfparser, set the following:
        # PERFPARSER_ELFUTILS_INSTALLDIR = $$QTC_PREFIX/bin
        # PERFPARSER_ELFUTILS_BACKENDS_INSTALLDIR = $$QTC_PREFIX/lib/elfutils
    } else {
        SUBDIRS += perfparser
        PERFPARSER_APP_DESTDIR = $$IDE_BUILD_TREE/libexec/qtcreator
        PERFPARSER_APP_INSTALLDIR = $$QTC_PREFIX/libexec/qtcreator

        # On linux we have "$ORIGIN/../$LIB/elfutils" in eblopenbackend.c. Unfortunately $LIB
        # can be many different things, so we target the second try where it just loads the
        # plain file name. This also allows us to put libdw and libelf in a subdir of lib.
        # So, in order to deploy elfutils with perfparser, set the following:
        # PERFPARSER_ELFUTILS_INSTALLDIR = $$QTC_PREFIX/lib/elfutils
        # PERFPARSER_ELFUTILS_BACKENDS_INSTALLDIR = $$QTC_PREFIX/lib/elfutils
    }

    cache(PERFPARSER_APP_DESTDIR)
    cache(PERFPARSER_APP_INSTALLDIR)
}

OTHER_FILES += \
    tools.qbs \
    icons/exportapplicationicons.sh \
    icons/exportdocumenttypeicons.sh

# delegate deployqt target
deployqt.CONFIG += recursive
deployqt.recurse = perfparser
QMAKE_EXTRA_TARGETS += deployqt