OLD | NEW |
1 # Description: | 1 # Description: |
2 # Skia graphics library. | 2 # Skia graphics library. |
3 # | 3 # |
4 # Definitions for Google BUILD file. | 4 # Definitions for Google BUILD file. |
5 | 5 |
6 exports_files(["BUILD.public"]) | 6 exports_files(["BUILD.public"]) |
7 | 7 |
8 # All platform-independent SRCS. | 8 # All platform-independent SRCS. |
9 BASE_SRCS = glob( | 9 BASE_SRCS = glob( |
10 [ | 10 [ |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 "src/opts/*arm*", | 77 "src/opts/*arm*", |
78 "src/opts/*mips*", | 78 "src/opts/*mips*", |
79 "src/opts/*NEON*", | 79 "src/opts/*NEON*", |
80 "src/opts/*neon*", | 80 "src/opts/*neon*", |
81 # Included in :opts_ssse3 library. | 81 # Included in :opts_ssse3 library. |
82 "src/opts/*SSSE3*", | 82 "src/opts/*SSSE3*", |
83 "src/opts/*ssse3*", | 83 "src/opts/*ssse3*", |
84 # Included in :opts_sse4 library. | 84 # Included in :opts_sse4 library. |
85 "src/opts/*SSE4*", | 85 "src/opts/*SSE4*", |
86 "src/opts/*sse4*", | 86 "src/opts/*sse4*", |
| 87 # Included in :opts_avx or :opts_avx2 |
| 88 "src/opts/*avx*", |
87 "src/opts/SkBitmapProcState_opts_none.cpp", | 89 "src/opts/SkBitmapProcState_opts_none.cpp", |
88 "src/opts/SkBlitMask_opts_none.cpp", | 90 "src/opts/SkBlitMask_opts_none.cpp", |
89 "src/opts/SkBlitRow_opts_none.cpp", | 91 "src/opts/SkBlitRow_opts_none.cpp", |
90 "src/ports/*android*", | 92 "src/ports/*android*", |
91 "src/ports/*chromium*", | 93 "src/ports/*chromium*", |
92 "src/ports/*mac*", | 94 "src/ports/*mac*", |
93 "src/ports/*mozalloc*", | 95 "src/ports/*mozalloc*", |
94 "src/ports/*nacl*", | 96 "src/ports/*nacl*", |
95 "src/ports/*win*", | 97 "src/ports/*win*", |
96 "src/ports/SkFontConfigInterface_direct_factory.cpp", | 98 "src/ports/SkFontConfigInterface_direct_factory.cpp", |
(...skipping 19 matching lines...) Expand all Loading... |
116 "src/ports/**/*.cpp", | 118 "src/ports/**/*.cpp", |
117 "src/ports/**/*.h", | 119 "src/ports/**/*.h", |
118 ], | 120 ], |
119 exclude = [ | 121 exclude = [ |
120 "src/opts/*mips*", | 122 "src/opts/*mips*", |
121 "src/opts/*SSE2*", | 123 "src/opts/*SSE2*", |
122 "src/opts/*SSSE3*", | 124 "src/opts/*SSSE3*", |
123 "src/opts/*ssse3*", | 125 "src/opts/*ssse3*", |
124 "src/opts/*SSE4*", | 126 "src/opts/*SSE4*", |
125 "src/opts/*sse4*", | 127 "src/opts/*sse4*", |
| 128 "src/opts/*avx*", |
126 "src/opts/*x86*", | 129 "src/opts/*x86*", |
127 "src/opts/SkBitmapProcState_opts_none.cpp", | 130 "src/opts/SkBitmapProcState_opts_none.cpp", |
128 "src/opts/SkBlitMask_opts_none.cpp", | 131 "src/opts/SkBlitMask_opts_none.cpp", |
129 "src/opts/SkBlitRow_opts_none.cpp", | 132 "src/opts/SkBlitRow_opts_none.cpp", |
130 "src/ports/*chromium*", | 133 "src/ports/*chromium*", |
131 "src/ports/*fontconfig*", | 134 "src/ports/*fontconfig*", |
132 "src/ports/*FontConfig*", | 135 "src/ports/*FontConfig*", |
133 "src/ports/*mac*", | 136 "src/ports/*mac*", |
134 "src/ports/*mozalloc*", | 137 "src/ports/*mozalloc*", |
135 "src/ports/*nacl*", | 138 "src/ports/*nacl*", |
(...skipping 22 matching lines...) Expand all Loading... |
158 ], | 161 ], |
159 exclude = [ | 162 exclude = [ |
160 "src/opts/*mips*", | 163 "src/opts/*mips*", |
161 "src/opts/*NEON*", | 164 "src/opts/*NEON*", |
162 "src/opts/*neon*", | 165 "src/opts/*neon*", |
163 "src/opts/*SSE2*", | 166 "src/opts/*SSE2*", |
164 "src/opts/*SSSE3*", | 167 "src/opts/*SSSE3*", |
165 "src/opts/*ssse3*", | 168 "src/opts/*ssse3*", |
166 "src/opts/*SSE4*", | 169 "src/opts/*SSE4*", |
167 "src/opts/*sse4*", | 170 "src/opts/*sse4*", |
| 171 "src/opts/*avx*", |
168 "src/opts/*x86*", | 172 "src/opts/*x86*", |
169 "src/opts/SkBitmapProcState_opts_none.cpp", | 173 "src/opts/SkBitmapProcState_opts_none.cpp", |
170 "src/opts/SkBlitMask_opts_none.cpp", | 174 "src/opts/SkBlitMask_opts_none.cpp", |
171 "src/opts/SkBlitRow_opts_none.cpp", | 175 "src/opts/SkBlitRow_opts_none.cpp", |
172 "src/ports/*android*", | 176 "src/ports/*android*", |
173 "src/ports/*chromium*", | 177 "src/ports/*chromium*", |
174 "src/ports/*fontconfig*", | 178 "src/ports/*fontconfig*", |
175 "src/ports/*FontConfig*", | 179 "src/ports/*FontConfig*", |
176 "src/ports/*FreeType*", | 180 "src/ports/*FreeType*", |
177 "src/ports/*mozalloc*", | 181 "src/ports/*mozalloc*", |
(...skipping 27 matching lines...) Expand all Loading... |
205 ], | 209 ], |
206 ) | 210 ) |
207 | 211 |
208 SSE4_SRCS = glob( | 212 SSE4_SRCS = glob( |
209 [ | 213 [ |
210 "src/opts/*SSE4*.cpp", | 214 "src/opts/*SSE4*.cpp", |
211 "src/opts/*sse4*.cpp", | 215 "src/opts/*sse4*.cpp", |
212 ], | 216 ], |
213 ) | 217 ) |
214 | 218 |
| 219 AVX_SRCS = glob( |
| 220 [ |
| 221 "src/opts/*_avx.cpp", |
| 222 ], |
| 223 ) |
| 224 |
| 225 AVX2_SRCS = glob( |
| 226 [ |
| 227 "src/opts/*_avx2.cpp", |
| 228 ], |
| 229 ) |
| 230 |
215 BASE_HDRS = glob( | 231 BASE_HDRS = glob( |
216 [ | 232 [ |
217 "include/**/*.h", | 233 "include/**/*.h", |
218 ], | 234 ], |
219 exclude = [ | 235 exclude = [ |
220 "include/private/**/*", | 236 "include/private/**/*", |
221 | 237 |
222 # Not used. | 238 # Not used. |
223 "include/animator/**/*", | 239 "include/animator/**/*", |
224 "include/views/**/*", | 240 "include/views/**/*", |
225 "include/xml/SkBML_WXMLParser.h", | 241 "include/xml/SkBML_WXMLParser.h", |
226 "include/xml/SkBML_XMLParser.h", | 242 "include/xml/SkBML_XMLParser.h", |
227 ], | 243 ], |
228 ) | 244 ) |
229 | 245 |
230 # Dependencies. | 246 # Dependencies. |
231 BASE_DEPS_UNIX = [ | 247 BASE_DEPS_UNIX = [ |
| 248 ":opts_avx2", |
| 249 ":opts_avx", |
232 ":opts_sse4", | 250 ":opts_sse4", |
233 ":opts_ssse3", | 251 ":opts_ssse3", |
234 ] | 252 ] |
235 | 253 |
236 BASE_DEPS_ANDROID = [] | 254 BASE_DEPS_ANDROID = [] |
237 | 255 |
238 BASE_DEPS_IOS = [] | 256 BASE_DEPS_IOS = [] |
239 | 257 |
240 BASE_DEPS = select({ | 258 BASE_DEPS = select({ |
241 CONDITION_ANDROID: BASE_DEPS_ANDROID + BASE_EXTERNAL_DEPS_ANDROID, | 259 CONDITION_ANDROID: BASE_DEPS_ANDROID + BASE_EXTERNAL_DEPS_ANDROID, |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 | 435 |
418 cc_library( | 436 cc_library( |
419 name = "opts_sse4", | 437 name = "opts_sse4", |
420 srcs = SSE4_SRCS, | 438 srcs = SSE4_SRCS, |
421 copts = COPTS + ["-msse4"], | 439 copts = COPTS + ["-msse4"], |
422 defines = DEFINES, | 440 defines = DEFINES, |
423 includes = INCLUDES, | 441 includes = INCLUDES, |
424 deps = EXTERNAL_DEPS_ALL, | 442 deps = EXTERNAL_DEPS_ALL, |
425 ) | 443 ) |
426 | 444 |
| 445 cc_library( |
| 446 name = "opts_avx", |
| 447 srcs = AVX_SRCS, |
| 448 copts = COPTS + ["-mavx"], |
| 449 defines = DEFINES, |
| 450 includes = INCLUDES, |
| 451 deps = EXTERNAL_DEPS_ALL, |
| 452 ) |
| 453 |
| 454 cc_library( |
| 455 name = "opts_avx2", |
| 456 srcs = AVX2_SRCS, |
| 457 copts = COPTS + ["-mavx2"], |
| 458 defines = DEFINES, |
| 459 includes = INCLUDES, |
| 460 deps = EXTERNAL_DEPS_ALL, |
| 461 ) |
| 462 |
427 # If you need Ganesh (GPU) support in Skia, please contact skia-team@google.com | 463 # If you need Ganesh (GPU) support in Skia, please contact skia-team@google.com |
428 # for help. | 464 # for help. |
429 cc_library( | 465 cc_library( |
430 name = "skia", | 466 name = "skia", |
431 srcs = BASE_SRCS + BASE_SRCS_PLATFORM, | 467 srcs = BASE_SRCS + BASE_SRCS_PLATFORM, |
432 hdrs = BASE_HDRS, | 468 hdrs = BASE_HDRS, |
433 copts = COPTS, | 469 copts = COPTS, |
434 defines = DEFINES, | 470 defines = DEFINES, |
435 includes = INCLUDES, | 471 includes = INCLUDES, |
436 linkopts = LINKOPTS, | 472 linkopts = LINKOPTS, |
(...skipping 15 matching lines...) Expand all Loading... |
452 "--images %s/resources" % BASE_DIR, | 488 "--images %s/resources" % BASE_DIR, |
453 ], | 489 ], |
454 copts = COPTS, | 490 copts = COPTS, |
455 data = glob(["resources/**/*"]), | 491 data = glob(["resources/**/*"]), |
456 defines = DEFINES, | 492 defines = DEFINES, |
457 includes = DM_INCLUDES, | 493 includes = DM_INCLUDES, |
458 deps = DM_EXTERNAL_DEPS + [ | 494 deps = DM_EXTERNAL_DEPS + [ |
459 ":skia", | 495 ":skia", |
460 ] + EXTERNAL_DEPS_ALL, | 496 ] + EXTERNAL_DEPS_ALL, |
461 ) | 497 ) |
OLD | NEW |