blob: bae417a0e705f0f4cc5fe63bdb85cc22d006cc22 [file] [log] [blame]
# 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
}