summaryrefslogtreecommitdiff
path: root/src/libs/qmljs/qmljs-lib.pri
blob: ea0cb7bc520e2a84d143e9a41d0af96e0c2a9b26 (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
contains(CONFIG, dll) {
    DEFINES += QML_BUILD_LIB
} else {
    DEFINES += QML_BUILD_STATIC_LIB
}

include(parser/parser.pri)

DEFINES += QSCRIPTHIGHLIGHTER_BUILD_LIB

DEPENDPATH += $$PWD
INCLUDEPATH += $$PWD/..

HEADERS += \
    $$PWD/qml_global.h \
    $$PWD/qmlidcollector.h \
    $$PWD/qmldocument.h \
    $$PWD/qmlpackageinfo.h \
    $$PWD/qmlsymbol.h \
    $$PWD/qmlmetatypebackend.h \
    $$PWD/qmltypesystem.h \
    $$PWD/qscriptincrementalscanner.h

SOURCES += \
    $$PWD/qmlidcollector.cpp \
    $$PWD/qmldocument.cpp \
    $$PWD/qmlsymbol.cpp \
    $$PWD/qmlpackageinfo.cpp \
    $$PWD/qmlmetatypebackend.cpp \
    $$PWD/qmltypesystem.cpp \
    $$PWD/qscriptincrementalscanner.cpp

contains(QT_CONFIG, declarative) {
    QT += declarative

    DEFINES += BUILD_DECLARATIVE_BACKEND

    HEADERS += \
        $$PWD/qtdeclarativemetatypebackend.h

    SOURCES += \
        $$PWD/qtdeclarativemetatypebackend.cpp
}

contains(QT, gui) {
    SOURCES += $$PWD/qscripthighlighter.cpp $$PWD/qscriptindenter.cpp
    HEADERS += $$PWD/qscripthighlighter.h $$PWD/qscriptindenter.h
}