blob: d538165598eeac5959d2939f57005741f051f0f3 [file]
# Copyright 2019 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/cpp/sdk_prebuilt_library_impl.gni")
# A static library that can be exported to an SDK in binary form.
#
#
# See the comments in //build/cpp/sdk_prebuilt_library_impl.gni for parameters.
# `prebuilt_library_type` is already set.
template("sdk_static_library") {
assert(!defined(invoker.prebuilt_library_type))
sdk_prebuilt_library_impl(target_name) {
prebuilt_library_type = "static"
forward_variables_from(invoker, "*")
}
}
# The defaults for a sdk_static_library should match that of a static_library.
set_defaults("sdk_static_library") {
configs = default_common_binary_configs
}