summaryrefslogtreecommitdiffstats
path: root/src/angle/src/compiler/preprocessor/preprocessor.pro
blob: 12f644870d1593a74d2547355b3492c44b12c46e (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
CONFIG += static
include(../../config.pri)

INCLUDEPATH = $$ANGLE_DIR/src/compiler/preprocessor

DEFINES += _SECURE_SCL=0


FLEX_SOURCES =  \
    $$ANGLE_DIR/src/compiler/preprocessor/Tokenizer.l

BISON_SOURCES = \
    $$ANGLE_DIR/src/compiler/preprocessor/ExpressionParser.y

HEADERS += \
    $$ANGLE_DIR/src/compiler/preprocessor/DiagnosticsBase.h \
    $$ANGLE_DIR/src/compiler/preprocessor/DirectiveHandlerBase.h \
    $$ANGLE_DIR/src/compiler/preprocessor/DirectiveParser.h \
    $$ANGLE_DIR/src/compiler/preprocessor/ExpressionParser.h \
    $$ANGLE_DIR/src/compiler/preprocessor/Input.h \
    $$ANGLE_DIR/src/compiler/preprocessor/length_limits.h \
    $$ANGLE_DIR/src/compiler/preprocessor/Lexer.h \
    $$ANGLE_DIR/src/compiler/preprocessor/Macro.h \
    $$ANGLE_DIR/src/compiler/preprocessor/MacroExpander.h \
    $$ANGLE_DIR/src/compiler/preprocessor/numeric_lex.h \
    $$ANGLE_DIR/src/compiler/preprocessor/pp_utils.h \
    $$ANGLE_DIR/src/compiler/preprocessor/Preprocessor.h \
    $$ANGLE_DIR/src/compiler/preprocessor/SourceLocation.h \
    $$ANGLE_DIR/src/compiler/preprocessor/Token.h \
    $$ANGLE_DIR/src/compiler/preprocessor/Tokenizer.h

SOURCES += \
    $$ANGLE_DIR/src/compiler/preprocessor/DiagnosticsBase.cpp \
    $$ANGLE_DIR/src/compiler/preprocessor/DirectiveHandlerBase.cpp \
    $$ANGLE_DIR/src/compiler/preprocessor/DirectiveParser.cpp \
    $$ANGLE_DIR/src/compiler/preprocessor/Input.cpp \
    $$ANGLE_DIR/src/compiler/preprocessor/Lexer.cpp \
    $$ANGLE_DIR/src/compiler/preprocessor/Macro.cpp \
    $$ANGLE_DIR/src/compiler/preprocessor/MacroExpander.cpp \
    $$ANGLE_DIR/src/compiler/preprocessor/Preprocessor.cpp \
    $$ANGLE_DIR/src/compiler/preprocessor/Token.cpp

# NOTE: 'flex' and 'bison' can be found in qt5/gnuwin32/bin
flex.commands = $$addGnuPath(flex) --noline --nounistd --outfile=${QMAKE_FILE_OUT} ${QMAKE_FILE_NAME}
flex.output = $${BUILDSUBDIR}${QMAKE_FILE_BASE}.cpp
flex.input = FLEX_SOURCES
flex.dependency_type = TYPE_C
flex.variable_out = GENERATED_SOURCES
QMAKE_EXTRA_COMPILERS += flex

bison.commands = $$addGnuPath(bison) --no-lines --skeleton=yacc.c --output=${QMAKE_FILE_OUT} ${QMAKE_FILE_NAME}
bison.output = $${BUILDSUBDIR}${QMAKE_FILE_BASE}.cpp
bison.input = BISON_SOURCES
bison.dependency_type = TYPE_C
bison.variable_out = GENERATED_SOURCES
QMAKE_EXTRA_COMPILERS += bison