-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBUILD.gn
180 lines (174 loc) · 5.2 KB
/
BUILD.gn
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
declare_args() {
include_all_features = false
}
config("gbskia_config") {
include_dirs = [
"include/core",
"include/effects",
"include/images",
"include/utils",
"include/svg",
"include/xml",
"src/core",
]
if (include_all_features) {
defines = [
"SK_FEATURE_PICTURE",
"SK_FEATURE_TEXT_ON_PATH",
"SK_FEATURE_PATH_CLIPPING",
"SK_FEATURE_SAMPLER_BILINEAR",
"SK_FEATURE_SAMPLER_REPEAT",
"SK_FEATURE_SAMPLER_MIRROR",
"SK_FEATURE_SAMPLER_CLAMP",
"SK_FEATURE_MPROC_CLAMP",
"SK_FEATURE_MPROC_REPEAT",
"SK_FEATURE_MIPMAP",
"SK_FEATURE_CONFIG_4444",
"SK_FEATURE_CONFIG_565",
"SK_FEATURE_CONFIG_A8",
"SK_FEATURE_CONFIG_I8",
"SK_FEATURE_MASK_3D",
"SK_FEATURE_XFERMODE_EXTRA",
"SK_FEATURE_XFERMODE_OPT",
"SK_FEATURE_FLATTEN",
"SK_FEATURE_TEXT",
"SK_FEATURE_SAVELAYER",
"SK_FEATURE_STRING",
"SK_FEATURE_SHAPE",
"SK_FEATURE_LOOPER",
"SK_FEATURE_PATH_DUMP",
"SK_FEATURE_DRAW_VERTICES",
]
} else {
# Include these features
defines = [
"SK_BUILD_FOR_UNIX",
"SK_FEATURE_SAMPLER_CLAMP",
"SK_FEATURE_CONFIG_8888",
"SK_FEATURE_CONFIG_BW",
"SK_FEATURE_CONFIG_111",
]
}
cflags = [ "-Wunused" ]
}
source_set("gbskia") {
sources = [
"src/core/Sk64.cpp",
"src/core/SkBuffer.cpp",
"src/core/SkChunkAlloc.cpp",
"src/core/SkCordic.cpp",
"src/core/SkDebug.cpp",
"src/core/SkFloatBits.cpp",
"src/core/SkMath.cpp",
"src/core/SkMatrix.cpp",
"src/core/SkMemory_stdlib.cpp",
"src/core/SkPoint.cpp",
"src/core/SkRect.cpp",
"src/core/SkRegion.cpp",
"src/core/SkUtils.cpp",
"src/core/SkAlphaRuns.cpp",
"src/core/SkBitmap.cpp",
"src/core/SkBitmapProcShader.cpp",
"src/core/SkBitmapProcState.cpp",
"src/core/SkBitmapProcState_matrixProcs.cpp",
"src/core/SkBitmapSampler.cpp",
"src/core/SkBlitRow_D32.cpp",
"src/core/SkBlitter.cpp",
"src/core/SkBlitter_A1.cpp",
"src/core/SkBlitter_BW.cpp",
"src/core/SkBlitter_111.cpp",
"src/core/SkBlitter_ARGB32.cpp",
"src/core/SkBlitter_Sprite.cpp",
"src/core/SkCanvas.cpp",
"src/core/SkColor.cpp",
"src/core/SkColorFilter.cpp",
"src/core/SkColorTable.cpp",
"src/core/SkComposeShader.cpp",
"src/core/SkDeque.cpp",
"src/core/SkDevice.cpp",
"src/core/SkDither.cpp",
"src/core/SkDraw.cpp",
"src/core/SkEdge.cpp",
"src/core/SkEdgeBuilder.cpp",
"src/core/SkEdgeClipper.cpp",
"src/core/SkFilterProc.cpp",
"src/core/SkFlattenable.cpp",
"src/core/SkGeometry.cpp",
"src/core/SkGlobals.cpp",
"src/core/SkGraphics.cpp",
"src/core/SkLineClipper.cpp",
"src/core/SkMask.cpp",
"src/core/SkMaskFilter.cpp",
"src/core/SkPaint.cpp",
"src/core/SkPath.cpp",
"src/core/SkPathEffect.cpp",
"src/core/SkPathHeap.cpp",
"src/core/SkPathMeasure.cpp",
"src/core/SkPixelRef.cpp",
"src/core/SkProcSpriteBlitter.cpp",
"src/core/SkQuadClipper.cpp",
"src/core/SkRasterizer.cpp",
"src/core/SkRefCnt.cpp",
"src/core/SkScan.cpp",
"src/core/SkScan_AntiPath.cpp",
"src/core/SkScan_Antihair.cpp",
"src/core/SkScan_Hairline.cpp",
"src/core/SkScan_Path.cpp",
"src/core/SkShader.cpp",
"src/core/SkSpriteBlitter_ARGB32.cpp",
"src/core/SkStroke.cpp",
"src/core/SkStrokerPriv.cpp",
"src/core/SkTSearch.cpp",
"src/core/SkUnPreMultiply.cpp",
"src/core/SkXfermode.cpp",
"src/core/SkWriter32.cpp",
"src/images/SkImageDecoder.cpp",
"src/images/SkImageEncoder.cpp",
"src/images/SkImageDecoder_Factory.cpp",
"src/images/SkImageEncoder_Factory.cpp",
"src/images/SkImageDecoder_libpng.cpp",
"src/opts/SkBlitRow_opts_none.cpp",
"src/opts/SkBitmapProcState_opts_none.cpp",
"src/ports/SkDebug_stdio.cpp",
"src/ports/SkThread_pthread.cpp",
"src/ports/SkGlobals_global.cpp",
"src/ports/SkTime_Unix.cpp",
"src/core/SkString.cpp",
"src/core/SkStream.cpp",
"src/ports/SkOSFile_stdio.cpp",
"src/images/SkScaledBitmapSampler.cpp",
]
if (include_all_features) {
sources += [
"src/core/SkPicture.cpp",
"src/core/SkPictureFlat.cpp",
"src/core/SkPicturePlayback.cpp",
"src/core/SkPictureRecord.cpp",
"src/core/SkRegion_path.cpp",
"src/core/SkBlitRow_D4444.cpp",
"src/core/SkBlitter_4444.cpp",
"src/core/SkBlitRow_D16.cpp",
"src/core/SkBlitter_RGB16.cpp",
"src/core/SkSpriteBlitter_RGB16.cpp",
"src/core/SkBlitter_A8.cpp",
"src/ports/SkFontHost_android.cpp",
"src/ports/SkFontHost_gamma.cpp",
"src/ports/SkFontHost_FreeType.cpp",
"src/ports/SkFontHost_tables.cpp",
"src/core/SkGlyphCache.cpp",
"src/core/SkMMapStream.cpp",
"src/core/SkScalerContext.cpp",
"src/core/SkTypeface.cpp",
"src/core/SkShape.cpp",
]
}
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
# Disable hidden symbols, ensure all the code is exported
configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
configs += [ ":gbskia_config" ]
deps = [
"//third_party/libpng",
]
public_configs = [ ":gbskia_config" ]
}