src/opengl/opengl.pro
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
child 33 3e2da88830cd
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
    11 include(../qbase.pri)
    11 include(../qbase.pri)
    12 
    12 
    13 !win32:!embedded:!mac:CONFIG	   += x11
    13 !win32:!embedded:!mac:CONFIG	   += x11
    14 contains(QT_CONFIG, opengl):CONFIG += opengl
    14 contains(QT_CONFIG, opengl):CONFIG += opengl
    15 contains(QT_CONFIG, opengles1):CONFIG += opengles1
    15 contains(QT_CONFIG, opengles1):CONFIG += opengles1
    16 contains(QT_CONFIG, opengles1cl):CONFIG += opengles1cl
       
    17 contains(QT_CONFIG, opengles2):CONFIG += opengles2
    16 contains(QT_CONFIG, opengles2):CONFIG += opengles2
    18 contains(QT_CONFIG, egl):CONFIG += egl
    17 contains(QT_CONFIG, egl):CONFIG += egl
    19 
    18 
    20 HEADERS += qgl.h \
    19 HEADERS += qgl.h \
    21 	   qgl_p.h \
    20 	   qgl_p.h \
    24            qglpixelbuffer_p.h \
    23            qglpixelbuffer_p.h \
    25 	   qglframebufferobject.h  \
    24 	   qglframebufferobject.h  \
    26            qglframebufferobject_p.h  \
    25            qglframebufferobject_p.h  \
    27            qglextensions_p.h \
    26            qglextensions_p.h \
    28            qglpaintdevice_p.h \
    27            qglpaintdevice_p.h \
       
    28            qglbuffer.h \
    29 
    29 
    30 
    30 
    31 SOURCES	+= qgl.cpp \
    31 SOURCES	+= qgl.cpp \
    32 	   qglcolormap.cpp \
    32 	   qglcolormap.cpp \
    33 	   qglpixelbuffer.cpp \
    33 	   qglpixelbuffer.cpp \
    34 	   qglframebufferobject.cpp \
    34 	   qglframebufferobject.cpp \
    35            qglextensions.cpp \
    35            qglextensions.cpp \
    36            qglpaintdevice.cpp \
    36            qglpaintdevice.cpp \
       
    37            qglbuffer.cpp \
    37 
    38 
    38 
    39 
    39 !contains(QT_CONFIG, opengles2) {
    40 !contains(QT_CONFIG, opengles2) {
    40     HEADERS += qpaintengine_opengl_p.h
    41     HEADERS += qpaintengine_opengl_p.h
    41     SOURCES += qpaintengine_opengl.cpp
    42     SOURCES += qpaintengine_opengl.cpp
    42 }
    43 }
    43 
    44 
    44 !contains(QT_CONFIG, opengles1):!contains(QT_CONFIG, opengles1cl) {
    45 !contains(QT_CONFIG, opengles1) {
    45     HEADERS +=  qglshaderprogram.h \
    46     HEADERS +=  qglshaderprogram.h \
    46                 qglpixmapfilter_p.h  \
    47                 qglpixmapfilter_p.h  \
    47                 qgraphicsshadereffect_p.h \
    48                 qgraphicsshadereffect_p.h \
    48                 qgraphicssystem_gl_p.h \
    49                 qgraphicssystem_gl_p.h \
    49                 qwindowsurface_gl_p.h \
    50                 qwindowsurface_gl_p.h \
    53                 gl2paintengineex/qgl2pexvertexarray_p.h \
    54                 gl2paintengineex/qgl2pexvertexarray_p.h \
    54                 gl2paintengineex/qpaintengineex_opengl2_p.h \
    55                 gl2paintengineex/qpaintengineex_opengl2_p.h \
    55                 gl2paintengineex/qglengineshadersource_p.h \
    56                 gl2paintengineex/qglengineshadersource_p.h \
    56                 gl2paintengineex/qglcustomshaderstage_p.h \
    57                 gl2paintengineex/qglcustomshaderstage_p.h \
    57                 gl2paintengineex/qtriangulatingstroker_p.h \
    58                 gl2paintengineex/qtriangulatingstroker_p.h \
       
    59                 gl2paintengineex/qtriangulator_p.h \
    58                 gl2paintengineex/qtextureglyphcache_gl_p.h
    60                 gl2paintengineex/qtextureglyphcache_gl_p.h
    59 
    61 
    60     SOURCES +=  qglshaderprogram.cpp \
    62     SOURCES +=  qglshaderprogram.cpp \
    61                 qglpixmapfilter.cpp \
    63                 qglpixmapfilter.cpp \
    62                 qgraphicsshadereffect.cpp \
    64                 qgraphicsshadereffect.cpp \
    67                 gl2paintengineex/qglengineshadermanager.cpp \
    69                 gl2paintengineex/qglengineshadermanager.cpp \
    68                 gl2paintengineex/qgl2pexvertexarray.cpp \
    70                 gl2paintengineex/qgl2pexvertexarray.cpp \
    69                 gl2paintengineex/qpaintengineex_opengl2.cpp \
    71                 gl2paintengineex/qpaintengineex_opengl2.cpp \
    70                 gl2paintengineex/qglcustomshaderstage.cpp \
    72                 gl2paintengineex/qglcustomshaderstage.cpp \
    71                 gl2paintengineex/qtriangulatingstroker.cpp \
    73                 gl2paintengineex/qtriangulatingstroker.cpp \
       
    74                 gl2paintengineex/qtriangulator.cpp \
    72                 gl2paintengineex/qtextureglyphcache_gl.cpp
    75                 gl2paintengineex/qtextureglyphcache_gl.cpp
    73 
    76 
    74 }
    77 }
    75 
    78 
    76 x11 {
    79 x11 {
    77     contains(QT_CONFIG, opengles1)|contains(QT_CONFIG, opengles1cl)|contains(QT_CONFIG, opengles2) {
    80     contains(QT_CONFIG, egl) {
    78         SOURCES +=  qgl_x11egl.cpp \
    81         SOURCES +=  qgl_x11egl.cpp \
    79                     qglpixelbuffer_egl.cpp \
    82                     qglpixelbuffer_egl.cpp \
    80                     qgl_egl.cpp \
    83                     qgl_egl.cpp \
    81                     qpixmapdata_x11gl_egl.cpp \
    84                     qpixmapdata_x11gl_egl.cpp \
    82                     qwindowsurface_x11gl.cpp
    85                     qwindowsurface_x11gl.cpp
   111     OBJECTIVE_SOURCES += qgl_mac.mm \
   114     OBJECTIVE_SOURCES += qgl_mac.mm \
   112                          qglpixelbuffer_mac.mm
   115                          qglpixelbuffer_mac.mm
   113     LIBS_PRIVATE += -framework AppKit -framework Carbon
   116     LIBS_PRIVATE += -framework AppKit -framework Carbon
   114 }
   117 }
   115 win32:!wince*: {
   118 win32:!wince*: {
       
   119     DEFINES += QT_NO_EGL
   116     SOURCES += qgl_win.cpp \
   120     SOURCES += qgl_win.cpp \
   117 	       qglpixelbuffer_win.cpp
   121 	       qglpixelbuffer_win.cpp
   118 }
   122 }
   119 wince*: {
   123 wince*: {
   120     SOURCES += qgl_wince.cpp \
   124     SOURCES += qgl_wince.cpp \
   121                qglpixelbuffer_egl.cpp \
   125                qglpixelbuffer_egl.cpp \
   122                qgl_egl.cpp
   126                qgl_egl.cpp
   123 
   127 
   124     HEADERS += qgl_cl_p.h \
   128     HEADERS += qgl_egl_p.h
   125                qgl_egl_p.h \
       
   126 }
   129 }
   127 
   130 
   128 embedded {
   131 embedded {
   129     SOURCES += qgl_qws.cpp \
   132     SOURCES += qgl_qws.cpp \
   130                qglpixelbuffer_egl.cpp \
   133                qglpixelbuffer_egl.cpp \