-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathBUILD.pdl
39 lines (35 loc) · 1.15 KB
/
BUILD.pdl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 2023 Google Inc. All Rights Reserved.
load("@rules_python//python:defs.bzl", "py_binary")
load("@rules_cc//cc:defs.bzl", "cc_library")
load("@rules_rust//rust:defs.bzl", "rust_binary")
py_binary(
name = "generate_cxx_backend",
main = "pdl-compiler/scripts/generate_cxx_backend.py",
srcs = [
"pdl-compiler/scripts/generate_cxx_backend.py",
"pdl-compiler/scripts/pdl/ast.py",
"pdl-compiler/scripts/pdl/core.py",
"pdl-compiler/scripts/pdl/utils.py",
],
legacy_create_init = 0,
imports = ["pdl-compiler/scripts"],
visibility = ["//visibility:public"],
)
py_binary(
name = "generate_python_backend",
srcs = [
"pdl-compiler/scripts/generate_python_backend.py",
"pdl-compiler/scripts/pdl/ast.py",
"pdl-compiler/scripts/pdl/core.py",
"pdl-compiler/scripts/pdl/utils.py",
],
legacy_create_init = 0,
imports = ["pdl-compiler/scripts"],
visibility = ["//visibility:public"],
)
cc_library(
name = "packet_runtime",
srcs = ["pdl-compiler/scripts/packet_runtime.h"],
includes = ["pdl-compiler/scripts"],
visibility = ["//visibility:public"],
)