| # Copyright 2026 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. | |
| load("@io_bazel_rules_go//go:def.bzl", "go_library") | |
| load("//build/bazel/platforms:constraints.bzl", "HOST_OS_CONSTRAINTS") | |
| load("//build/bazel/rules/host:defs.bzl", "go_binary_host_tool") | |
| package(default_applicable_licenses = ["//:license"]) | |
| go_library( | |
| name = "main", | |
| srcs = ["cmd/main.go"], | |
| importpath = "go.fuchsia.dev/fuchsia/tools/debug/sourcerer/cmd", | |
| target_compatible_with = HOST_OS_CONSTRAINTS, | |
| deps = [ | |
| "//tools/debug/elflib", | |
| "//tools/lib/color", | |
| "//tools/lib/logger", | |
| ], | |
| ) | |
| go_binary_host_tool( | |
| name = "sourcerer", | |
| embed = [":main"], | |
| target_compatible_with = HOST_OS_CONSTRAINTS, | |
| ) |