diff options
Diffstat (limited to 'tests/core/cgo/objc/BUILD.bazel')
-rw-r--r-- | tests/core/cgo/objc/BUILD.bazel | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/core/cgo/objc/BUILD.bazel b/tests/core/cgo/objc/BUILD.bazel new file mode 100644 index 00000000..030408f1 --- /dev/null +++ b/tests/core/cgo/objc/BUILD.bazel @@ -0,0 +1,32 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") + +go_test( + name = "objc_test", + srcs = ["objc_darwin_test.go"], + embed = select({ + "@io_bazel_rules_go//go/platform:darwin": [":objc_lib"], + "//conditions:default": [], + }), +) + +go_library( + name = "objc_lib", + srcs = [ + "add_darwin.go", + "add_darwin.h", + "add_darwin.m", + "sub_darwin.go", + ], + cdeps = [":sub"], + cgo = True, + copts = ["-fmodules"], + importpath = "github.com/bazelbuild/rules_go/tests/core/cgo/objc", + tags = ["manual"], +) + +objc_library( + name = "sub", + srcs = ["sub.m"], + enable_modules = True, + tags = ["manual"], +) |