| # Copyright 2024 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. |
| |
| load( |
| "@rules_fuchsia//fuchsia:assembly.bzl", |
| "BUILD_TYPES", |
| "INPUT_DEVICE_TYPE", |
| "fuchsia_product", |
| "fuchsia_product_bundle", |
| "fuchsia_product_configuration", |
| "fuchsia_virtual_device", |
| ) |
| |
| package(default_visibility = ["//visibility:public"]) |
| |
| fuchsia_product( |
| name = "main.vim3", |
| board_config = "//boards:vim3", |
| platform_artifacts = "//platform:vim3_platform_artifacts", |
| product_config = "//products/reference:product_configuration_arm64", |
| ) |
| |
| genrule( |
| name = "update_version_file", |
| outs = ["version_file.txt"], |
| cmd = "date +%s > $@", |
| ) |
| |
| fuchsia_product_bundle( |
| name = "reference.vim3", |
| main = "//products/reference:main.vim3", |
| partitions_config = "//boards/partitions:vim3_partitions", |
| product_bundle_name = "reference.vim3", |
| repository_keys = "//products/reference/keys", |
| update_epoch = "1", |
| update_version_file = "//products/reference:version_file.txt", |
| ) |
| |
| fuchsia_product( |
| name = "main.x64", |
| board_config = "//boards:x64", |
| platform_artifacts = "//platform:x64_platform_artifacts", |
| product_config = "//products/reference:product_configuration_x64", |
| ) |
| |
| fuchsia_product_bundle( |
| name = "reference.x64", |
| main = "//products/reference:main.x64", |
| partitions_config = "//boards/partitions:x64_partitions", |
| product_bundle_name = "reference.x64", |
| repository_keys = "//products/reference/keys", |
| update_epoch = "1", |
| update_version_file = "//products/reference:version_file.txt", |
| virtual_devices = [ |
| "//products/reference:reference_virtual_device", |
| ], |
| ) |
| |
| _reference_product_config = { |
| "platform": { |
| "build_type": BUILD_TYPES.ENG, |
| "ui": { |
| "enabled": True, |
| "supported_input_devices": [ |
| INPUT_DEVICE_TYPE.BUTTON, |
| INPUT_DEVICE_TYPE.TOUCHSCREEN, |
| ], |
| }, |
| "session": { |
| "enabled": True, |
| }, |
| "development_support": { |
| "include_netsvc": True, |
| }, |
| }, |
| "product": { |
| "info": { |
| "name": "reference", |
| "model": "reference", |
| "manufacturer": "Fuchsia", |
| }, |
| "session": { |
| "url": "fuchsia-pkg://fuchsia.com/reference_session#meta/reference_session.cm", |
| }, |
| }, |
| } |
| |
| fuchsia_product_configuration( |
| name = "product_configuration_arm64", |
| base_packages = ["//src/reference_session:reference_session_pkg_arm64"], |
| product_config_json = _reference_product_config, |
| ) |
| |
| fuchsia_product_configuration( |
| name = "product_configuration_x64", |
| base_packages = ["//src/reference_session:reference_session_pkg_x64"], |
| product_config_json = _reference_product_config, |
| ) |
| |
| fuchsia_virtual_device( |
| name = "reference_virtual_device", |
| arch = "x64", |
| device_name = "reference", |
| ) |