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
9 unix
:QMAKE_PKGCONFIG_REQUIRES
= QtCore QtGui
13 !win32
:!embedded
:!mac
:CONFIG
+= x11
14 contains(QT_CONFIG
, opengl
):CONFIG
+= opengl
15 contains(QT_CONFIG
, opengles1
):CONFIG
+= opengles1
16 contains(QT_CONFIG
, opengles1cl
):CONFIG
+= opengles1cl
17 contains(QT_CONFIG
, opengles2
):CONFIG
+= opengles2
19 contains(QT_CONFIG
, opengles
.*) {
20 for(p
, QMAKE_LIBDIR_EGL
) {
21 exists($$p
):LIBS_PRIVATE
+= -L$$p
23 !isEmpty(QMAKE_INCDIR_EGL
): INCLUDEPATH
+= $$QMAKE_INCDIR_EGL
24 !isEmpty(QMAKE_LIBS_EGL
): LIBS_PRIVATE
+= $$QMAKE_LIBS_EGL
32 qglframebufferobject
.h \
33 qglframebufferobject_p
.h \
41 qglframebufferobject
.cpp \
46 !contains(QT_CONFIG
, opengles2
) {
47 HEADERS
+= qpaintengine_opengl_p
.h
48 SOURCES
+= qpaintengine_opengl
.cpp
51 !contains(QT_CONFIG
, opengles1
):!contains(QT_CONFIG
, opengles1cl
) {
52 HEADERS
+= qglshaderprogram
.h \
54 qgraphicsshadereffect_p
.h \
55 qgraphicssystem_gl_p
.h \
56 qwindowsurface_gl_p
.h \
58 gl2paintengineex
/qglgradientcache_p
.h \
59 gl2paintengineex
/qglengineshadermanager_p
.h \
60 gl2paintengineex
/qgl2pexvertexarray_p
.h \
61 gl2paintengineex
/qpaintengineex_opengl2_p
.h \
62 gl2paintengineex
/qglengineshadersource_p
.h \
63 gl2paintengineex
/qglcustomshaderstage_p
.h
65 SOURCES
+= qglshaderprogram
.cpp \
67 qgraphicsshadereffect
.cpp \
68 qgraphicssystem_gl
.cpp \
69 qwindowsurface_gl
.cpp \
71 gl2paintengineex
/qglgradientcache
.cpp \
72 gl2paintengineex
/qglengineshadermanager
.cpp \
73 gl2paintengineex
/qgl2pexvertexarray
.cpp \
74 gl2paintengineex
/qpaintengineex_opengl2
.cpp \
75 gl2paintengineex
/qglcustomshaderstage
.cpp
80 contains(QT_CONFIG
, opengles1
)|contains(QT_CONFIG
, opengles1cl
)|contains(QT_CONFIG
, opengles2
) {
81 SOURCES
+= qgl_x11egl
.cpp \
82 qglpixelbuffer_egl
.cpp \
85 HEADERS
+= qgl_egl_p
.h
88 SOURCES
+= qgl_x11
.cpp \
89 qglpixelbuffer_x11
.cpp
92 contains(QT_CONFIG
, fontconfig
) {
93 contains(QT_CONFIG
, system
-freetype
) {
94 embedded
:CONFIG
+= opentype
95 # pull in the proper freetype2 include directory
96 include($$QT_SOURCE_TREE
/config
.tests
/unix
/freetype
/freetype
.pri
)
97 LIBS_PRIVATE
+= -lfreetype
99 ### Note: how does this compile with a non-system freetype?
100 # This probably doesn't compile
103 DEFINES *= QT_NO_FREETYPE
106 LIBS_PRIVATE += $$QMAKE_LIBS_DYNLOAD
110 OBJECTIVE_SOURCES += qgl_mac.mm \
111 qglpixelbuffer_mac.mm
112 LIBS_PRIVATE += -framework AppKit -framework Carbon
115 SOURCES += qgl_win.cpp \
116 qglpixelbuffer_win.cpp
119 SOURCES += qgl_wince.cpp \
120 qglpixelbuffer_egl.cpp \
123 HEADERS += qgl_cl_p.h \
128 SOURCES += qgl_qws.cpp \
129 qglpixelbuffer_egl.cpp \
131 qglwindowsurface_qws.cpp \
134 HEADERS += qglscreen_qws.h \
135 qglwindowsurface_qws_p.h \
138 contains(QT_CONFIG, fontconfig) {
139 include($$QT_SOURCE_TREE/config.tests/unix/freetype/freetype.pri)
141 DEFINES *= QT_NO_FREETYPE
145 INCLUDEPATH += ../3rdparty/harfbuzz/src
148 contains(QT_CONFIG,opengles1) {
149 QMAKE_LIBS += "libGLES_CM.lib"
151 contains(QT_CONFIG,opengles1cl) {
152 QMAKE_LIBS += "libGLES_CL.lib"
154 contains(QT_CONFIG,opengles2) {
155 QMAKE_LIBS += "libGLESv2.lib"
159 LIBS_PRIVATE += $$QMAKE_LIBS_OPENGL
160 LIBS += $$QMAKE_LFLAGS_OPENGL