source: trunk/src/opengl/opengl.pro@ 1028

Last change on this file since 1028 was 846, checked in by Dmitry A. Kuminov, 14 years ago

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

File size: 4.7 KB
Line 
1TARGET = QtOpenGL
2QPRO_PWD = $$PWD
3QT = core gui
4DEFINES += QT_BUILD_OPENGL_LIB
5DEFINES += QT_NO_USING_NAMESPACE
6win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x63000000
7solaris-cc*:QMAKE_CXXFLAGS_RELEASE -= -O2
8irix-cc*:QMAKE_CXXFLAGS += -no_prelink -ptused
9
10unix:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui
11
12include(../qbase.pri)
13
14!win32:!embedded:!mac:!symbian:CONFIG += x11
15contains(QT_CONFIG, opengl):CONFIG += opengl
16contains(QT_CONFIG, opengles1):CONFIG += opengles1
17contains(QT_CONFIG, opengles2):CONFIG += opengles2
18contains(QT_CONFIG, egl):CONFIG += egl
19
20HEADERS += 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
32SOURCES += 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
80x11 {
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
114mac {
115 OBJECTIVE_SOURCES += qgl_mac.mm \
116 qglpixelbuffer_mac.mm
117 LIBS_PRIVATE += -framework AppKit -framework Carbon
118}
119win32:!wince*: {
120 DEFINES += QT_NO_EGL
121 SOURCES += qgl_win.cpp \
122 qglpixelbuffer_win.cpp
123}
124wince*: {
125 SOURCES += qgl_wince.cpp \
126 qglpixelbuffer_egl.cpp \
127 qgl_egl.cpp
128
129 HEADERS += qgl_egl_p.h
130}
131
132embedded {
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
150symbian {
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
160INCLUDEPATH += ../3rdparty/harfbuzz/src
Note: See TracBrowser for help on using the repository browser.