aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/scenegraph.pri
blob: b5c72f521c977bc01083fcd71daa23bd99330ddf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
DEFINES += QSG_SEPARATE_INDEX_BUFFER
# DEFINES += QSG_DISTANCEFIELD_CACHE_DEBUG

# Core API
HEADERS += \
    $$PWD/coreapi/qsggeometry.h \
    $$PWD/coreapi/qsgmaterial.h \
    $$PWD/coreapi/qsgmaterialshader_p.h \
    $$PWD/coreapi/qsgnode.h \
    $$PWD/coreapi/qsgnode_p.h \
    $$PWD/coreapi/qsgnodeupdater_p.h \
    $$PWD/coreapi/qsgabstractrenderer.h \
    $$PWD/coreapi/qsgabstractrenderer_p.h \
    $$PWD/coreapi/qsgrenderer_p.h \
    $$PWD/coreapi/qsgrendernode.h \
    $$PWD/coreapi/qsgrendernode_p.h \
    $$PWD/coreapi/qsgrendererinterface.h \
    $$PWD/coreapi/qsggeometry_p.h

SOURCES += \
    $$PWD/coreapi/qsgabstractrenderer.cpp \
    $$PWD/coreapi/qsggeometry.cpp \
    $$PWD/coreapi/qsgmaterial.cpp \
    $$PWD/coreapi/qsgnode.cpp \
    $$PWD/coreapi/qsgnodeupdater.cpp \
    $$PWD/coreapi/qsgrenderer.cpp \
    $$PWD/coreapi/qsgrendernode.cpp \
    $$PWD/coreapi/qsgrendererinterface.cpp

qtConfig(opengl(es1|es2)?) {
    HEADERS += \
        $$PWD/coreapi/qsgbatchrenderer_p.h
    SOURCES += \
        $$PWD/coreapi/qsgbatchrenderer.cpp \
        $$PWD/coreapi/qsgshaderrewriter.cpp
}

# Util API
HEADERS += \
    $$PWD/util/qsgareaallocator_p.h \
    $$PWD/util/qsgengine.h \
    $$PWD/util/qsgengine_p.h \
    $$PWD/util/qsgsimplerectnode.h \
    $$PWD/util/qsgsimpletexturenode.h \
    $$PWD/util/qsgtexture.h \
    $$PWD/util/qsgtexture_p.h \
    $$PWD/util/qsgtextureprovider.h \
    $$PWD/util/qsgflatcolormaterial.h \
    $$PWD/util/qsgsimplematerial.h \
    $$PWD/util/qsgtexturematerial.h \
    $$PWD/util/qsgtexturematerial_p.h \
    $$PWD/util/qsgvertexcolormaterial.h \
    $$PWD/util/qsgrectanglenode.h \
    $$PWD/util/qsgimagenode.h \
    $$PWD/util/qsgninepatchnode.h

SOURCES += \
    $$PWD/util/qsgareaallocator.cpp \
    $$PWD/util/qsgengine.cpp \
    $$PWD/util/qsgsimplerectnode.cpp \
    $$PWD/util/qsgsimpletexturenode.cpp \
    $$PWD/util/qsgtexture.cpp \
    $$PWD/util/qsgtextureprovider.cpp \
    $$PWD/util/qsgflatcolormaterial.cpp \
    $$PWD/util/qsgsimplematerial.cpp \
    $$PWD/util/qsgtexturematerial.cpp \
    $$PWD/util/qsgvertexcolormaterial.cpp \
    $$PWD/util/qsgrectanglenode.cpp \
    $$PWD/util/qsgimagenode.cpp \
    $$PWD/util/qsgninepatchnode.cpp

qtConfig(opengl(es1|es2)?) {
    HEADERS += \
        $$PWD/util/qsgdepthstencilbuffer_p.h \
        $$PWD/util/qsgshadersourcebuilder_p.h \
        $$PWD/util/qsgatlastexture_p.h
    SOURCES += \
        $$PWD/util/qsgdepthstencilbuffer.cpp \
        $$PWD/util/qsgatlastexture.cpp \
        $$PWD/util/qsgshadersourcebuilder.cpp
}


