forked from facebookresearch/CompilerGym
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
49 lines (45 loc) · 1.27 KB
/
BUILD.bazel
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
40
41
42
43
44
45
46
47
48
49
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
load("@rules_python//python:defs.bzl", "py_binary", "py_library")
exports_files([
"README.md",
"VERSION",
])
# This top-level target describes the entire set of targets that will be
# assembled into the CompilerGym pip package.
py_library(
name = "CompilerGym",
data = [
"//compiler_gym/third_party/cbench:benchmarks_list",
"//compiler_gym/third_party/cbench:crc32",
],
deps = [
"//compiler_gym",
"//compiler_gym/bin",
"//compiler_gym/datasets",
"//compiler_gym/envs",
"//compiler_gym/service",
"//compiler_gym/service/runtime",
"//compiler_gym/spaces",
"//compiler_gym/util",
"//compiler_gym/util/flags",
"//compiler_gym/views",
],
)
# Create a fake binary target that depends on CompilerGym so that bazel creates
# the runfiles directory containing the dependent python code.
py_binary(
name = "package",
srcs = ["empty.py"],
main = "empty.py",
deps = [
":CompilerGym",
],
)
genrule(
name = "make_empty_python_file",
outs = ["empty.py"],
cmd = "touch $@",
)