github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/tools/nogo/BUILD (about)

     1  load("//tools:defs.bzl", "bzl_library", "go_library", "select_goarch", "select_goos")
     2  load("//tools/nogo:defs.bzl", "nogo_objdump_tool", "nogo_stdlib", "nogo_target")
     3  
     4  package(licenses = ["notice"])
     5  
     6  exports_files(["config-schema.json"])
     7  
     8  nogo_target(
     9      name = "target",
    10      goarch = select_goarch(),
    11      goos = select_goos(),
    12      visibility = ["//visibility:public"],
    13  )
    14  
    15  nogo_objdump_tool(
    16      name = "objdump_tool",
    17      visibility = ["//visibility:public"],
    18  )
    19  
    20  nogo_stdlib(
    21      name = "stdlib",
    22      visibility = ["//visibility:public"],
    23  )
    24  
    25  go_library(
    26      name = "nogo",
    27      srcs = [
    28          "analyzers.go",
    29          "build.go",
    30          "config.go",
    31          "findings.go",
    32          "nogo.go",
    33      ],
    34      nogo = False,
    35      visibility = ["//:sandbox"],
    36      deps = [
    37          "//tools/checkescape",
    38          "//tools/checklocks",
    39          "//tools/checkunsafe",
    40          "//tools/nogo/objdump",
    41          "//tools/worker",
    42          "@co_honnef_go_tools//staticcheck:go_default_library",
    43          "@co_honnef_go_tools//stylecheck:go_default_library",
    44          "@org_golang_x_tools//go/analysis:go_default_library",
    45          "@org_golang_x_tools//go/analysis/internal/facts:go_default_library",
    46          "@org_golang_x_tools//go/analysis/passes/asmdecl:go_default_library",
    47          "@org_golang_x_tools//go/analysis/passes/assign:go_default_library",
    48          "@org_golang_x_tools//go/analysis/passes/atomic:go_default_library",
    49          "@org_golang_x_tools//go/analysis/passes/bools:go_default_library",
    50          "@org_golang_x_tools//go/analysis/passes/buildtag:go_default_library",
    51          "@org_golang_x_tools//go/analysis/passes/cgocall:go_default_library",
    52          "@org_golang_x_tools//go/analysis/passes/composite:go_default_library",
    53          "@org_golang_x_tools//go/analysis/passes/copylock:go_default_library",
    54          "@org_golang_x_tools//go/analysis/passes/errorsas:go_default_library",
    55          "@org_golang_x_tools//go/analysis/passes/httpresponse:go_default_library",
    56          "@org_golang_x_tools//go/analysis/passes/loopclosure:go_default_library",
    57          "@org_golang_x_tools//go/analysis/passes/lostcancel:go_default_library",
    58          "@org_golang_x_tools//go/analysis/passes/nilfunc:go_default_library",
    59          "@org_golang_x_tools//go/analysis/passes/nilness:go_default_library",
    60          "@org_golang_x_tools//go/analysis/passes/printf:go_default_library",
    61          "@org_golang_x_tools//go/analysis/passes/shadow:go_default_library",
    62          "@org_golang_x_tools//go/analysis/passes/shift:go_default_library",
    63          "@org_golang_x_tools//go/analysis/passes/stdmethods:go_default_library",
    64          "@org_golang_x_tools//go/analysis/passes/stringintconv:go_default_library",
    65          "@org_golang_x_tools//go/analysis/passes/structtag:go_default_library",
    66          "@org_golang_x_tools//go/analysis/passes/tests:go_default_library",
    67          "@org_golang_x_tools//go/analysis/passes/unmarshal:go_default_library",
    68          "@org_golang_x_tools//go/analysis/passes/unreachable:go_default_library",
    69          "@org_golang_x_tools//go/analysis/passes/unsafeptr:go_default_library",
    70          "@org_golang_x_tools//go/analysis/passes/unusedresult:go_default_library",
    71          "@org_golang_x_tools//go/gcexportdata:go_default_library",
    72          "@org_golang_x_tools//go/types/objectpath:go_default_library",
    73      ],
    74  )
    75  
    76  bzl_library(
    77      name = "defs_bzl",
    78      srcs = ["defs.bzl"],
    79      visibility = ["//visibility:private"],
    80  )