1*a26f1301SXin Li# Copyright 2023 Google LLC. 2*a26f1301SXin Li# 3*a26f1301SXin Li# Licensed under the Apache License, Version 2.0 (the "License"); 4*a26f1301SXin Li# you may not use this file except in compliance with the License. 5*a26f1301SXin Li# You may obtain a copy of the License at 6*a26f1301SXin Li# 7*a26f1301SXin Li# https://www.apache.org/licenses/LICENSE-2.0 8*a26f1301SXin Li# 9*a26f1301SXin Li# Unless required by applicable law or agreed to in writing, software 10*a26f1301SXin Li# distributed under the License is distributed on an "AS IS" BASIS, 11*a26f1301SXin Li# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*a26f1301SXin Li# See the License for the specific language governing permissions and 13*a26f1301SXin Li# limitations under the License. 14*a26f1301SXin Li 15*a26f1301SXin Liload("@rules_cc//cc:defs.bzl", "cc_library") 16*a26f1301SXin Liload("@rules_proto//proto:defs.bzl", "proto_library") 17*a26f1301SXin Li 18*a26f1301SXin Lipackage(default_visibility = ["//visibility:public"]) 19*a26f1301SXin Li 20*a26f1301SXin Liproto_library( 21*a26f1301SXin Li name = "transcript_proto", 22*a26f1301SXin Li srcs = ["transcript.proto"], 23*a26f1301SXin Li deps = ["//act:act_proto"], 24*a26f1301SXin Li) 25*a26f1301SXin Li 26*a26f1301SXin Licc_proto_library( 27*a26f1301SXin Li name = "transcript_cc_proto", 28*a26f1301SXin Li deps = [":transcript_proto"], 29*a26f1301SXin Li) 30*a26f1301SXin Li 31*a26f1301SXin Licc_binary( 32*a26f1301SXin Li name = "generate_transcript", 33*a26f1301SXin Li srcs = ["generate_transcript.cc"], 34*a26f1301SXin Li deps = [ 35*a26f1301SXin Li ":transcript_cc_proto", 36*a26f1301SXin Li "//act", 37*a26f1301SXin Li "//act:act_cc_proto", 38*a26f1301SXin Li "//act/act_v0", 39*a26f1301SXin Li "//act/act_v0:act_v0_cc_proto", 40*a26f1301SXin Li "//act/act_v0:parameters", 41*a26f1301SXin Li "@com_google_absl//absl/flags:flag", 42*a26f1301SXin Li "@com_google_absl//absl/flags:parse", 43*a26f1301SXin Li "@com_google_absl//absl/log", 44*a26f1301SXin Li "@com_google_absl//absl/log:check", 45*a26f1301SXin Li "@com_google_absl//absl/strings", 46*a26f1301SXin Li "@private_join_and_compute//private_join_and_compute/util:proto_util", 47*a26f1301SXin Li "@private_join_and_compute//private_join_and_compute/util:status_includes", 48*a26f1301SXin Li ], 49*a26f1301SXin Li) 50*a26f1301SXin Li 51*a26f1301SXin Lifilegroup( 52*a26f1301SXin Li name = "transcripts", 53*a26f1301SXin Li testonly = 1, 54*a26f1301SXin Li srcs = glob(["transcripts/*"]), 55*a26f1301SXin Li) 56*a26f1301SXin Li 57*a26f1301SXin Licc_test( 58*a26f1301SXin Li name = "golden_transcript_test", 59*a26f1301SXin Li srcs = ["golden_transcript_test.cc"], 60*a26f1301SXin Li data = [ 61*a26f1301SXin Li ":transcripts", 62*a26f1301SXin Li ], 63*a26f1301SXin Li deps = [ 64*a26f1301SXin Li ":transcript_cc_proto", 65*a26f1301SXin Li "//act", 66*a26f1301SXin Li "//act:act_cc_proto", 67*a26f1301SXin Li "//act/act_v0", 68*a26f1301SXin Li "//act/act_v0:act_v0_cc_proto", 69*a26f1301SXin Li "//act/act_v0:parameters", 70*a26f1301SXin Li "@com_github_google_googletest//:gtest_main", 71*a26f1301SXin Li "@private_join_and_compute//private_join_and_compute/util:proto_util", 72*a26f1301SXin Li "@private_join_and_compute//private_join_and_compute/util:status_includes", 73*a26f1301SXin Li "@private_join_and_compute//private_join_and_compute/util:status_testing_includes", 74*a26f1301SXin Li ], 75*a26f1301SXin Li) 76