1// Copyright 2024 The BoringSSL Authors 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// https://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package build 16 17// A Target is a build target for consumption by the downstream build systems. 18// All pre-generated files are baked input its source lists. 19type Target struct { 20 // Srcs is the list of C, C++, or Rust files (determined by file extension) 21 // that are built into the target. 22 Srcs []string `json:"srcs,omitempty"` 23 // Hdrs is the list public headers that should be available to external 24 // projects using this target. 25 Hdrs []string `json:"hdrs,omitempty"` 26 // InternalHdrs is the list of internal headers that should be available to 27 // this target, as well as any internal targets using this target. 28 InternalHdrs []string `json:"internal_hdrs,omitempty"` 29 // Asm is the a list of assembly files to be passed to a gas-compatible 30 // assembler. 31 Asm []string `json:"asm,omitempty"` 32 // Nasm is the a list of assembly files to be passed to a nasm-compatible 33 // assembler. 34 Nasm []string `json:"nasm,omitempty"` 35 // Data is a list of test data files that should be available when the test is 36 // run. 37 Data []string `json:"data,omitempty"` 38} 39