summaryrefslogtreecommitdiffstats
path: root/src/angle/src/compiler/preprocessor
diff options
context:
space:
mode:
authorJason Barron <jason.barron@digia.com>2012-10-15 14:16:51 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-24 02:29:15 +0200
commite0c0e83fd5534b24f18d5e02a453182df54933e0 (patch)
treeb0277ef33d668f49a02203de2c99b1cfbaad5291 /src/angle/src/compiler/preprocessor
parent84d09214bc54b4a0cf9860aa27e78ae27bfd69f9 (diff)
Add ANGLE as a 3rdparty library to Qt.
ANGLE is a component that implements the OpenGL ES 2.0 API on top of DirectX 9. See the following for more info: http://code.google.com/p/angleproject/ ANGLE is now the default configuration on Windows. If you want to use desktop OpenGL, you should build Qt with the following configure options: -opengl desktop To configure Qt to use another OpenGL ES 2 implementation, you should use: -opengl es2 -no-angle Task-number: QTBUG-24207 Change-Id: Iefcbeaa37ed920f431729749ab8333b248fe5134 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/angle/src/compiler/preprocessor')
-rw-r--r--src/angle/src/compiler/preprocessor/preprocessor.pro58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/angle/src/compiler/preprocessor/preprocessor.pro b/src/angle/src/compiler/preprocessor/preprocessor.pro
new file mode 100644
index 0000000000..12f83d5281
--- /dev/null
+++ b/src/angle/src/compiler/preprocessor/preprocessor.pro
@@ -0,0 +1,58 @@
+TEMPLATE = lib
+CONFIG += static
+TARGET = preprocessor
+
+include(../../config.pri)
+
+INCLUDEPATH = $$ANGLE_DIR/src/compiler/preprocessor/new
+
+DEFINES += _SECURE_SCL=0
+
+
+FLEX_SOURCES = \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/Tokenizer.l
+
+BISON_SOURCES = \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/ExpressionParser.y
+
+HEADERS += \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/Diagnostics.h \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/DirectiveHandler.h \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/DirectiveParser.h \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/ExpressionParser.h \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/Input.h \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/Lexer.h \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/Macro.h \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/MacroExpander.h \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/numeric_lex.h \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/pp_utils.h \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/Preprocessor.h \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/SourceLocation.h \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/Token.h \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/Tokenizer.h
+
+SOURCES += \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/Diagnostics.cpp \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/DirectiveHandler.cpp \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/DirectiveParser.cpp \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/Input.cpp \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/Lexer.cpp \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/Macro.cpp \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/MacroExpander.cpp \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/Preprocessor.cpp \
+ $$ANGLE_DIR/src/compiler/preprocessor/new/Token.cpp
+
+# NOTE: 'win_flex' and 'bison' can be found in qt5/gnuwin32/bin
+flex.commands = $$addGnuPath(win_flex) --noline --nounistd --outfile=${QMAKE_FILE_BASE}.cpp ${QMAKE_FILE_NAME}
+flex.output = ${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_BASE}.cpp ${QMAKE_FILE_NAME}
+bison.output = ${QMAKE_FILE_BASE}.cpp
+bison.input = BISON_SOURCES
+bison.dependency_type = TYPE_C
+bison.variable_out = GENERATED_SOURCES
+QMAKE_EXTRA_COMPILERS += bison