OLD | NEW |
1 ################################################################################ | 1 ################################################################################ |
2 # Skylark macros | 2 # Skylark macros |
3 ################################################################################ | 3 ################################################################################ |
4 | 4 |
5 is_bazel = not hasattr(native, "genmpm") | 5 is_bazel = not hasattr(native, "genmpm") |
6 | 6 |
7 def portable_select(select_dict, bazel_condition, default_condition): | 7 def portable_select(select_dict, bazel_condition, default_condition): |
8 """Replaces select() with a Bazel-friendly wrapper. | 8 """Replaces select() with a Bazel-friendly wrapper. |
9 | 9 |
10 Args: | 10 Args: |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 "src/codec/*", | 121 "src/codec/*", |
122 "src/fonts/SkFontMgr_fontconfig.cpp", | 122 "src/fonts/SkFontMgr_fontconfig.cpp", |
123 "src/images/*", | 123 "src/images/*", |
124 "src/opts/**/*.cpp", | 124 "src/opts/**/*.cpp", |
125 "src/opts/**/*.h", | 125 "src/opts/**/*.h", |
126 "src/ports/**/*.cpp", | 126 "src/ports/**/*.cpp", |
127 "src/ports/**/*.h", | 127 "src/ports/**/*.h", |
128 ], | 128 ], |
129 exclude = [ | 129 exclude = [ |
130 "src/codec/SkJpegCodec.cpp", # libjpeg_turbo version mismatch. | 130 "src/codec/SkJpegCodec.cpp", # libjpeg_turbo version mismatch. |
| 131 # TODO(benjaminwagner): Can this be enabled? |
| 132 "src/codec/SkRaw*", |
131 "src/opts/*arm*", | 133 "src/opts/*arm*", |
132 "src/opts/*mips*", | 134 "src/opts/*mips*", |
133 "src/opts/*NEON*", | 135 "src/opts/*NEON*", |
134 "src/opts/*neon*", | 136 "src/opts/*neon*", |
135 # Included in :opts_ssse3 library. | 137 # Included in :opts_ssse3 library. |
136 "src/opts/*SSSE3*", | 138 "src/opts/*SSSE3*", |
137 "src/opts/*ssse3*", | 139 "src/opts/*ssse3*", |
138 # Included in :opts_sse4 library. | 140 # Included in :opts_sse4 library. |
139 "src/opts/*SSE4*", | 141 "src/opts/*SSE4*", |
140 "src/opts/*sse4*", | 142 "src/opts/*sse4*", |
(...skipping 28 matching lines...) Expand all Loading... |
169 "src/codec/*", | 171 "src/codec/*", |
170 "src/images/*", | 172 "src/images/*", |
171 # TODO(benjaminwagner): Figure out how to compile with EGL. | 173 # TODO(benjaminwagner): Figure out how to compile with EGL. |
172 "src/opts/**/*.cpp", | 174 "src/opts/**/*.cpp", |
173 "src/opts/**/*.h", | 175 "src/opts/**/*.h", |
174 "src/ports/**/*.cpp", | 176 "src/ports/**/*.cpp", |
175 "src/ports/**/*.h", | 177 "src/ports/**/*.h", |
176 ], | 178 ], |
177 exclude = [ | 179 exclude = [ |
178 "src/codec/SkJpegCodec.cpp", # libjpeg_turbo version mismatch. | 180 "src/codec/SkJpegCodec.cpp", # libjpeg_turbo version mismatch. |
| 181 # TODO(benjaminwagner): Can this be enabled? |
| 182 "src/codec/SkRaw*", |
179 "src/opts/*mips*", | 183 "src/opts/*mips*", |
180 "src/opts/*SSE2*", | 184 "src/opts/*SSE2*", |
181 "src/opts/*SSSE3*", | 185 "src/opts/*SSSE3*", |
182 "src/opts/*ssse3*", | 186 "src/opts/*ssse3*", |
183 "src/opts/*SSE4*", | 187 "src/opts/*SSE4*", |
184 "src/opts/*sse4*", | 188 "src/opts/*sse4*", |
185 "src/opts/*avx*", | 189 "src/opts/*avx*", |
186 "src/opts/*x86*", | 190 "src/opts/*x86*", |
187 "src/opts/SkBitmapProcState_opts_none.cpp", | 191 "src/opts/SkBitmapProcState_opts_none.cpp", |
188 "src/opts/SkBlitMask_opts_none.cpp", | 192 "src/opts/SkBlitMask_opts_none.cpp", |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 ) | 258 ) |
255 | 259 |
256 ################################################################################ | 260 ################################################################################ |
257 ## SSSE3/SSE4/AVX/AVX2 SRCS | 261 ## SSSE3/SSE4/AVX/AVX2 SRCS |
258 ################################################################################ | 262 ################################################################################ |
259 | 263 |
260 SSSE3_SRCS = struct( | 264 SSSE3_SRCS = struct( |
261 include = [ | 265 include = [ |
262 "src/opts/*SSSE3*.cpp", | 266 "src/opts/*SSSE3*.cpp", |
263 "src/opts/*ssse3*.cpp", | 267 "src/opts/*ssse3*.cpp", |
264 ]) | 268 ], |
| 269 ) |
265 | 270 |
266 SSE4_SRCS = struct( | 271 SSE4_SRCS = struct( |
267 include = [ | 272 include = [ |
268 "src/opts/*SSE4*.cpp", | 273 "src/opts/*SSE4*.cpp", |
269 "src/opts/*sse4*.cpp", | 274 "src/opts/*sse4*.cpp", |
270 ]) | 275 ], |
| 276 ) |
271 | 277 |
272 AVX_SRCS = struct( | 278 AVX_SRCS = struct( |
273 include = [ | 279 include = [ |
274 "src/opts/*_avx.cpp", | 280 "src/opts/*_avx.cpp", |
275 ]) | 281 ], |
| 282 ) |
276 | 283 |
277 AVX2_SRCS = struct( | 284 AVX2_SRCS = struct( |
278 include = [ | 285 include = [ |
279 "src/opts/*_avx2.cpp", | 286 "src/opts/*_avx2.cpp", |
280 ]) | 287 ], |
| 288 ) |
281 | 289 |
282 ################################################################################ | 290 ################################################################################ |
283 ## BASE_HDRS | 291 ## BASE_HDRS |
284 ################################################################################ | 292 ################################################################################ |
285 | 293 |
286 BASE_HDRS = struct( | 294 BASE_HDRS = struct( |
287 include = [ | 295 include = [ |
288 "include/**/*.h", | 296 "include/**/*.h", |
289 ], | 297 ], |
290 exclude = [ | 298 exclude = [ |
291 "include/private/**/*", | 299 "include/private/**/*", |
292 | 300 |
293 # Not used. | 301 # Not used. |
294 "include/animator/**/*", | 302 "include/animator/**/*", |
295 "include/views/**/*", | 303 "include/views/**/*", |
296 "include/xml/SkBML_WXMLParser.h", | 304 "include/xml/SkBML_WXMLParser.h", |
297 "include/xml/SkBML_XMLParser.h", | 305 "include/xml/SkBML_XMLParser.h", |
298 ]) | 306 ], |
| 307 ) |
299 | 308 |
300 ################################################################################ | 309 ################################################################################ |
301 ## BASE_DEPS | 310 ## BASE_DEPS |
302 ################################################################################ | 311 ################################################################################ |
303 | 312 |
304 BASE_DEPS_ALL = [] | 313 BASE_DEPS_ALL = [] |
305 | 314 |
306 BASE_DEPS_UNIX = [ | 315 BASE_DEPS_UNIX = [ |
307 ":opts_ssse3", | 316 ":opts_ssse3", |
308 ":opts_sse4", | 317 ":opts_sse4", |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 | 505 |
497 LINKOPTS_ANDROID = [ | 506 LINKOPTS_ANDROID = [ |
498 "-lEGL", | 507 "-lEGL", |
499 ] | 508 ] |
500 | 509 |
501 LINKOPTS_IOS = [] | 510 LINKOPTS_IOS = [] |
502 | 511 |
503 LINKOPTS_ALL = [ | 512 LINKOPTS_ALL = [ |
504 "-ldl", | 513 "-ldl", |
505 ] | 514 ] |
506 | |
OLD | NEW |