1 | TARGET = QtOpenGL
|
---|
2 | QPRO_PWD = $$PWD
|
---|
3 | QT = core gui
|
---|
4 | DEFINES += QT_BUILD_OPENGL_LIB
|
---|
5 | DEFINES += QT_NO_USING_NAMESPACE
|
---|
6 | win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x63000000
|
---|
7 | solaris-cc*:QMAKE_CXXFLAGS_RELEASE -= -O2
|
---|
8 |
|
---|
9 | unix:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui
|
---|
10 |
|
---|
11 | include(../qbase.pri)
|
---|
12 |
|
---|
13 | !win32:!embedded:!mac:CONFIG += x11
|
---|
14 | contains(QT_CONFIG, opengl):CONFIG += opengl
|
---|
15 | contains(QT_CONFIG, opengles1):CONFIG += opengles1
|
---|
16 | contains(QT_CONFIG, opengles2):CONFIG += opengles2
|
---|
17 |
|
---|
18 | !contains(QT_CONFIG, opengles2) {
|
---|
19 | HEADERS += qgraphicssystem_gl_p.h qwindowsurface_gl_p.h qpixmapdata_gl_p.h
|
---|
20 | SOURCES += qgraphicssystem_gl.cpp qwindowsurface_gl.cpp qpixmapdata_gl.cpp
|
---|
21 | }
|
---|
22 |
|
---|
23 | HEADERS += qgl.h \
|
---|
24 | qgl_p.h \
|
---|
25 | qglcolormap.h \
|
---|
26 | qglpixelbuffer.h \
|
---|
27 | qglframebufferobject.h \
|
---|
28 |
|
---|
29 | SOURCES += qgl.cpp \
|
---|
30 | qglcolormap.cpp \
|
---|
31 | qglpixelbuffer.cpp \
|
---|
32 | qglframebufferobject.cpp \
|
---|
33 | qglextensions.cpp \
|
---|
34 |
|
---|
35 | !contains(QT_CONFIG, opengles2) {
|
---|
36 | HEADERS += qpaintengine_opengl_p.h qglpixmapfilter_p.h
|
---|
37 | SOURCES += qpaintengine_opengl.cpp qglpixmapfilter.cpp
|
---|
38 | }
|
---|
39 |
|
---|
40 | contains(QT_CONFIG, opengles2) {
|
---|
41 | SOURCES += gl2paintengineex/qglgradientcache.cpp \
|
---|
42 | gl2paintengineex/qglpexshadermanager.cpp \
|
---|
43 | gl2paintengineex/qglshader.cpp \
|
---|
44 | gl2paintengineex/qgl2pexvertexarray.cpp \
|
---|
45 | gl2paintengineex/qpaintengineex_opengl2.cpp
|
---|
46 |
|
---|
47 | HEADERS += gl2paintengineex/qglgradientcache_p.h \
|
---|
48 | gl2paintengineex/qglpexshadermanager_p.h \
|
---|
49 | gl2paintengineex/qglshader_p.h \
|
---|
50 | gl2paintengineex/qgl2pexvertexarray_p.h \
|
---|
51 | gl2paintengineex/qpaintengineex_opengl2_p.h
|
---|
52 | }
|
---|
53 |
|
---|
54 |
|
---|
55 | x11 {
|
---|
56 | contains(QT_CONFIG, opengles1)|contains(QT_CONFIG, opengles1cl)|contains(QT_CONFIG, opengles2) {
|
---|
57 | SOURCES += qgl_x11egl.cpp \
|
---|
58 | qglpixelbuffer_egl.cpp \
|
---|
59 | qgl_egl.cpp \
|
---|
60 | qegl.cpp \
|
---|
61 | qegl_x11egl.cpp
|
---|
62 |
|
---|
63 | HEADERS += qegl_p.h \
|
---|
64 | qgl_egl_p.h
|
---|
65 |
|
---|
|
---|