blob: 5ec70483fa40073aa7970f462f69540b1fcc0dc8 [file] [log] [blame]
// Copyright 2018 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.
package fuchsia
var (
// PackagesManifestFilename represents the name of the packages
// manifest file available in the Fuchsia build output directory.
PackagesManifestFilename = "packages.json"
)
// PackagesManifest is a JSON structure that's produced by a Fuchsia build and
// describes which packages were built and where they're located.
type PackagesManifest struct {
Available []string `json:"available"`
Monolith []string `json:"monolith"`
Preinstall []string `json:"preinstall"`
Packages []PackageDescriptor
}
// PackageDescriptor provides information about a package.
type PackageDescriptor struct {
// BuildDir is a relative path in the Fuchsia build directory to the location
// of the built package.
BuildDir string `json:"build_dir"`
// Dir is the GN-relative location of the package (part of the build target
// name).
Dir string `json:"dir"`
// Name is the basename of the package.
Name string `json:"name"`
}