| # 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. |
| |
| load( |
| "@rules_fuchsia//fuchsia:assembly.bzl", |
| "BUILD_TYPES", |
| "INPUT_DEVICE_TYPE", |
| "fuchsia_platform_artifacts", |
| "fuchsia_product", |
| "fuchsia_product_bundle", |
| "fuchsia_product_configuration", |
| ) |
| |
| package(default_visibility = ["//visibility:public"]) |
| |
| exports_files( |
| glob( |
| ["*"], |
| ), |
| ) |
| |
| fuchsia_product_configuration( |
| name = "product_config", |
| product_config_json = { |
| "platform": { |
| "build_type": BUILD_TYPES.ENG, |
| "fonts": { |
| "enabled": False, |
| }, |
| "icu": { |
| "revision": "default", |
| }, |
| "ui": { |
| "supported_input_devices": [ |
| INPUT_DEVICE_TYPE.BUTTON, |
| INPUT_DEVICE_TYPE.TOUCHSCREEN, |
| ], |
| }, |
| "development_support": { |
| "include_netsvc": False, |
| }, |
| }, |
| "product": { |
| "build_info": { |
| "name": "test_product", |
| "version": "LABEL(version_file.txt)", |
| "jiri_snapshot": "LABEL(jiri_snapshot.xml)", |
| "latest_commit_date": "LABEL(version_file.txt)", |
| }, |
| }, |
| }, |
| ) |
| |
| fuchsia_product( |
| name = "test_product.vim3.image", |
| board_config = "//boards:hybrid_vim3", |
| platform_artifacts = "//platform:platform_aibs", |
| product_config = ":product_config", |
| ) |
| |
| genrule( |
| name = "update_version_file", |
| outs = ["version_file.txt"], |
| cmd = "date +%s > $@", |
| ) |
| |
| fuchsia_product_bundle( |
| name = "test_product.vim3", |
| main = ":test_product.vim3.image", |
| product_bundle_name = "test_product.vim3", |
| repository_keys = "//products/keys", |
| update_epoch = "1", |
| update_version_file = ":version_file.txt", |
| ) |