Files
2026-03-09 22:30:41 +00:00

45 lines
737 B
Python

load("//bazel:api.bzl", "mojo_binary", "mojo_library", "mojo_test")
package(default_visibility = ["//visibility:private"])
mojo_library(
name = "my_math",
srcs = glob(["src/my_math/*.mojo"]),
deps = [
"@mojo//:std",
],
)
mojo_binary(
name = "example",
srcs = ["src/example.mojo"],
deps = [
":my_math",
"@mojo//:std",
],
)
mojo_test(
name = "test_inc",
size = "small",
srcs = [
"test/my_math/test_inc.mojo",
],
deps = [
":my_math",
"@mojo//:std",
],
)
mojo_test(
name = "test_dec",
size = "small",
srcs = [
"test/my_math/test_dec.mojo",
],
deps = [
":my_math",
"@mojo//:std",
],
)