blob: c2bc70896bb99b27feb2891f196b3f882cf3568e [file] [log] [blame] [edit]
# 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.
import("//build/sdk/sdk_collection.gni")
# Deprecated: A collection of elements to be published in an SDK.
#
# Please use sdk_collection() instead. This template is only maintained for
# legacy reasons.
#
# Parameters
#
# name (optional)
# Name of the SDK.
# Defaults to the target's name.
#
# id (optional)
# An opaque identifier for the SDK.
# Defaults to the empty string.
#
# api (required)
# Path to the file representing the canonical contents of this SDK.
# This file is used to ensure modifications to the SDK contents are
# explicitly acknowledged.
# Mandatory for "public" or "partner" SDKs.
#
# category (required)
# Describes the minimum category that atoms in this SDK must have.
# See //build/sdk/sdk_atom.gni for possible values.
#
# filter_api_host_tools (optional)
# Boolean. Set to true to ignore host tools declarations in the api file
# that do not belong to the current host toolchain. Useful when
# host tools are not cross-compiled for several host architectures
# (see sdk_cross_compile_host_tools in //sdk/config.gni for details).
#
template("sdk") {
sdk_collection(target_name) {
forward_variables_from(invoker, "*")
if (build_sdk_archives) {
generate_archive = true
}
}
}