Android-cuttlefish cvd tool
vector_flags.h
Go to the documentation of this file.
1//
2// Copyright (C) 2023 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16#pragma once
17
18#include <optional>
19#include <string>
20#include <vector>
21
25
26namespace cuttlefish {
27
28inline constexpr bool kDefaultDownloadImgZip = true;
29inline constexpr bool kDefaultDownloadTargetFilesZip = false;
30
32 std::vector<Flag> Flags();
34
35 std::vector<std::string> target_subdirectory;
36 std::vector<std::optional<BuildString>> default_build;
37 std::vector<std::optional<BuildString>> system_build;
38 std::vector<std::optional<BuildString>> kernel_build;
39 std::vector<std::optional<BuildString>> boot_build;
40 std::vector<std::optional<BuildString>> bootloader_build;
41 std::vector<std::optional<BuildString>> android_efi_loader_build;
42 std::vector<std::optional<BuildString>> otatools_build;
43 std::vector<std::optional<ChromeOsBuildString>> chrome_os_build;
44 std::vector<bool> download_img_zip;
45 std::vector<bool> download_target_files_zip;
46 std::vector<std::string> boot_artifact;
47};
48
49} // namespace cuttlefish
Definition: expected.h:86
Definition: alloc_utils.cpp:23
constexpr bool kDefaultDownloadTargetFilesZip
Definition: vector_flags.h:29
constexpr bool kDefaultDownloadImgZip
Definition: vector_flags.h:28
Definition: vector_flags.h:31
std::vector< std::string > target_subdirectory
Definition: vector_flags.h:35
std::vector< std::optional< BuildString > > boot_build
Definition: vector_flags.h:39
std::vector< std::optional< BuildString > > default_build
Definition: vector_flags.h:36
std::vector< Flag > Flags()
Definition: vector_flags.cc:29
std::vector< std::optional< ChromeOsBuildString > > chrome_os_build
Definition: vector_flags.h:43
std::vector< std::optional< BuildString > > android_efi_loader_build
Definition: vector_flags.h:41
std::vector< std::optional< BuildString > > bootloader_build
Definition: vector_flags.h:40
std::vector< std::string > boot_artifact
Definition: vector_flags.h:46
std::vector< std::optional< BuildString > > kernel_build
Definition: vector_flags.h:38
std::vector< bool > download_target_files_zip
Definition: vector_flags.h:45
std::vector< std::optional< BuildString > > system_build
Definition: vector_flags.h:37
std::vector< std::optional< BuildString > > otatools_build
Definition: vector_flags.h:42
std::vector< bool > download_img_zip
Definition: vector_flags.h:44
Result< int > NumberOfBuilds() const
Definition: vector_flags.cc:75