github.com/tencent/goom@v1.0.1/test/BUILD.bazel (about)

     1  load("@io_bazel_rules_go//go:def.bzl", "go_library")
     2  load("@rules_cc//cc:defs.bzl", "cc_library")
     3  
     4  cc_library(
     5      name = "libv8",
     6      srcs = select({
     7          "@io_bazel_rules_go//go/platform:darwin": glob(["libv8-darwin/libv8/*.a"]),
     8          "@io_bazel_rules_go//go/platform:linux": glob(["libv8-linux/libv8/*.a"]),
     9          "//conditions:default": [],
    10      }),
    11      hdrs = select({
    12         "@io_bazel_rules_go//go/platform:darwin": glob(["libv8-darwin/include/*.h", "libv8-darwin/include/libplatform/*.h"]),
    13         "@io_bazel_rules_go//go/platform:linux": glob(["libv8-linux/include/*.h", "libv8-linux/include/libplatform/*.h"]),
    14         "//conditions:default": [],
    15     }),
    16  )
    17  
    18  go_library(
    19      name = "go_default_library",
    20      gc_goopts = ["-l"],
    21      srcs = [
    22          "fake.go",
    23          "version.go",
    24          "data.go",
    25          "cgo.go",
    26      ] + select({
    27         "@io_bazel_rules_go//go/platform:darwin": glob(["libv8-darwin/include/*.h", "libv8-darwin/include/libplatform/*.h"]),
    28         "@io_bazel_rules_go//go/platform:linux": glob(["libv8-linux/include/*.h", "libv8-linux/include/libplatform/*.h"]),
    29         "//conditions:default": [],
    30      }),
    31      cdeps = [":libv8"],
    32      cgo = True,
    33      importpath = "github.com/tencent/goom/test",
    34      visibility = ["//visibility:public"],
    35      deps = ["//internal/hack:go_default_library"],
    36  )