forked from bazelbuild/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD
More file actions
33 lines (28 loc) · 653 Bytes
/
BUILD
File metadata and controls
33 lines (28 loc) · 653 Bytes
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
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("@rules_python//python:defs.bzl", "py_binary", "py_library")
load("//generating_code/gen:enum_maker.bzl", "enum_maker")
enum_maker(
name = "gen_enums",
out_h = "values.h",
out_py = "values.py",
values_file = "values.txt",
)
py_library(
name = "p_values",
srcs = [":values.py"],
)
py_binary(
name = "p_maybe",
srcs = ["p_maybe.py"],
deps = [":p_values"],
)
cc_library(
name = "c_values",
hdrs = [":values.h"],
)
cc_binary(
name = "c_maybe",
srcs = ["c_maybe.cc"],
deps = [":c_values"],
)