github.com/tencent/goom@v1.0.1/internal/patch/BUILD.bazel (about) 1 load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2 3 go_library( 4 name = "go_default_library", 5 gc_goopts = ["-l"], 6 srcs = [ 7 "fix_addr_amd64.go", 8 "fix_origin.go", 9 "fix_origin_amd64.go", 10 "fix_origin_arm64.go", 11 "guard.go", 12 "jumpdata.go", 13 "monkey.go", 14 "monkey_386.go", 15 "monkey_amd64.go", 16 "monkey_arm64.go", 17 "patch.go", 18 "signature.go", 19 ], 20 importpath = "github.com/tencent/goom/internal/patch", 21 visibility = ["//:__subpackages__"], 22 deps = [ 23 "//internal/bytecode:go_default_library", 24 "//internal/bytecode/memory:go_default_library", 25 "//internal/logger:go_default_library", 26 ] + select({ 27 "@io_bazel_rules_go//go/platform:amd64": [ 28 "//internal/arch/x86asm:go_default_library", 29 ], 30 "//conditions:default": [], 31 }), 32 ) 33 34 go_test( 35 name = "go_default_test", 36 gc_goopts = ["-l"], 37 srcs = [ 38 "fix_addr_amd64_test.go", 39 "monkey_test.go", 40 ], 41 embed = [":go_default_library"], 42 deps = [ 43 "//internal/logger:go_default_library", 44 "//internal/patch/test:go_default_library", 45 "@com_github_stretchr_testify//assert:go_default_library", 46 ], 47 )