| # Copyright 2022 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/sdk/sdk_atom.gni") | |
| import("//src/developer/ffx/build/ffx_tool.gni") | |
| if (is_host) { | |
| # LINT.IfChange | |
| bazel_ffx_tool("ffx_setui_tool") { | |
| output_name = "ffx-setui" | |
| sdk_category = "partner" | |
| } | |
| # LINT.ThenChange(BUILD.bazel) | |
| group("setui") { | |
| public_deps = [ | |
| ":ffx_setui_tool", | |
| ":ffx_setui_tool_host_tool", | |
| ] | |
| } | |
| group("bin") { | |
| public_deps = [ ":ffx_setui_tool_versioned" ] | |
| } | |
| # TODO(https://fxbug.dev/438572714): Remove once the IDK uses the Bazel atom. | |
| _idk_path = "tools/$current_cpu/ffx_tools/ffx-setui" | |
| sdk_atom("sdk") { | |
| category = "partner" | |
| sdk_area = "Developer" | |
| id = "sdk://$_idk_path" | |
| idk_name = "ffx-setui" | |
| meta = { | |
| dest = "$_idk_path-meta.json" | |
| type = "ffx_tool" | |
| source_prebuild_info = { | |
| arch = current_cpu | |
| file_base = "tools" | |
| } | |
| } | |
| files = [ | |
| { | |
| source = "$root_out_dir/ffx-setui" | |
| dest = _idk_path | |
| }, | |
| { | |
| source = "$root_out_dir/ffx-setui.json" | |
| dest = "$_idk_path.json" | |
| }, | |
| ] | |
| non_sdk_deps = [ ":ffx_setui_tool_versioned" ] | |
| } | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ | |
| "accessibility:tests", | |
| "audio:tests", | |
| "display:tests", | |
| "do_not_disturb:tests", | |
| "factory_reset:tests", | |
| "input:tests", | |
| "intl:tests", | |
| "keyboard:tests", | |
| "light:tests", | |
| "night_mode:tests", | |
| "privacy:tests", | |
| "setup:tests", | |
| ] | |
| } |