OLD | NEW |
---|---|
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//device/vr/features.gni") | 6 import("//device/vr/features.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 import("//testing/libfuzzer/fuzzer_test.gni") | 8 import("//testing/libfuzzer/fuzzer_test.gni") |
9 | 9 |
10 if (is_android) { | 10 if (is_android) { |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
248 "//ui/gfx/codec", | 248 "//ui/gfx/codec", |
249 "//ui/gfx/geometry", | 249 "//ui/gfx/geometry", |
250 "//ui/gfx/range", | 250 "//ui/gfx/range", |
251 ] | 251 ] |
252 deps = [ | 252 deps = [ |
253 ":gfx_export", | 253 ":gfx_export", |
254 "//base", | 254 "//base", |
255 "//base:base_static", | 255 "//base:base_static", |
256 "//base:i18n", | 256 "//base:i18n", |
257 "//base/third_party/dynamic_annotations", | 257 "//base/third_party/dynamic_annotations", |
258 "//device/vr:features", | |
sadrul
2017/04/21 22:31:47
Actually, can you move this down, in (is_android &
acondor_
2017/04/24 14:28:21
"features" is a header that defines ENABLE_VR, so
sadrul
2017/04/24 14:31:49
I see. Maybe that header could move into an OS_AND
| |
258 "//skia", | 259 "//skia", |
259 "//third_party/zlib", | 260 "//third_party/zlib", |
260 ] | 261 ] |
261 | 262 |
262 # Text rendering conditions (complicated so separated out). | 263 # Text rendering conditions (complicated so separated out). |
263 if (use_aura || is_mac) { | 264 if (use_aura || is_mac || (is_android && enable_vr)) { |
264 # Mac doesn't use RenderTextHarfBuzz by default yet. | 265 # Mac doesn't use RenderTextHarfBuzz by default yet. |
265 sources += [ | 266 sources += [ |
266 "harfbuzz_font_skia.cc", | 267 "harfbuzz_font_skia.cc", |
267 "harfbuzz_font_skia.h", | 268 "harfbuzz_font_skia.h", |
268 "render_text_harfbuzz.cc", | 269 "render_text_harfbuzz.cc", |
269 "render_text_harfbuzz.h", | 270 "render_text_harfbuzz.h", |
270 "render_text_mac.h", | 271 "render_text_mac.h", |
271 "render_text_mac.mm", | 272 "render_text_mac.mm", |
272 "text_utils_skia.cc", | 273 "text_utils_skia.cc", |
273 ] | 274 ] |
274 | 275 |
275 if (!is_ios) { | 276 if (!is_ios) { |
276 sources += [ | 277 sources += [ |
277 "render_text.cc", | 278 "render_text.cc", |
278 "render_text.h", | 279 "render_text.h", |
279 ] | 280 ] |
280 } | 281 } |
281 } else { | 282 } else { |
282 # We don't support RenderText on these platforms. | 283 # We don't support RenderText on these platforms. |
283 } | 284 } |
284 | 285 |
285 if (is_android && use_aura) { | 286 if (is_android && enable_vr) { |
286 sources -= [ | 287 sources -= [ |
287 "platform_font_android.cc", | 288 "platform_font_android.cc", |
288 "text_utils_android.cc", | 289 "text_utils_android.cc", |
289 ] | 290 ] |
290 set_sources_assignment_filter([]) | 291 set_sources_assignment_filter([]) |
291 sources += [ "platform_font_linux.cc" ] | 292 sources += [ "platform_font_linux.cc" ] |
292 set_sources_assignment_filter(sources_assignment_filter) | 293 set_sources_assignment_filter(sources_assignment_filter) |
293 } | 294 } |
294 | 295 |
295 # iOS. | 296 # iOS. |
296 if (is_ios) { | 297 if (is_ios) { |
297 set_sources_assignment_filter([]) | 298 set_sources_assignment_filter([]) |
298 sources += [ "scoped_cg_context_save_gstate_mac.h" ] | 299 sources += [ "scoped_cg_context_save_gstate_mac.h" ] |
299 set_sources_assignment_filter(sources_assignment_filter) | 300 set_sources_assignment_filter(sources_assignment_filter) |
300 } else { | 301 } else { |
301 deps += [ | 302 deps += [ |
302 "//cc/paint", | 303 "//cc/paint", |
303 "//third_party/harfbuzz-ng", | 304 "//third_party/harfbuzz-ng", |
304 ] | 305 ] |
305 } | 306 } |
306 | 307 |
307 # Android. | 308 # Android. |
308 if (is_android) { | 309 if (is_android) { |
309 if (use_aura) { | 310 if (enable_vr) { |
310 sources -= [ "canvas_notimplemented.cc" ] | 311 sources -= [ "canvas_notimplemented.cc" ] |
311 sources += [ "font_fallback_android.cc" ] | 312 sources += [ "font_fallback_android.cc" ] |
312 } else { | 313 } else { |
313 sources -= [ | 314 sources -= [ |
314 "canvas_skia.cc", | 315 "canvas_skia.cc", |
315 "path.cc", | 316 "path.cc", |
316 "selection_model.cc", | 317 "selection_model.cc", |
317 ] | 318 ] |
318 } | 319 } |
319 | 320 |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
763 | 764 |
764 fuzzer_test("color_transform_fuzztest") { | 765 fuzzer_test("color_transform_fuzztest") { |
765 sources = [ | 766 sources = [ |
766 "color_transform_fuzzer.cc", | 767 "color_transform_fuzzer.cc", |
767 ] | 768 ] |
768 deps = [ | 769 deps = [ |
769 ":gfx", | 770 ":gfx", |
770 ] | 771 ] |
771 libfuzzer_options = [ "max_len=1024" ] | 772 libfuzzer_options = [ "max_len=1024" ] |
772 } | 773 } |
OLD | NEW |