[2] | 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
|
---|
[846] | 8 | irix-cc*:QMAKE_CXXFLAGS += -no_prelink -ptused
|
---|
[2] | 9 |
|
---|
| 10 | unix:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui
|
---|
| 11 |
|
---|
| 12 | include(../qbase.pri)
|
---|
| 13 |
|
---|
[846] | 14 | !win32:!embedded:!mac:!symbian:CONFIG += x11
|
---|
[2] | 15 | contains(QT_CONFIG, opengl):CONFIG += opengl
|
---|
| 16 | contains(QT_CONFIG, opengles1):CONFIG += opengles1
|
---|
| 17 | contains(QT_CONFIG, opengles2):CONFIG += opengles2
|
---|
[561] | 18 | contains(QT_CONFIG, egl):CONFIG += egl
|
---|
[2] | 19 |
|
---|
| 20 | HEADERS += qgl.h \
|
---|
[846] | 21 | qgl_p.h \
|
---|
| 22 | qglcolormap.h \
|
---|
| 23 | qglpixelbuffer.h \
|
---|
[561] | 24 | qglpixelbuffer_p.h \
|
---|
[846] | 25 | qglframebufferobject.h \
|
---|
[561] | 26 | qglframebufferobject_p.h \
|
---|
| 27 | qglextensions_p.h \
|
---|
| 28 | qglpaintdevice_p.h \
|
---|
[846] | 29 | qglbuffer.h \
|
---|
[2] | 30 |
|
---|
[561] | 31 |
|
---|
[2] | 32 | SOURCES += qgl.cpp \
|
---|
[846] | 33 | qglcolormap.cpp \
|
---|
| 34 | qglpixelbuffer.cpp \
|
---|
| 35 | qglframebufferobject.cpp \
|
---|
[2] | 36 | qglextensions.cpp \
|
---|
[561] | 37 | qglpaintdevice.cpp \
|
---|
[846] | 38 | qglbuffer.cpp \
|
---|
[2] | 39 |
|
---|
[561] | 40 |
|
---|
[2] | 41 | !contains(QT_CONFIG, opengles2) {
|
---|
[561] | 42 | HEADERS += qpaintengine_opengl_p.h
|
---|
| 43 | SOURCES += qpaintengine_opengl.cpp
|
---|
[2] | 44 | }
|
---|
| 45 |
|
---|
[846] | 46 | !contains(QT_CONFIG, opengles1) {
|
---|
[561] | 47 | HEADERS += qglshaderprogram.h \
|
---|
| 48 | qglpixmapfilter_p.h \
|
---|
| 49 | qgraphicsshadereffect_p.h \
|
---|
| 50 | qgraphicssystem_gl_p.h \
|
---|
| 51 | qwindowsurface_gl_p.h \
|
---|
| 52 | qpixmapdata_gl_p.h \
|
---|
| 53 | gl2paintengineex/qglgradientcache_p.h \
|
---|
| 54 | gl2paintengineex/qglengineshadermanager_p.h \
|
---|
| 55 | gl2paintengineex/qgl2pexvertexarray_p.h \
|
---|
| 56 | gl2paintengineex/qpaintengineex_opengl2_p.h \
|
---|
| 57 | gl2paintengineex/qglengineshadersource_p.h \
|
---|
| 58 | gl2paintengineex/qglcustomshaderstage_p.h \
|
---|
[651] | 59 | gl2paintengineex/qtriangulatingstroker_p.h \
|
---|
[846] | 60 | gl2paintengineex/qtriangulator_p.h \
|
---|
[651] | 61 | gl2paintengineex/qtextureglyphcache_gl_p.h
|
---|
[561] | 62 |
|
---|
| 63 | SOURCES += qglshaderprogram.cpp \
|
---|
| 64 | qglpixmapfilter.cpp \
|
---|
| 65 | qgraphicsshadereffect.cpp \
|
---|
| 66 | qgraphicssystem_gl.cpp \
|
---|
| 67 | qwindowsurface_gl.cpp \
|
---|
| 68 | qpixmapdata_gl.cpp \
|
---|
| 69 | gl2paintengineex/qglgradientcache.cpp \
|
---|
| 70 | gl2paintengineex/qglengineshadermanager.cpp \
|
---|
[2] | 71 | gl2paintengineex/qgl2pexvertexarray.cpp \
|
---|
[561] | 72 | gl2paintengineex/qpaintengineex_opengl2.cpp \
|
---|
| 73 | gl2paintengineex/qglcustomshaderstage.cpp \
|
---|
[651] | 74 | gl2paintengineex/qtriangulatingstroker.cpp \
|
---|
[846] | 75 | gl2paintengineex/qtriangulator.cpp \
|
---|
[651] | 76 | gl2paintengineex/qtextureglyphcache_gl.cpp
|
---|
[2] | 77 |
|
---|
| 78 | }
|
---|
| 79 |
|
---|
| 80 | x11 {
|
---|
[846] | 81 | contains(QT_CONFIG, egl) {
|
---|
[2] | 82 | SOURCES += qgl_x11egl.cpp \
|
---|
| 83 | qglpixelbuffer_egl.cpp \
|
---|
| 84 | qgl_egl.cpp \
|
---|
[561] | 85 | qpixmapdata_x11gl_egl.cpp \
|
---|
| 86 | qwindowsurface_x11gl.cpp
|
---|
[2] | 87 |
|
---|
[561] | 88 | HEADERS += qgl_egl_p.h \
|
---|
| 89 | qpixmapdata_x11gl_p.h \
|
---|
| 90 | qwindowsurface_x11gl_p.h
|
---|
[2] | 91 |
|
---|
| 92 | } else {
|
---|
| 93 | SOURCES += qgl_x11.cpp \
|
---|
| 94 | qglpixelbuffer_x11.cpp
|
---|
| 95 | }
|
---|
| 96 |
|
---|
| 97 | contains(QT_CONFIG, fontconfig) {
|
---|
[561] | 98 | contains(QT_CONFIG, system-freetype) {
|
---|
| 99 | embedded:CONFIG += opentype
|
---|
| 100 | # pull in the proper freetype2 include directory
|
---|
[2] | 101 | include($$QT_SOURCE_TREE/config.tests/unix/freetype/freetype.pri)
|
---|
[561] | 102 | LIBS_PRIVATE += -lfreetype
|
---|
| 103 | } else {
|
---|
| 104 | ### Note: how does this compile with a non-system freetype?
|
---|
| 105 | # This probably does not compile
|
---|
| 106 | }
|
---|
[2] | 107 | } else {
|
---|
| 108 | DEFINES *= QT_NO_FREETYPE
|
---|
| 109 | }
|
---|
[561] | 110 |
|
---|
| 111 | LIBS_PRIVATE += $$QMAKE_LIBS_DYNLOAD
|
---|
[2] | 112 | }
|
---|
| 113 |
|
---|
| 114 | mac {
|
---|
| 115 | OBJECTIVE_SOURCES += qgl_mac.mm \
|
---|
| 116 | qglpixelbuffer_mac.mm
|
---|
[561] | 117 | LIBS_PRIVATE += -framework AppKit -framework Carbon
|
---|
[2] | 118 | }
|
---|
| 119 | win32:!wince*: {
|
---|
[846] | 120 | DEFINES += QT_NO_EGL
|
---|
[2] | 121 | SOURCES += qgl_win.cpp \
|
---|
[846] | 122 | qglpixelbuffer_win.cpp
|
---|
[2] | 123 | }
|
---|
| 124 | wince*: {
|
---|
| 125 | SOURCES += qgl_wince.cpp \
|
---|
| 126 | qglpixelbuffer_egl.cpp \
|
---|
[561] | 127 | qgl_egl.cpp
|
---|
[2] | 128 |
|
---|
[846] | 129 | HEADERS += qgl_egl_p.h
|
---|
[2] | 130 | }
|
---|
| 131 |
|
---|
| 132 | embedded {
|
---|
| 133 | SOURCES += qgl_qws.cpp \
|
---|
| 134 | qglpixelbuffer_egl.cpp \
|
---|
| 135 | qglscreen_qws.cpp \
|
---|
| 136 | qglwindowsurface_qws.cpp \
|
---|
| 137 | qgl_egl.cpp
|
---|
| 138 |
|
---|
[561] | 139 | HEADERS += qglscreen_qws.h \
|
---|
[2] | 140 | qglwindowsurface_qws_p.h \
|
---|
[561] | 141 | qgl_egl_p.h
|
---|
[2] | 142 |
|
---|
| 143 | contains(QT_CONFIG, fontconfig) {
|
---|
| 144 | include($$QT_SOURCE_TREE/config.tests/unix/freetype/freetype.pri)
|
---|
| 145 | } else {
|
---|
| 146 | DEFINES *= QT_NO_FREETYPE
|
---|
| 147 | }
|
---|
| 148 | }
|
---|
| 149 |
|
---|
[846] | 150 | symbian {
|
---|
| 151 | SOURCES += qgl_symbian.cpp \
|
---|
| 152 | qglpixelbuffer_egl.cpp \
|
---|
| 153 | qgl_egl.cpp
|
---|
| 154 |
|
---|
| 155 | HEADERS += qgl_egl_p.h
|
---|
| 156 |
|
---|
| 157 | symbian:TARGET.UID3 = 0x2002131A
|
---|
| 158 | }
|
---|
| 159 |
|
---|
[2] | 160 | INCLUDEPATH += ../3rdparty/harfbuzz/src
|
---|