2021-08-09 15:26:06 +00:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
load("zapp.bzl", "zapp_binary")
|
|
|
|
|
|
|
|
# Zapp plugins used as a runtime library by rules_zapp
|
|
|
|
py_library(
|
|
|
|
name = "zapp_support",
|
|
|
|
srcs = glob(["support/**/*.py"]),
|
|
|
|
imports = [
|
2021-08-29 21:07:56 +00:00
|
|
|
"..",
|
2021-08-09 15:26:06 +00:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2021-08-29 21:07:56 +00:00
|
|
|
# Bootstrapping Zapp using py_binary
|
|
|
|
py_binary(
|
|
|
|
name = "zappc",
|
|
|
|
main = "compiler/__main__.py",
|
|
|
|
srcs = glob(["support/**/*.py"]) + [
|
|
|
|
"compiler/__main__.py"
|
|
|
|
],
|
|
|
|
imports = [
|
|
|
|
"..",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2021-08-09 15:26:06 +00:00
|
|
|
# For testing of zappc
|
|
|
|
zapp_binary(
|
2021-08-29 21:07:56 +00:00
|
|
|
name = "zappzappc",
|
|
|
|
main = "compiler/__main__.py",
|
|
|
|
srcs = glob(["support/**/*.py"]) + [
|
|
|
|
"compiler/__main__.py"
|
|
|
|
],
|
|
|
|
imports = [
|
|
|
|
"..",
|
|
|
|
],
|
2021-08-09 15:26:06 +00:00
|
|
|
)
|