| // |
| // Copyright (C) 2023 The Android Open Source Project |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| package { |
| default_applicable_licenses: ["Android-Apache-2.0"], |
| } |
| |
| cc_library_host_static { |
| name: "libcvd_sub_commands", |
| srcs: [ |
| "utils.cpp", |
| "acloud_command.cpp", |
| "acloud_common.cpp", |
| "acloud_translator.cpp", |
| "acloud_mixsuperimage.cpp", |
| "cmd_list.cpp", |
| "display.cpp", |
| "env.cpp", |
| "fetch.cpp", |
| "flags_collector.cpp", |
| "fleet.cpp", |
| "host_tool_target.cpp", |
| "host_tool_target_manager.cpp", |
| "generic.cpp", |
| "handler_proxy.cpp", |
| "help.cpp", |
| "load_configs.cpp", |
| "power.cpp", |
| "reset.cpp", |
| "restart.cpp", |
| "serial_launch.cpp", |
| "serial_preset.cpp", |
| "shutdown.cpp", |
| "snapshot.cpp", |
| "start.cpp", |
| "status.cpp", |
| "status_fetcher.cpp", |
| "subprocess_waiter.cpp", |
| "try_acloud.cpp", |
| "version.cpp", |
| ], |
| static_libs: [ |
| "libcvd_acloud", |
| "libcvd_metrics", |
| "libcvd_selector", |
| ], |
| defaults: ["cvd_lib_defaults"], |
| } |
| |
| cc_test_host { |
| name: "libcvd_sub_commands_test", |
| srcs: [ |
| "start_test.cpp", |
| ], |
| test_options: { |
| unit_test: true, |
| }, |
| static_libs: [ |
| "libcvd_sub_commands", |
| "libgmock", |
| ], |
| defaults: ["cvd_and_fetch_cvd_defaults"], |
| } |