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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 "//skia", | 258 "//skia", |
259 "//third_party/zlib", | 259 "//third_party/zlib", |
260 ] | 260 ] |
261 | 261 |
262 # Text rendering conditions (complicated so separated out). | 262 # Text rendering conditions (complicated so separated out). |
263 if (use_aura || is_mac) { | 263 if (use_aura || is_mac || (is_android && enable_vr)) { |
sadrul
2017/04/13 14:57:55
I think you can just do 'enable_vr' instead of 'is
acondor_
2017/04/18 20:59:04
Acknowledged.
| |
264 # Mac doesn't use RenderTextHarfBuzz by default yet. | 264 # Mac doesn't use RenderTextHarfBuzz by default yet. |
265 sources += [ | 265 sources += [ |
266 "harfbuzz_font_skia.cc", | 266 "harfbuzz_font_skia.cc", |
267 "harfbuzz_font_skia.h", | 267 "harfbuzz_font_skia.h", |
268 "render_text_harfbuzz.cc", | 268 "render_text_harfbuzz.cc", |
269 "render_text_harfbuzz.h", | 269 "render_text_harfbuzz.h", |
270 "render_text_mac.h", | 270 "render_text_mac.h", |
271 "render_text_mac.mm", | 271 "render_text_mac.mm", |
272 "text_utils_skia.cc", | 272 "text_utils_skia.cc", |
273 ] | 273 ] |
274 | 274 |
275 if (!is_ios) { | 275 if (!is_ios) { |
276 sources += [ | 276 sources += [ |
277 "render_text.cc", | 277 "render_text.cc", |
278 "render_text.h", | 278 "render_text.h", |
279 ] | 279 ] |
280 } | 280 } |
281 } else { | 281 } else { |
282 # We don't support RenderText on these platforms. | 282 # We don't support RenderText on these platforms. |
283 } | 283 } |
284 | 284 |
285 if (is_android && use_aura) { | 285 if (is_android && (use_aura || enable_vr)) { |
sadrul
2017/04/13 14:57:55
As mthiesse@ suggested, you can get rid of the use
acondor_
2017/04/18 20:59:04
Done.
| |
286 sources -= [ | 286 sources -= [ |
287 "platform_font_android.cc", | 287 "platform_font_android.cc", |
288 "text_utils_android.cc", | 288 "text_utils_android.cc", |
289 ] | 289 ] |
290 set_sources_assignment_filter([]) | 290 set_sources_assignment_filter([]) |
291 sources += [ "platform_font_linux.cc" ] | 291 sources += [ "platform_font_linux.cc" ] |
292 set_sources_assignment_filter(sources_assignment_filter) | 292 set_sources_assignment_filter(sources_assignment_filter) |
293 } | 293 } |
294 | 294 |
295 # iOS. | 295 # iOS. |
296 if (is_ios) { | 296 if (is_ios) { |
297 set_sources_assignment_filter([]) | 297 set_sources_assignment_filter([]) |
298 sources += [ "scoped_cg_context_save_gstate_mac.h" ] | 298 sources += [ "scoped_cg_context_save_gstate_mac.h" ] |
299 set_sources_assignment_filter(sources_assignment_filter) | 299 set_sources_assignment_filter(sources_assignment_filter) |
300 } else { | 300 } else { |
301 deps += [ | 301 deps += [ |
302 "//cc/paint", | 302 "//cc/paint", |
303 "//third_party/harfbuzz-ng", | 303 "//third_party/harfbuzz-ng", |
304 ] | 304 ] |
305 } | 305 } |
306 | 306 |
307 # Android. | 307 # Android. |
308 if (is_android) { | 308 if (is_android) { |
309 if (use_aura) { | 309 if (use_aura || enable_vr) { |
310 sources -= [ "canvas_notimplemented.cc" ] | 310 sources -= [ "canvas_notimplemented.cc" ] |
311 sources += [ "font_fallback_android.cc" ] | 311 sources += [ "font_fallback_android.cc" ] |
312 } else { | 312 } else { |
313 sources -= [ | 313 sources -= [ |
314 "canvas_skia.cc", | 314 "canvas_skia.cc", |
315 "path.cc", | 315 "path.cc", |
316 "selection_model.cc", | 316 "selection_model.cc", |
317 ] | 317 ] |
318 } | 318 } |
319 | 319 |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
763 | 763 |
764 fuzzer_test("color_transform_fuzztest") { | 764 fuzzer_test("color_transform_fuzztest") { |
765 sources = [ | 765 sources = [ |
766 "color_transform_fuzzer.cc", | 766 "color_transform_fuzzer.cc", |
767 ] | 767 ] |
768 deps = [ | 768 deps = [ |
769 ":gfx", | 769 ":gfx", |
770 ] | 770 ] |
771 libfuzzer_options = [ "max_len=1024" ] | 771 libfuzzer_options = [ "max_len=1024" ] |
772 } | 772 } |
OLD | NEW |