| # 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. | |
| visibility = [ "//src/developer/forensics/exceptions/*" ] | |
| ############################################################################### | |
| # SOURCES | |
| ############################################################################### | |
| source_set("constants") { | |
| sources = [ "constants.h" ] | |
| visibility += [ "//src/developer/forensics/testing/stubs/*" ] | |
| } | |
| source_set("lib") { | |
| sources = [ | |
| "crash_counter.cc", | |
| "crash_counter.h", | |
| "exception_broker.cc", | |
| "exception_broker.h", | |
| "handler_manager.cc", | |
| "handler_manager.h", | |
| "json_utils.cc", | |
| "json_utils.h", | |
| "pending_exception.cc", | |
| "pending_exception.h", | |
| "process_handler.cc", | |
| "process_handler.h", | |
| "process_limbo_manager.cc", | |
| "process_limbo_manager.h", | |
| ] | |
| public_deps = [ | |
| "//sdk/fidl/fuchsia.exception:fuchsia.exception_cpp", | |
| "//sdk/lib/async", | |
| "//sdk/lib/async:async-cpp", | |
| "//sdk/lib/async-loop:async-loop-cpp", | |
| "//sdk/lib/async-loop:async-loop-default", | |
| "//sdk/lib/sys/cpp", | |
| "//sdk/lib/syslog/cpp", | |
| "//src/developer/forensics/exceptions/fidl:fuchsia.exception.internal_hlcpp", | |
| "//src/lib/fsl", | |
| "//src/lib/fxl", | |
| "//third_party/rapidjson", | |
| "//zircon/system/ulib/inspect", | |
| "//zircon/system/ulib/zx", | |
| ] | |
| deps = [ ":constants" ] | |
| } | |
| source_set("main") { | |
| sources = [ | |
| "main.cc", | |
| "main.h", | |
| ] | |
| deps = [ | |
| ":lib", | |
| "//src/developer/forensics:exceptions_config", | |
| "//src/developer/forensics/exceptions:constants", | |
| "//src/developer/forensics/utils/component", | |
| ] | |
| visibility += [ "//src/developer/forensics:*" ] | |
| } |