mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 14:25:02 +00:00
45 lines
737 B
Python
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",
|
|
],
|
|
)
|