| 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 |  | 
|---|
| 66 | } else { | 
|---|
| 67 | SOURCES +=  qgl_x11.cpp \ | 
|---|
| 68 | qglpixelbuffer_x11.cpp | 
|---|
| 69 | } | 
|---|
| 70 |  | 
|---|
| 71 | contains(QT_CONFIG, fontconfig) { | 
|---|
| 72 | include($$QT_SOURCE_TREE/config.tests/unix/freetype/freetype.pri) | 
|---|
| 73 | } else { | 
|---|
| 74 | DEFINES *= QT_NO_FREETYPE | 
|---|
| 75 | } | 
|---|
| 76 | } | 
|---|
| 77 |  | 
|---|
| 78 | mac { | 
|---|
| 79 | OBJECTIVE_SOURCES += qgl_mac.mm \ | 
|---|
| 80 | qglpixelbuffer_mac.mm | 
|---|
| 81 | LIBS += -framework AppKit | 
|---|
| 82 | } | 
|---|
| 83 | win32:!wince*: { | 
|---|
| 84 | SOURCES += qgl_win.cpp \ | 
|---|
| 85 | qglpixelbuffer_win.cpp | 
|---|
| 86 | } | 
|---|
| 87 | wince*: { | 
|---|
| 88 | SOURCES += qgl_wince.cpp \ | 
|---|
| 89 | qglpixelbuffer_egl.cpp \ | 
|---|
| 90 | qgl_egl.cpp \ | 
|---|
| 91 | qegl.cpp \ | 
|---|
| 92 | qegl_wince.cpp | 
|---|
| 93 |  | 
|---|
| 94 | HEADERS += qgl_cl_p.h \ | 
|---|
| 95 | qgl_egl_p.h \ | 
|---|
| 96 | qegl_p.h | 
|---|
| 97 | } | 
|---|
| 98 |  | 
|---|
| 99 | embedded { | 
|---|
| 100 | SOURCES += qgl_qws.cpp \ | 
|---|
| 101 | qglpaintdevice_qws.cpp \ | 
|---|
| 102 | qglpixelbuffer_egl.cpp \ | 
|---|
| 103 | qglscreen_qws.cpp \ | 
|---|
| 104 | qglwindowsurface_qws.cpp \ | 
|---|
| 105 | qegl.cpp \ | 
|---|
| 106 | qegl_qws.cpp \ | 
|---|
| 107 | qgl_egl.cpp | 
|---|
| 108 |  | 
|---|
| 109 | HEADERS += qglpaintdevice_qws_p.h \ | 
|---|
| 110 | qglscreen_qws.h \ | 
|---|
| 111 | qglwindowsurface_qws_p.h \ | 
|---|
| 112 | qgl_egl_p.h \ | 
|---|
| 113 | qegl_p.h | 
|---|
| 114 |  | 
|---|
| 115 | contains(QT_CONFIG, fontconfig) { | 
|---|
| 116 | include($$QT_SOURCE_TREE/config.tests/unix/freetype/freetype.pri) | 
|---|
| 117 | } else { | 
|---|
| 118 | DEFINES *= QT_NO_FREETYPE | 
|---|
| 119 | } | 
|---|
| 120 | } | 
|---|
| 121 |  | 
|---|
| 122 | INCLUDEPATH += ../3rdparty/harfbuzz/src | 
|---|
| 123 |  | 
|---|
| 124 | wince*: { | 
|---|
| 125 | contains(QT_CONFIG,opengles1) { | 
|---|
| 126 | QMAKE_LIBS += "libGLES_CM.lib" | 
|---|
| 127 | } | 
|---|
| 128 | contains(QT_CONFIG,opengles1cl) { | 
|---|
| 129 | QMAKE_LIBS += "libGLES_CL.lib" | 
|---|
| 130 | } | 
|---|
| 131 | contains(QT_CONFIG,opengles2) { | 
|---|
| 132 | QMAKE_LIBS += "libGLESv2.lib" | 
|---|
| 133 | } | 
|---|
| 134 |  | 
|---|
| 135 | } else { | 
|---|
| 136 | QMAKE_LIBS += $$QMAKE_LIBS_OPENGL | 
|---|
| 137 | } | 
|---|