| # Copyright 2018 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/*" ] |
| |
| ############################################################################### |
| # SOURCES |
| ############################################################################### |
| source_set("annotation_map") { |
| sources = [ "annotation_map.h" ] |
| |
| public_deps = [ |
| ":errors", |
| "//sdk/fidl/fuchsia.feedback:fuchsia.feedback_hlcpp", |
| "//sdk/lib/syslog/cpp", |
| "//src/developer/forensics/utils:errors", |
| "//src/lib/fxl", |
| ] |
| } |
| |
| source_set("constants") { |
| sources = [ "constants.h" ] |
| |
| public_deps = [ |
| "//src/developer/forensics/utils:storage_size", |
| "//zircon/system/ulib/zx", |
| ] |
| } |
| |
| source_set("crash_register") { |
| sources = [ |
| "crash_register.cc", |
| "crash_register.h", |
| ] |
| |
| public_deps = [ |
| ":annotation_map", |
| ":product", |
| "//sdk/fidl/fuchsia.feedback:fuchsia.feedback_hlcpp", |
| "//src/developer/forensics/crash_reports/info", |
| "//src/developer/forensics/feedback:constants", |
| "//src/developer/forensics/feedback/annotations", |
| "//src/developer/forensics/utils:errors", |
| "//third_party/rapidjson", |
| ] |
| |
| deps = [ |
| "//sdk/lib/syslog/cpp", |
| "//src/lib/files", |
| "//src/lib/fostr/fidl/fuchsia.feedback", |
| ] |
| } |
| |
| source_set("crash_reporter") { |
| sources = [ |
| "crash_reporter.cc", |
| "crash_reporter.h", |
| "product_quotas.cc", |
| "product_quotas.h", |
| ] |
| |
| public_deps = [ |
| ":crash_register", |
| ":crash_server", |
| ":filing_result", |
| ":log_tags", |
| ":product", |
| ":queue", |
| ":report_id", |
| ":report_util", |
| ":reporting_policy_watcher", |
| ":snapshot_collector", |
| "//sdk/fidl/fuchsia.feedback:fuchsia.feedback_hlcpp", |
| "//sdk/lib/fit-promise", |
| "//sdk/lib/sys/cpp", |
| "//src/developer/forensics/crash_reports/info", |
| "//src/developer/forensics/feedback:config", |
| "//src/developer/forensics/feedback/annotations", |
| "//src/developer/forensics/utils:errors", |
| "//src/developer/forensics/utils:utc_clock_ready_watcher", |
| "//src/developer/forensics/utils:utc_time_provider", |
| "//src/lib/timekeeper", |
| "//zircon/system/ulib/async", |
| "//zircon/system/ulib/async:async-cpp", |
| ] |
| |
| deps = [ |
| ":constants", |
| "//sdk/lib/fit", |
| "//sdk/lib/syslog/cpp", |
| "//src/developer/forensics/utils/cobalt", |
| ] |
| } |
| |
| source_set("crash_server") { |
| sources = [ |
| "crash_server.cc", |
| "crash_server.h", |
| ] |
| |
| public_deps = [ |
| ":log_tags", |
| ":report", |
| ":sized_data_reader", |
| ":snapshot", |
| "//sdk/fidl/fuchsia.mem:fuchsia.mem_hlcpp", |
| "//sdk/fidl/fuchsia.net.http:fuchsia.net.http_hlcpp", |
| "//sdk/lib/syslog/cpp", |
| "//src/lib/fxl", |
| "//third_party/crashpad/src/util:net", |
| "//third_party/mini_chromium/src/base", |
| ] |
| |
| deps = [ |
| "//src/developer/forensics/feedback:constants", |
| "//src/developer/forensics/utils:sized_data", |
| "//src/lib/fostr/fidl/fuchsia.net.http", |
| "//src/lib/fsl", |
| ] |
| } |
| |
| source_set("errors") { |
| sources = [ "errors.h" ] |
| |
| public_deps = [ |
| "//sdk/lib/syslog/cpp", |
| "//src/developer/forensics/utils:errors", |
| ] |
| } |
| |
| source_set("filing_result") { |
| sources = [ |
| "filing_result.cc", |
| "filing_result.h", |
| ] |
| |
| public_deps = [ |
| "//sdk/fidl/fuchsia.feedback:fuchsia.feedback_hlcpp", |
| "//sdk/lib/fit-promise", |
| ] |
| } |
| |
| source_set("item_location") { |
| sources = [ |
| "item_location.cc", |
| "item_location.h", |
| ] |
| } |
| |
| source_set("log_tags") { |
| sources = [ |
| "log_tags.cc", |
| "log_tags.h", |
| ] |
| |
| public_deps = [ |
| ":report_id", |
| "//sdk/lib/syslog/cpp", |
| ] |
| |
| deps = [ "//src/lib/fxl" ] |
| } |
| |
| source_set("product") { |
| sources = [ |
| "product.cc", |
| "product.h", |
| ] |
| |
| public_deps = [ "//src/developer/forensics/utils:errors" ] |
| } |
| |
| source_set("queue") { |
| sources = [ |
| "queue.cc", |
| "queue.h", |
| ] |
| |
| public_deps = [ |
| ":crash_server", |
| ":filing_result", |
| ":log_tags", |
| ":report_id", |
| ":reporting_policy_watcher", |
| ":store", |
| "//src/developer/forensics/crash_reports/info", |
| "//src/lib/backoff", |
| "//src/lib/fxl", |
| "//zircon/system/ulib/async", |
| ] |
| |
| deps = [ |
| ":constants", |
| ":report", |
| "//sdk/lib/syslog/cpp", |
| "//zircon/system/ulib/async:async-cpp", |
| ] |
| } |
| |
| source_set("report") { |
| sources = [ |
| "report.cc", |
| "report.h", |
| ] |
| |
| public_deps = [ |
| ":annotation_map", |
| ":report_id", |
| ":snapshot", |
| "//sdk/fidl/fuchsia.mem:fuchsia.mem_hlcpp", |
| "//sdk/lib/syslog/cpp", |
| "//src/developer/forensics/utils:sized_data", |
| ] |
| } |
| |
| source_set("reporting_policy_watcher") { |
| sources = [ |
| "reporting_policy_watcher.cc", |
| "reporting_policy_watcher.h", |
| ] |
| |
| public_deps = [ |
| "//sdk/fidl/fuchsia.settings:fuchsia.settings_hlcpp", |
| "//sdk/lib/fit", |
| "//sdk/lib/sys/cpp", |
| "//src/lib/backoff", |
| "//zircon/system/ulib/async", |
| "//zircon/system/ulib/zx", |
| ] |
| |
| deps = [ "//sdk/lib/syslog/cpp" ] |
| } |
| |
| source_set("report_id") { |
| sources = [ "report_id.h" ] |
| } |
| |
| source_set("report_util") { |
| sources = [ |
| "dart_module_parser.cc", |
| "dart_module_parser.h", |
| "report_util.cc", |
| "report_util.h", |
| ] |
| |
| public_deps = [ |
| ":crash_register", |
| ":product", |
| ":report", |
| "//sdk/fidl/fuchsia.feedback:fuchsia.feedback_hlcpp", |
| "//sdk/lib/fit-promise", |
| "//src/developer/forensics/utils:errors", |
| ] |
| |
| deps = [ |
| ":annotation_map", |
| ":constants", |
| ":errors", |
| "//sdk/fidl/fuchsia.mem:fuchsia.mem_hlcpp", |
| "//sdk/lib/syslog/cpp", |
| "//src/developer/forensics/utils:regexp", |
| "//src/lib/files", |
| "//src/lib/fsl", |
| "//src/lib/fxl", |
| "//third_party/re2", |
| ] |
| } |
| |
| source_set("sized_data_reader") { |
| sources = [ |
| "sized_data_reader.cc", |
| "sized_data_reader.h", |
| ] |
| |
| public_deps = [ |
| "//src/developer/forensics/utils:sized_data", |
| "//third_party/crashpad/src/util", |
| "//third_party/mini_chromium/src/base", |
| ] |
| |
| deps = [ "//sdk/lib/syslog/cpp" ] |
| } |
| |
| source_set("snapshot") { |
| sources = [ |
| "snapshot.cc", |
| "snapshot.h", |
| ] |
| |
| public_deps = [ |
| "//src/developer/forensics/feedback/annotations", |
| "//src/developer/forensics/utils:sized_data", |
| ] |
| |
| deps = [ |
| ":constants", |
| "//sdk/lib/syslog/cpp", |
| "//src/developer/forensics/feedback_data:constants", |
| ] |
| } |
| |
| source_set("snapshot_collector") { |
| sources = [ |
| "snapshot_collector.cc", |
| "snapshot_collector.h", |
| ] |
| |
| public_deps = [ |
| ":annotation_map", |
| ":constants", |
| ":queue", |
| ":store", |
| "//sdk/lib/fit-promise", |
| "//sdk/lib/sys/cpp", |
| "//src/developer/forensics/feedback_data:data_provider", |
| "//src/developer/forensics/utils:storage_size", |
| "//src/lib/timekeeper", |
| "//zircon/system/ulib/async", |
| "//zircon/system/ulib/zx", |
| ] |
| |
| deps = [ |
| ":errors", |
| ":report_util", |
| "//sdk/lib/syslog/cpp", |
| "//src/lib/uuid", |
| ] |
| } |
| |
| source_set("store") { |
| sources = [ |
| "report_store.cc", |
| "report_store.h", |
| "report_store_metadata.cc", |
| "report_store_metadata.h", |
| "snapshot_persistence.cc", |
| "snapshot_persistence.h", |
| "snapshot_persistence_metadata.cc", |
| "snapshot_persistence_metadata.h", |
| "snapshot_store.cc", |
| "snapshot_store.h", |
| ] |
| |
| public_deps = [ |
| ":annotation_map", |
| ":item_location", |
| ":log_tags", |
| ":report", |
| ":report_id", |
| "//src/developer/forensics/crash_reports/info", |
| "//src/developer/forensics/utils:storage_size", |
| ] |
| |
| deps = [ |
| ":constants", |
| ":report_util", |
| "//sdk/lib/fit", |
| "//sdk/lib/syslog/cpp", |
| "//src/developer/forensics/feedback_data:constants", |
| "//src/lib/files", |
| "//src/lib/fxl", |
| "//third_party/rapidjson", |
| ] |
| } |