From 25e4156e3e68691f44ea5849a3e7082e92d26a2e Mon Sep 17 00:00:00 2001 From: Christoffer Jansson Date: Fri, 23 Sep 2022 08:38:54 +0200 Subject: [PATCH] Add Fuchsia platform deps Bug: b/232740856 Change-Id: Ia0c14753262f2d66e2bb2aa794ecf5124a016835 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/275520 Reviewed-by: Mirko Bonadei Commit-Queue: Christoffer Jansson Cr-Commit-Position: refs/heads/main@{#38175} --- DEPS | 15 +++++++++++++++ webrtc.gni | 4 ++++ 2 files changed, 19 insertions(+) diff --git a/DEPS b/DEPS index 98fe9c5c47..aad7a98100 100644 --- a/DEPS +++ b/DEPS @@ -21,6 +21,10 @@ vars = { # By default, download the fuchsia sdk from the public sdk directory. 'fuchsia_sdk_cipd_prefix': 'fuchsia/sdk/gn/', 'fuchsia_version': 'version:9.20220919.2.1', + # By default, download the fuchsia images from the fuchsia GCS bucket. + 'fuchsia_images_bucket': 'fuchsia', + 'checkout_fuchsia_boot_images': "qemu.x64", + 'checkout_fuchsia': False, # By default, do not check out the re-client binaries. 'checkout_reclient': False, @@ -2319,6 +2323,17 @@ hooks = [ 'condition': 'checkout_mac', 'action': ['python3', 'src/build/mac_toolchain.py'], }, + { + 'name': 'Download Fuchsia system images', + 'pattern': '.', + 'condition': 'checkout_fuchsia', + 'action': [ + 'python3', + 'src/build/fuchsia/update_images.py', + '--boot-images={checkout_fuchsia_boot_images}', + '--default-bucket={fuchsia_images_bucket}', + ], + }, { # Note: On Win, this should run after win_toolchain, as it may use it. 'name': 'clang', diff --git a/webrtc.gni b/webrtc.gni index c91c25ba0d..8ab7b27f0c 100644 --- a/webrtc.gni +++ b/webrtc.gni @@ -35,6 +35,10 @@ if (is_mac) { import("//build/config/mac/rules.gni") } +if (is_fuchsia) { + import("//build/config/fuchsia/config.gni") +} + # This declare_args is separated from the next one because args declared # in this one, can be read from the next one (args defined in the same # declare_args cannot be referenced in that scope).