# QML / Adaptations API
HEADERS += \
    $$PWD/qsgadaptationlayer_p.h \
    $$PWD/qsgcontext_p.h \
    $$PWD/qsgcontextplugin_p.h \
    $$PWD/qsgbasicinternalrectanglenode_p.h \
    $$PWD/qsgbasicinternalimagenode_p.h \
    $$PWD/qsgbasicglyphnode_p.h \
    $$PWD/qsgrenderloop_p.h

SOURCES += \
    $$PWD/qsgadaptationlayer.cpp \
    $$PWD/qsgcontext.cpp \
    $$PWD/qsgcontextplugin.cpp \
    $$PWD/qsgbasicinternalrectanglenode.cpp \
    $$PWD/qsgbasicinternalimagenode.cpp \
    $$PWD/qsgbasicglyphnode.cpp \
    $$PWD/qsgrenderloop.cpp

qtConfig(opengl(es1|es2)?) {
    SOURCES += \
        $$PWD/qsgdefaultglyphnode.cpp \
        $$PWD/qsgdefaultglyphnode_p.cpp \
        $$PWD/qsgdefaultdistancefieldglyphcache.cpp \
        $$PWD/qsgdistancefieldglyphnode.cpp \
        $$PWD/qsgdistancefieldglyphnode_p.cpp \
        $$PWD/qsgdefaultinternalimagenode.cpp \
        $$PWD/qsgdefaultinternalrectanglenode.cpp \
        $$PWD/qsgdefaultrendercontext.cpp \
        $$PWD/qsgdefaultcontext.cpp \
        $$PWD/util/qsgdefaultpainternode.cpp \
        $$PWD/util/qsgdefaultrectanglenode.cpp \
        $$PWD/util/qsgdefaultimagenode.cpp \
        $$PWD/util/qsgdefaultninepatchnode.cpp \
        $$PWD/qsgdefaultlayer.cpp \
        $$PWD/qsgthreadedrenderloop.cpp \
        $$PWD/qsgwindowsrenderloop.cpp
    HEADERS += \
        $$PWD/qsgdefaultglyphnode_p.h \
        $$PWD/qsgdefaultdistancefieldglyphcache_p.h \
        $$PWD/qsgdistancefieldglyphnode_p.h \
        $$PWD/qsgdistancefieldglyphnode_p_p.h \
        $$PWD/qsgdefaultglyphnode_p_p.h \
        $$PWD/qsgdefaultinternalimagenode_p.h \
        $$PWD/qsgdefaultinternalrectanglenode_p.h \
        $$PWD/qsgdefaultrendercontext_p.h \
        $$PWD/qsgdefaultcontext_p.h \
        $$PWD/util/qsgdefaultpainternode_p.h \
        $$PWD/util/qsgdefaultrectanglenode_p.h \
        $$PWD/util/qsgdefaultimagenode_p.h \
        $$PWD/util/qsgdefaultninepatchnode_p.h \
        $$PWD/qsgdefaultlayer_p.h \
        $$PWD/qsgthreadedrenderloop_p.h \
        $$PWD/qsgwindowsrenderloop_p.h

    qtConfig(quick-sprite) {
        SOURCES += \
            $$PWD/qsgdefaultspritenode.cpp
        HEADERS += \
            $$PWD/qsgdefaultspritenode_p.h
    }
}

# Built-in, non-plugin-based adaptations
include(adaptations/adaptations.pri)

RESOURCES += \
    $$PWD/scenegraph.qrc

