summaryrefslogtreecommitdiffstats
path: root/src/repparser/repparser.pro
blob: 4609b36e4e2631a5a476f9247560fe2f2de9b68e (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
TARGET = QtRepParser
MODULE = repparser

# Dont produce a library
CONFIG += header_module

load(qt_module)

def_build = debug
contains(QT_CONFIG, release, debug|release): def_build = release
!debug_and_release|!build_all|CONFIG($$def_build, debug|release) {
    lib_bundle {
        # Make sure we install parser.g to the respective Frameworks include path if required
        FRAMEWORK_DATA.version = Versions
        FRAMEWORK_DATA.files = $$PWD/parser.g
        FRAMEWORK_DATA.path = Headers
        QMAKE_BUNDLE_DATA += FRAMEWORK_DATA
    } else {
        extra_headers.files = $$PWD/parser.g
        extra_headers.path = $$[QT_INSTALL_HEADERS]/$$MODULE_INCNAME
        !prefix_build {
            !equals(_PRO_FILE_PWD_, $$OUT_PWD): COPIES += extra_headers
        } else {
            INSTALLS += extra_headers
        }
    }
}

PUBLIC_HEADERS += \
    $$PWD/qregexparser.h

HEADERS += $$PUBLIC_HEADERS