blob: 84fe6a031514c5f7d5f052681b014341b7fe3aec [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/zircon/migrated_targets.gni")
zx_library("cksum") {
kernel = true
static = true
host = true
sdk = "source"
sdk_headers = [ "lib/cksum.h" ]
sdk_migrated = true
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/zircon:Wno-conversion" ]
}