--- third_party/blink/renderer/platform/BUILD.gn.orig 2026-10-18 13:29:39 UTC +++ third_party/blink/renderer/platform/BUILD.gn @@ -186,6 +186,19 @@ group("make_platform_generated") { ] } +# XXX crubit +rust_static_library("font_format_check") { + allow_unsafe = true # Needed for FFI that underpins the `cxx` crate. + crate_root = "fonts/opentype/format_check.rs" + sources = [ crate_root ] + cxx_bindings = [ crate_root ] + deps = [ + "//third_party/rust/font_types/v0_12:lib", + "//third_party/rust/read_fonts/v0_43:lib", + "//third_party/rust/skrifa/v0_46:lib", + ] +} + rust_static_library("rustfft_ffi") { allow_unsafe = true # Needed for FFI that underpins the `cxx` crate. crate_root = "audio/rustfft_ffi.rs" @@ -253,7 +266,6 @@ group("blink_platform_public_deps") { "//third_party/boringssl", "//third_party/libwebp", "//third_party/ots", - "//third_party/woff2:woff2_dec", "//ui/gfx/animation/keyframe", "//url", "//v8", @@ -713,8 +725,6 @@ component("platform") { "fonts/generic_font_family_settings.cc", "fonts/generic_font_family_settings.h", "fonts/glyph_metrics_map.h", - "fonts/ift/ift_patcher.cc", - "fonts/ift/ift_patcher.h", "fonts/opentype/color_table_lookup.cc", "fonts/opentype/color_table_lookup.h", "fonts/opentype/font_format_check.cc", @@ -1795,7 +1805,6 @@ component("platform") { ":allow_discouraged_type", ":blink_platform_public_deps", ":platform_export", - "//build/rust/crubit", "//components/language_detection/core", "//gpu/command_buffer/client:raster_interface", "//media/capture:capture_lib", @@ -1822,9 +1831,8 @@ component("platform") { "//ui/native_theme/features", ] deps = [ + ":font_format_check", ":rustfft_ffi", - "fonts:font_format_bindings", - "fonts:ift_patcher_bindings", "//base:base_static", "//base/allocator:buildflags", "//build:chromecast_buildflags", @@ -2245,7 +2253,6 @@ source_set("blink_platform_unittests_sources") { "fonts/font_test.cc", "fonts/font_test_utilities.cc", "fonts/generic_font_family_settings_test.cc", - "fonts/ift/ift_patcher_test.cc", "fonts/opentype/color_table_lookup_test.cc", "fonts/opentype/font_format_check_test.cc", "fonts/opentype/font_settings_test.cc",