blob: 2ce0ef386aff8ea7f1abc67b7178fc972ae17760 (
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
|
TEMPLATE=lib
TARGET=customcontext
CONFIG += plugin
QT += gui-private core-private quick-private qml-private v8-private
verbose:{
message("verbose: enabled")
DEFINES+=CUSTOMCONTEXT_DEBUG
} else {
message("verbose: disabled")
}
dither:{
message("dither: enabled")
DEFINES += CUSTOMCONTEXT_DITHER
SOURCES += renderhooks/ordereddither2x2.cpp
HEADERS += renderhooks/ordereddither2x2.h
} else {
message("dither: disabled")
}
atlastexture:{
message("atlastexture: enabled")
DEFINES += CUSTOMCONTEXT_ATLASTEXTURE
SOURCES += texture/atlastexture.cpp
HEADERS += texture/atlastexture.h
} else {
message("atlastexture: disabled")
}
animationdriver:{
message("animationdriver: enabled")
DEFINES += CUSTOMCONTEXT_ANIMATIONDRIVER
SOURCES += animation/animationdriver.cpp
HEADERS += animation/animationdriver.h
} else {
message("animationdriver: disabled")
}
overlaprenderer:{
message("overlaprenderer: enabled")
DEFINES += CUSTOMCONTEXT_OVERLAPRENDERER
SOURCES += renderer/overlaprenderer.cpp
HEADERS += renderer/overlaprenderer.h
} else {
message("overlaprenderer: disabled")
}
message("");
message("Enable the above features by adding them to the qmake config, for instance:")
message(" > qmake \"CONFIG+=verbose atlastexture dither\"");
message("");
SOURCES += \
context.cpp \
pluginmain.cpp
HEADERS += \
context.h \
pluginmain.h
OTHER_FILES += customcontext.json
target.path += $$[QT_INSTALL_PLUGINS]/scenegraph
files.path += $$[QT_INSTALL_PLUGINS]/scenegraph
INSTALLS += target files
!win*:DEFINES+=ENABLE_PROFILING
arm_build {
DEFINES += USE_HALF_FLOAT
QMAKE_CXXFLAGS += -mfp16-format=ieee -mfpu=neon
} else {
DEFINES += DESKTOP_BUILD
}
|