| # 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/library_headers.gni") |
| |
| library_headers("safemath") { |
| headers = [ |
| "safemath/checked_math.h", |
| "safemath/checked_math_impl.h", |
| "safemath/clamped_math.h", |
| "safemath/clamped_math_impl.h", |
| "safemath/math_constants.h", |
| "safemath/ranges.h", |
| "safemath/safe_conversions.h", |
| "safemath/safe_conversions_arm_impl.h", |
| "safemath/safe_conversions_impl.h", |
| "safemath/safe_math.h", |
| "safemath/safe_math_arm_impl.h", |
| "safemath/safe_math_clang_gcc_impl.h", |
| "safemath/safe_math_shared_impl.h", |
| ] |
| |
| assert(!is_kernel, |
| "This header library cannot be used with a kernel-specific toolchain!") |
| } |