blob: 618655d29e2a3d6d7d8fc42935ee0a05216bd139 [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/zx_library.gni")
group("tests") {
testonly = true
deps = [ "test" ]
}
zx_library("image-format") {
sdk = "source"
sdk_headers = [ "lib/image-format/image_format.h" ]
sources = [ "image_format.cc" ]
public_deps = [
"//sdk/fidl/fuchsia.sysmem:fuchsia.sysmem_c",
"//sdk/fidl/fuchsia.sysmem:fuchsia.sysmem_llcpp",
"//sdk/fidl/fuchsia.sysmem2:fuchsia.sysmem2_llcpp",
]
deps = [
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/fidl",
"//zircon/system/ulib/sysmem-version",
]
# TODO(https://fxbug.dev/58162): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
# TODO(fxbug.dev/94768): This target uses mutable tables which are deprecated,
# rather than builders.
configs += [ "//build/cpp:fidl-wire-deprecated-mutable-tables" ]
# TODO(fxbug.dev/95833): This target uses the deprecated C bindings.
# Consider switching to the C++ bindings. See linked bug for details.
public_configs = [ "//build/c:fidl-deprecated-c-bindings" ]
}
# TODO(dustingreen): Migrate / move anything that's still needed into
# image-format.
zx_library("image-format-llcpp") {
sdk = "source"
sdk_headers = [ "lib/image-format-llcpp/image-format-llcpp.h" ]
sources = [ "image-format-llcpp.cc" ]
public_deps = [ ":image-format" ]
# TODO(fxbug.dev/95833): This target uses the deprecated C bindings.
# Consider switching to the C++ bindings. See linked bug for details.
configs += [ "//build/c:fidl-deprecated-c-bindings" ]
}