| 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) { |
| 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) { |
| 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 sources -= [ "canvas_notimplemented.cc" ] |
| 310 sources -= [ "canvas_notimplemented.cc" ] | 310 sources += [ "font_fallback_android.cc" ] |
| 311 sources += [ "font_fallback_android.cc" ] | |
| 312 } else { | |
| 313 sources -= [ | |
| 314 "canvas_skia.cc", | |
| 315 "path.cc", | |
| 316 "selection_model.cc", | |
| 317 ] | |
| 318 } | |
| 319 | 311 |
| 320 if (!is_debug) { | 312 if (!is_debug) { |
| 321 configs -= [ "//build/config/compiler:default_optimization" ] | 313 configs -= [ "//build/config/compiler:default_optimization" ] |
| 322 configs += [ "//build/config/compiler:optimize_max" ] | 314 configs += [ "//build/config/compiler:optimize_max" ] |
| 323 } | 315 } |
| 324 | 316 |
| 325 deps += [ ":gfx_jni_headers" ] | 317 deps += [ ":gfx_jni_headers" ] |
| 326 libs = [ | 318 libs = [ |
| 327 "android", | 319 "android", |
| 328 "jnigraphics", | 320 "jnigraphics", |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 763 | 755 |
| 764 fuzzer_test("color_transform_fuzztest") { | 756 fuzzer_test("color_transform_fuzztest") { |
| 765 sources = [ | 757 sources = [ |
| 766 "color_transform_fuzzer.cc", | 758 "color_transform_fuzzer.cc", |
| 767 ] | 759 ] |
| 768 deps = [ | 760 deps = [ |
| 769 ":gfx", | 761 ":gfx", |
| 770 ] | 762 ] |
| 771 libfuzzer_options = [ "max_len=1024" ] | 763 libfuzzer_options = [ "max_len=1024" ] |
| 772 } | 764 } |
| OLD | NEW |