| # Copyright 2023 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/bazel/assembly/bazel_product_bundle.gni") |
| |
| # A GN target to perform system assembly in Bazel exclusively, using |
| # Ninja-generated inputs. |
| |
| group("workbench") { |
| testonly = true |
| if (current_cpu == "x64") { |
| deps = [ ":workbench_eng.x64" ] |
| } else if (current_cpu == "arm64") { |
| deps = [ |
| ":workbench_eng.arm64", |
| ":workbench_eng.vim3", |
| ] |
| } |
| } |
| |
| if (current_cpu == "x64") { |
| bazel_product_bundle("workbench_eng.x64") { |
| testonly = true |
| product_bundle_name = target_name |
| allow_eng_platform_bundle_use = true |
| bazel_product_bundle_target = "//products/workbench:product_bundle_eng.x64" |
| bazel_product_image_target = "//products/workbench:assembly_eng.x64" |
| bazel_recovery_image_target = "//products/zedboot:x64" |
| bazel_elf_sizes_target = "//products/workbench:elf_sizes.x64" |
| bazel_inputs_from_gn = [ |
| "//boards/x64:x64.bazel_input", |
| "//build/images/flash:esp.bazel_input", |
| "//products/workbench/workbench_session:workbench_session_bazel_inputs", |
| ] |
| } |
| } |
| |
| if (current_cpu == "arm64") { |
| bazel_product_bundle("workbench_eng.arm64") { |
| testonly = true |
| product_bundle_name = target_name |
| allow_eng_platform_bundle_use = true |
| bazel_product_bundle_target = |
| "//products/workbench:product_bundle_eng.arm64" |
| bazel_product_image_target = "//products/workbench:assembly_eng.arm64" |
| bazel_recovery_image_target = "//products/zedboot:arm64" |
| bazel_elf_sizes_target = "//products/workbench:elf_sizes.arm64" |
| bazel_inputs_from_gn = [ |
| "//boards/arm64:arm64.bazel_input", |
| "//build/images/flash:esp.bazel_input", |
| "//products/workbench/workbench_session:workbench_session_bazel_inputs", |
| ] |
| } |
| |
| bazel_product_bundle("workbench_eng.vim3") { |
| testonly = true |
| product_bundle_name = target_name |
| allow_eng_platform_bundle_use = true |
| bazel_product_bundle_target = "//products/workbench:product_bundle_eng.vim3" |
| bazel_product_image_target = "//products/workbench:assembly_eng.vim3" |
| bazel_recovery_image_target = "//products/zedboot:vim3" |
| bazel_elf_sizes_target = "//products/workbench:elf_sizes.vim3" |
| bazel_inputs_from_gn = [ |
| "//build/images/flash:esp.bazel_input", |
| "//products/workbench/workbench_session:workbench_session_bazel_inputs", |
| "//boards/vim3:bazel_inputs", |
| ] |
| } |
| } |