| # 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/zircon/migrated_targets.gni") |
| |
| zx_library("cksum") { |
| sdk = "source" |
| sdk_headers = [ "lib/cksum.h" ] |
| |
| sources = [ |
| "adler32.c", |
| "crc16.c", |
| "crc32.c", |
| ] |
| |
| cflags = [ "-Wno-strict-prototypes" ] |
| |
| if (is_kernel) { |
| # TODO(55514): Excluding kernel libc for efi bootloader until standard library dependency |
| # of bootloader is sorted out. |
| deps = [ "//zircon/kernel/lib/libc" ] |
| } |
| |
| # TODO(fxbug.dev/58162): delete the below and fix compiler warnings |
| configs += [ "//build/config:Wno-conversion" ] |
| } |