blob: 2be6e6efe5d115abe5cfd126e2455ae7e6ba637c [file] [log] [blame]
# Copyright 2022 The Fuchsia Authors.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Add build type config data
legacy_base_package_labels += [
legacy_base_package_labels += [ "//src/developer/ssh-key-manager" ]
# TODO: Remove this once Scenic supports multiple displays.
legacy_base_package_labels -= [ "//src/sys/stash:pkg" ]
legacy_base_package_labels += [ "//src/sys/stash:pkg_eng" ]
# Used by integration tests to inject v1 networking components.
legacy_base_package_labels +=
[ "//src/connectivity/network:network-legacy-deprecated" ]
# Setting service configuration
legacy_base_package_labels +=
[ "//src/settings/config:workstation_eng_interface_config" ]
# Improve DX by allowing iteration on these packages without and OTA.
_developer_packages = [
# Starnix
legacy_base_package_labels -= _developer_packages
legacy_cache_package_labels += _developer_packages
# Add examples to universe.
legacy_universe_package_labels += [
# TODO(fxb/102262): This is an anti-pattern, do not imitate. Remove when we are ready.
# E2E Product Tests. Currently used for Chrome smoke test.
# They don't produce fuchsia packages, but host executables used by the tests.
host_labels += [ "//src/experiences/tests/chrome:test" ]
# Set the SWD policy for workstation_eng, details can be found in //build/security/policies_swd.gni.
policy_labels.swd = "unrestricted"
# End to end (E2E) product test runtime dependencies. Must be added to cache,
# not universe, so the test can run on bots where there is no package server.
# TODO( Support a package server on bots so this can be added to
# universe like the tests.
legacy_cache_package_labels += [
# Used for Chromium tests for example: web_runner_tests.
# Used for Chromium e2e tests. See fxb/96503.
# CFv2 test framework.
# Fake build info for testing support.
# E2E Product Tests. They don't produce fuchsia packages, but host executables
# used by the tests.
host_labels += [
legacy_universe_package_labels += [
# E2E Product Tests. They don't produce fuchsia packages, but host
# executables, and must just be included somewhere in the build configuration
# of the product.
# Only for products in which Flutter is supported.
# Add SDK tools set to "cache" so these tools are automatically available in
# QEMU images generated for the SDK, but in cache, so they can be updated.
legacy_cache_package_labels += [ "//sdk/bundles:core-tools" ]
# Add cfv2 sl4f to base.
core_realm_shards += [ "//src/testing/sl4f:sl4f_terminal_core_shard" ]
legacy_base_package_labels += [ "//src/sys/bin/start_sl4f" ]
# Enable the live_usb component.
with_live_usb = true
product_bootfs_labels += [ "//src/sys/live_usb:live_usb_is_system" ]
# Build with both JIT and AOT non-product runners. JIT is used for debug builds, and AOT is used
# for release builds.
legacy_cache_package_labels += [
# Use the product assembly config file to specify the session manager (and the
# deps for the session).
fuchsia_product_assembly_config_label = "//products/workstation"
fuchsia_product_assembly_config_file = "${root_build_dir}/obj/products/workstation/workstation/product_assembly_config.json"
# Remove some packages.
legacy_base_package_labels -= [ "//src/virtualization/packages/termina_guest" ]
# TODO( Remove this setting when Subpackages is made
# generally available. For now, the workstation product configuration will
# enable subpackages so subpackage tests will be executed in CQ. Currently,
# tests that use subpackages are only loaded by the universe resolver.
# Otherwise, to enable subpackages locally, add the following `fx set`
# flags, depending on which resolver(s) are used for which tests:
# fx set ... \
# --args='universe_resolver_enable_subpackages=true'
# and/or:
# --args='base_resolver_enable_subpackages=true'
universe_resolver_enable_subpackages = true