forked from quantumlib/Cirq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-protos
executable file
·46 lines (36 loc) · 1.61 KB
/
build-protos
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
#!/usr/bin/env bash
################################################################################
# Runs bazel build for proto files in Cirq/cirq/api/google/*
#
# Usage:
# check/bazel
################################################################################
# Get the working directory to the repo root.
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$(git rev-parse --show-toplevel)"
# V1 protos below.
bazel build //cirq/api/google/v1:operations_proto
bazel build //cirq/api/google/v1:operations_py_proto
bazel build //cirq/api/google/v1:operations_cc_proto
bazel build //cirq/api/google/v1:params_proto
bazel build //cirq/api/google/v1:params_py_proto
bazel build //cirq/api/google/v1:params_cc_proto
bazel build //cirq/api/google/v1:program_proto
bazel build //cirq/api/google/v1:program_py_proto
bazel build //cirq/api/google/v1:program_cc_proto
# V2 protos below.
bazel build //cirq/api/google/v2:device_proto
bazel build //cirq/api/google/v2:device_py_proto
bazel build //cirq/api/google/v2:device_cc_proto
bazel build //cirq/api/google/v2:metrics_proto
bazel build //cirq/api/google/v2:metrics_py_proto
bazel build //cirq/api/google/v2:metrics_cc_proto
bazel build //cirq/api/google/v2:program_proto
bazel build //cirq/api/google/v2:program_py_proto
bazel build //cirq/api/google/v2:program_cc_proto
bazel build //cirq/api/google/v2:result_proto
bazel build //cirq/api/google/v2:result_py_proto
bazel build //cirq/api/google/v2:result_cc_proto
bazel build //cirq/api/google/v2:run_context_proto
bazel build //cirq/api/google/v2:run_context_py_proto
bazel build //cirq/api/google/v2:run_context_cc_proto