# OpenGL Shaders
qtConfig(opengl(es1|es2)?) {
    OTHER_FILES += \
        $$PWD/shaders/24bittextmask.frag \
        $$PWD/shaders/8bittextmask.frag \
        $$PWD/shaders/distancefieldoutlinetext.frag \
        $$PWD/shaders/distancefieldshiftedtext.frag \
        $$PWD/shaders/distancefieldshiftedtext.vert \
        $$PWD/shaders/distancefieldtext.frag \
        $$PWD/shaders/distancefieldtext.vert \
        $$PWD/shaders/flatcolor.frag \
        $$PWD/shaders/flatcolor.vert \
        $$PWD/shaders/hiqsubpixeldistancefieldtext.frag \
        $$PWD/shaders/hiqsubpixeldistancefieldtext.vert \
        $$PWD/shaders/loqsubpixeldistancefieldtext.frag \
        $$PWD/shaders/loqsubpixeldistancefieldtext.vert \
        $$PWD/shaders/opaquetexture.frag \
        $$PWD/shaders/opaquetexture.vert \
        $$PWD/shaders/outlinedtext.frag \
        $$PWD/shaders/outlinedtext.vert \
        $$PWD/shaders/rendernode.frag \
        $$PWD/shaders/rendernode.vert \
        $$PWD/shaders/smoothcolor.frag \
        $$PWD/shaders/smoothcolor.vert \
        $$PWD/shaders/smoothtexture.frag \
        $$PWD/shaders/smoothtexture.vert \
        $$PWD/shaders/stencilclip.frag \
        $$PWD/shaders/stencilclip.vert \
        $$PWD/shaders/styledtext.frag \
        $$PWD/shaders/styledtext.vert \
        $$PWD/shaders/textmask.frag \
        $$PWD/shaders/textmask.vert \
        $$PWD/shaders/texture.frag \
        $$PWD/shaders/vertexcolor.frag \
        $$PWD/shaders/vertexcolor.vert \
        $$PWD/shaders/24bittextmask_core.frag \
        $$PWD/shaders/8bittextmask_core.frag \
        $$PWD/shaders/distancefieldoutlinetext_core.frag \
        $$PWD/shaders/distancefieldshiftedtext_core.frag \
        $$PWD/shaders/distancefieldshiftedtext_core.vert \
        $$PWD/shaders/distancefieldtext_core.frag \
        $$PWD/shaders/distancefieldtext_core.vert \
        $$PWD/shaders/flatcolor_core.frag \
        $$PWD/shaders/flatcolor_core.vert \
        $$PWD/shaders/hiqsubpixeldistancefieldtext_core.frag \
        $$PWD/shaders/hiqsubpixeldistancefieldtext_core.vert \
        $$PWD/shaders/loqsubpixeldistancefieldtext_core.frag \
        $$PWD/shaders/loqsubpixeldistancefieldtext_core.vert \
        $$PWD/shaders/opaquetexture_core.frag \
        $$PWD/shaders/opaquetexture_core.vert \
        $$PWD/shaders/outlinedtext_core.frag \
        $$PWD/shaders/outlinedtext_core.vert \
        $$PWD/shaders/rendernode_core.frag \
        $$PWD/shaders/rendernode_core.vert \
        $$PWD/shaders/smoothcolor_core.frag \
        $$PWD/shaders/smoothcolor_core.vert \
        $$PWD/shaders/smoothtexture_core.frag \
        $$PWD/shaders/smoothtexture_core.vert \
        $$PWD/shaders/stencilclip_core.frag \
        $$PWD/shaders/stencilclip_core.vert \
        $$PWD/shaders/styledtext_core.frag \
        $$PWD/shaders/styledtext_core.vert \
        $$PWD/shaders/textmask_core.frag \
        $$PWD/shaders/textmask_core.vert \
        $$PWD/shaders/texture_core.frag \
        $$PWD/shaders/vertexcolor_core.frag \
        $$PWD/shaders/vertexcolor_core.vert \
        $$PWD/shaders/visualization.frag \
        $$PWD/shaders/visualization.vert
}

# Compressed Texture API
HEADERS += \
    $$PWD/util/qsgtexturereader_p.h

SOURCES += \
    $$PWD/util/qsgtexturereader.cpp

qtConfig(opengl(es1|es2)?) {
    HEADERS += \
        $$PWD/compressedtexture/qsgpkmhandler_p.h

    SOURCES += \
        $$PWD/compressedtexture/qsgpkmhandler.cpp
}