From 08f5295359d65ec2b70c2bcc9522cfa98f480c55 Mon Sep 17 00:00:00 2001 From: cobalt-github-releaser-bot <95661244+cobalt-github-releaser-bot@users.noreply.github.com> Date: Thu, 30 May 2024 21:30:18 -0700 Subject: [PATCH] Cherry pick PR #3219: Add missing build dependency on Starboard headers (#3408) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refer to the original PR: https://github.com/youtube/cobalt/pull/3219 … for use of starboard/system.h in timsort.h left by Change Ia9e981ac. Issue: 151155539 Co-authored-by: Dana Dahlstrom --- third_party/libxml/BUILD.gn | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/third_party/libxml/BUILD.gn b/third_party/libxml/BUILD.gn index f25c4c211d94..1c33ab78f643 100644 --- a/third_party/libxml/BUILD.gn +++ b/third_party/libxml/BUILD.gn @@ -334,6 +334,10 @@ if (!use_cobalt_customizations) { public_deps = [ "//third_party/icu:icuuc" ] deps = [ "//third_party/zlib" ] + if (is_starboard) { + deps += [ "//starboard:starboard_headers_only" ] + } + if (is_apple || is_android || is_fuchsia) { # http://www.xmlsoft.org/threads.html says that this is required when using # libxml from several threads, which can possibly happen in chrome. On