blob: 5a5132e18e09535c998f8e60e72e0a1a92de793f [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("zx") {
sdk = "source"
sdk_publishable = "partner"
sdk_headers = [ "lib/zx/result.h" ]
sources = []
deps = [ "//src/zircon/lib/zircon" ]
public_deps = [
"//sdk/lib/fit",
"//sdk/lib/stdcompat",
"//src/zircon/lib/zircon:headers",
]
if (is_fuchsia && !is_kernel) {
sdk_headers += [
"lib/zx/bti.h",
"lib/zx/channel.h",
"lib/zx/clock.h",
"lib/zx/debuglog.h",
"lib/zx/event.h",
"lib/zx/eventpair.h",
"lib/zx/exception.h",
"lib/zx/fifo.h",
"lib/zx/guest.h",
"lib/zx/handle.h",
"lib/zx/interrupt.h",
"lib/zx/iob.h",
"lib/zx/iommu.h",
"lib/zx/job.h",
"lib/zx/msi.h",
"lib/zx/object.h",
"lib/zx/object_traits.h",
"lib/zx/pager.h",
"lib/zx/pmt.h",
"lib/zx/port.h",
"lib/zx/process.h",
"lib/zx/profile.h",
"lib/zx/resource.h",
"lib/zx/socket.h",
"lib/zx/stream.h",
"lib/zx/suspend_token.h",
"lib/zx/task.h",
"lib/zx/thread.h",
"lib/zx/time.h",
"lib/zx/timer.h",
"lib/zx/vcpu.h",
"lib/zx/vmar.h",
"lib/zx/vmo.h",
]
sources += [
"bti.cc",
"channel.cc",
"debuglog.cc",
"event.cc",
"eventpair.cc",
"fifo.cc",
"guest.cc",
"interrupt.cc",
"iob.cc",
"iommu.cc",
"job.cc",
"msi.cc",
"pager.cc",
"port.cc",
"process.cc",
"profile.cc",
"resource.cc",
"socket.cc",
"status_string.cc",
"stream.cc",
"thread.cc",
"timer.cc",
"vcpu.cc",
"vmar.cc",
"vmo.cc",
]
}
}