| # 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/package.gni") |
| |
| ############################################################################### |
| # PACKAGES |
| ############################################################################### |
| package("bugreport") { |
| binaries = [ |
| { |
| name = "bugreport" |
| shell = true |
| }, |
| ] |
| |
| meta = [ |
| { |
| path = "meta/bugreport.cmx" |
| dest = "bugreport.cmx" |
| }, |
| ] |
| |
| deps = [ ":main" ] |
| } |
| |
| ############################################################################### |
| # EXECUTABLES |
| ############################################################################### |
| executable("main") { |
| output_name = "bugreport" |
| |
| sources = [ "main.cc" ] |
| |
| deps = [ |
| ":command_line_options", |
| ":src", |
| "//sdk/lib/sys/cpp", |
| ] |
| } |
| |
| ############################################################################### |
| # SOURCES |
| ############################################################################### |
| source_set("command_line_options") { |
| sources = [ |
| "command_line_options.cc", |
| "command_line_options.h", |
| ] |
| |
| deps = [ "//src/lib/fxl" ] |
| } |
| |
| source_set("src") { |
| sources = [ |
| "bug_reporter.cc", |
| "bug_reporter.h", |
| ] |
| |
| public_deps = [ "//sdk/lib/sys/cpp" ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.feedback", |
| "//zircon/public/lib/zx", |
| ] |
| } |