From d3af35cbc64f2a2d6581faed3635c9c30f2e40f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 7 Jun 2021 22:52:29 +0300 Subject: [PATCH] gazelle works now --- test/BUILD | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test/BUILD b/test/BUILD index a98f4d4..a8372bf 100644 --- a/test/BUILD +++ b/test/BUILD @@ -1,3 +1,5 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") + cc_binary( name = "hello", srcs = ["hello.cpp"], @@ -13,3 +15,21 @@ cc_binary( ) # go build -ldflags "-linkmode external -extldflags -static" hello.go + +go_library( + name = "test_lib", + srcs = [ + "exception.cpp", + "hello.cpp", + "hello.go", + ], + cgo = True, + importpath = "github.com/motiejus/bazel-zig-cc/test", + visibility = ["//visibility:private"], +) + +go_binary( + name = "test", + embed = [":test_lib"], + visibility = ["//visibility:public"], +)