author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 18 Aug 2010 10:37:55 +0300 | |
changeset 33 | 3e2da88830cd |
parent 30 | 5dc02b23752f |
child 37 | 758a864f9613 |
permissions | -rw-r--r-- |
0 | 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 |
|
33
3e2da88830cd
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
8 |
irix-cc*:QMAKE_CXXFLAGS += -no_prelink -ptused |
0 | 9 |
|
10 |
unix:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui |
|
11 |
||
12 |
include(../qbase.pri) |
|
13 |
||
14 |
!win32:!embedded:!mac:CONFIG += x11 |
|
15 |
contains(QT_CONFIG, opengl):CONFIG += opengl |
|
16 |
contains(QT_CONFIG, opengles1):CONFIG += opengles1 |
|
17 |
contains(QT_CONFIG, opengles2):CONFIG += opengles2 |
|
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
18 |
contains(QT_CONFIG, egl):CONFIG += egl |
0 | 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 \ |
|
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
29 |
qglbuffer.h \ |
0 | 30 |
|
31 |
||
32 |
SOURCES += qgl.cpp \ |
|
33 |
qglcolormap.cpp \ |
|
34 |
qglpixelbuffer.cpp \ |
|
35 |
qglframebufferobject.cpp \ |
|
36 |
qglextensions.cpp \ |
|
37 |
qglpaintdevice.cpp \ |
|
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
38 |
qglbuffer.cpp \ |
0 | 39 |
|
40 |
||
41 |
!contains(QT_CONFIG, opengles2) { |
|
42 |
HEADERS += qpaintengine_opengl_p.h |
|
43 |
SOURCES += qpaintengine_opengl.cpp |
|
44 |
} |
|
45 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
46 |
!contains(QT_CONFIG, opengles1) { |
0 | 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 \ |
|
18
2f34d5167611
Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
59 |
gl2paintengineex/qtriangulatingstroker_p.h \ |
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
60 |
gl2paintengineex/qtriangulator_p.h \ |
18
2f34d5167611
Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
61 |
gl2paintengineex/qtextureglyphcache_gl_p.h |
0 | 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 \ |
|
18
2f34d5167611
Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
74 |
gl2paintengineex/qtriangulatingstroker.cpp \ |
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
75 |
gl2paintengineex/qtriangulator.cpp \ |
18
2f34d5167611
Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
76 |
gl2paintengineex/qtextureglyphcache_gl.cpp |
0 | 77 |
|
78 |
} |
|
79 |
||
80 |
x11 { |
|
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
81 |
contains(QT_CONFIG, egl) { |
0 | 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? |
|
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
105 |
# This probably does not compile |
0 | 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*: { |
|
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
120 |
DEFINES += QT_NO_EGL |
0 | 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 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
129 |
HEADERS += qgl_egl_p.h |
0 | 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 |
INCLUDEPATH += ../3rdparty/harfbuzz/src |