| 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 | irix-cc*:QMAKE_CXXFLAGS += -no_prelink -ptused
|
|---|
| 9 |
|
|---|
| 10 | unix:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui
|
|---|
| 11 |
|
|---|
| 12 | include(../qbase.pri)
|
|---|
| 13 |
|
|---|
| 14 | !win32:!embedded:!mac:!symbian:CONFIG += x11
|
|---|
| 15 | contains(QT_CONFIG, opengl):CONFIG += opengl
|
|---|
| 16 | contains(QT_CONFIG, opengles1):CONFIG += opengles1
|
|---|
| 17 | contains(QT_CONFIG, opengles2):CONFIG += opengles2
|
|---|
| 18 | contains(QT_CONFIG, egl):CONFIG += egl
|
|---|
| 19 |
|
|---|
| 20 | HEADERS += qgl.h \
|
|---|
| 21 | qgl_p.h \
|
|---|
| 22 | qglcolormap.h \
|
|---|
| 23 | qglpixelbuffer.h \
|
|---|
| 24 | qglpixelbuffer_p.h \
|
|---|
| 25 | qglframebufferobject.h \
|
|---|
| 26 | qglframebufferobject_p.h \
|
|---|
| 27 | qglextensions_p.h \
|
|---|
| 28 | qglpaintdevice_p.h \
|
|---|
| 29 | qglbuffer.h \
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 | SOURCES += qgl.cpp \
|
|---|
| 33 | qglcolormap.cpp \
|
|---|
| 34 | qglpixelbuffer.cpp \
|
|---|
| 35 | qglframebufferobject.cpp \
|
|---|
| 36 | qglextensions.cpp \
|
|---|
| 37 | qglpaintdevice.cpp \
|
|---|
| 38 | qglbuffer.cpp \
|
|---|
| 39 |
|
|---|
| 40 |
|
|---|
| 41 | !contains(QT_CONFIG, opengles2) {
|
|---|
| 42 | HEADERS += qpaintengine_opengl_p.h
|
|---|
| 43 | SOURCES += qpaintengine_opengl.cpp
|
|---|
| 44 | }
|
|---|
| 45 |
|
|---|
| 46 | !contains(QT_CONFIG, opengles1) {
|
|---|
| 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 \
|
|---|
| 59 | gl2paintengineex/qtriangulatingstroker_p.h \
|
|---|
| 60 | gl2paintengineex/qtriangulator_p.h \
|
|---|
| 61 | gl2paintengineex/qtextureglyphcache_gl_p.h
|
|---|
| 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 \
|
|---|
| 71 | gl2paintengineex/qgl2pexvertexarray.cpp \
|
|---|
| 72 | gl2paintengineex/qpaintengineex_opengl2.cpp \
|
|---|
| 73 | gl2paintengineex/qglcustomshaderstage.cpp \
|
|---|
| 74 | gl2paintengineex/qtriangulatingstroker.cpp \
|
|---|
| 75 | gl2paintengineex/qtriangulator.cpp \
|
|---|
| 76 | gl2paintengineex/qtextureglyphcache_gl.cpp
|
|---|
| 77 |
|
|---|
| 78 | }
|
|---|
| 79 |
|
|---|
| 80 | x11 {
|
|---|
| 81 | contains(QT_CONFIG, egl) {
|
|---|
| 82 | SOURCES += qgl_x11egl.cpp \
|
|---|
| 83 | qglpixelbuffer_egl.cpp \
|
|---|
| 84 | qgl_egl.cpp \
|
|---|
| 85 | qpixmapdata_x11gl_egl.cpp \
|
|---|
| 86 | qwindowsurface_x11gl.cpp
|
|---|
| 87 |
|
|---|
| 88 | HEADERS += qgl_egl_p.h \
|
|---|
| 89 | qpixmapdata_x11gl_p.h \
|
|---|
| 90 | qwindowsurface_x11gl_p.h
|
|---|
| 91 |
|
|---|
| 92 | } else {
|
|---|
| 93 | SOURCES += qgl_x11.cpp \
|
|---|
| 94 | qglpixelbuffer_x11.cpp
|
|---|
| 95 | }
|
|---|
| 96 |
|
|---|
| 97 | contains(QT_CONFIG, fontconfig) {
|
|---|
| 98 | contains(QT_CONFIG, system-freetype) {
|
|---|
| 99 | embedded:CONFIG += opentype
|
|---|
| 100 | # pull in the proper freetype2 include directory
|
|---|
| 101 | include($$QT_SOURCE_TREE/config.tests/unix/freetype/freetype.pri)
|
|---|
| 102 | LIBS_PRIVATE += -lfreetype
|
|---|
| 103 | } else {
|
|---|
| 104 | ### Note: how does this compile with a non-system freetype?
|
|---|
| 105 | # This probably does not compile
|
|---|
| 106 | }
|
|---|
| 107 | } else {
|
|---|
| 108 | DEFINES *= QT_NO_FREETYPE
|
|---|
| 109 | }
|
|---|
| 110 |
|
|---|
| 111 | LIBS_PRIVATE += $$QMAKE_LIBS_DYNLOAD
|
|---|
| 112 | }
|
|---|
| 113 |
|
|---|
| 114 | mac {
|
|---|
| 115 | OBJECTIVE_SOURCES += qgl_mac.mm \
|
|---|
| 116 | qglpixelbuffer_mac.mm
|
|---|
| 117 | LIBS_PRIVATE += -framework AppKit -framework Carbon
|
|---|
| 118 | }
|
|---|
| 119 | win32:!wince*: {
|
|---|
| 120 | DEFINES += QT_NO_EGL
|
|---|
| 121 | SOURCES += qgl_win.cpp \
|
|---|
| 122 | qglpixelbuffer_win.cpp
|
|---|
| 123 | }
|
|---|
| 124 | wince*: {
|
|---|
| 125 | SOURCES += qgl_wince.cpp \
|
|---|
| 126 | qglpixelbuffer_egl.cpp \
|
|---|
| 127 | qgl_egl.cpp
|
|---|
| 128 |
|
|---|
| 129 | HEADERS += qgl_egl_p.h
|
|---|
| 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 |
|
|---|
| 139 | HEADERS += qglscreen_qws.h \
|
|---|
| 140 | qglwindowsurface_qws_p.h \
|
|---|
| 141 | qgl_egl_p.h
|
|---|
| 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 |
|
|---|
| 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 |
|
|---|
| 160 | INCLUDEPATH += ../3rdparty/harfbuzz/src
|
|---|