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 Li# Contains implementations for Anonymous Counting Tokens. 16*a26f1301SXin Li 17*a26f1301SXin Liload("@rules_cc//cc:defs.bzl", "cc_library") 18*a26f1301SXin Liload("@rules_proto//proto:defs.bzl", "proto_library") 19*a26f1301SXin Li 20*a26f1301SXin Lipackage(default_visibility = ["//visibility:public"]) 21*a26f1301SXin Li 22*a26f1301SXin Liproto_library( 23*a26f1301SXin Li name = "act_proto", 24*a26f1301SXin Li srcs = ["act.proto"], 25*a26f1301SXin Li deps = ["//act/act_v0:act_v0_proto"], 26*a26f1301SXin Li) 27*a26f1301SXin Li 28*a26f1301SXin Licc_proto_library( 29*a26f1301SXin Li name = "act_cc_proto", 30*a26f1301SXin Li deps = [":act_proto"], 31*a26f1301SXin Li) 32*a26f1301SXin Li 33*a26f1301SXin Licc_library( 34*a26f1301SXin Li name = "act", 35*a26f1301SXin Li hdrs = ["act.h"], 36*a26f1301SXin Li deps = [ 37*a26f1301SXin Li ":act_cc_proto", 38*a26f1301SXin Li "@private_join_and_compute//private_join_and_compute/util:status_includes", 39*a26f1301SXin Li ], 40*a26f1301SXin Li) 41*a26f1301SXin Li 42*a26f1301SXin Licc_library( 43*a26f1301SXin Li name = "fake_act", 44*a26f1301SXin Li srcs = ["fake_act.cc"], 45*a26f1301SXin Li hdrs = ["fake_act.h"], 46*a26f1301SXin Li deps = [ 47*a26f1301SXin Li ":act", 48*a26f1301SXin Li ":act_cc_proto", 49*a26f1301SXin Li "@private_join_and_compute//private_join_and_compute/crypto:bn_util", 50*a26f1301SXin Li "@private_join_and_compute//private_join_and_compute/util:status_includes", 51*a26f1301SXin Li ], 52*a26f1301SXin Li) 53*a26f1301SXin Li 54*a26f1301SXin Licc_test( 55*a26f1301SXin Li name = "fake_act_test", 56*a26f1301SXin Li srcs = [ 57*a26f1301SXin Li "fake_act_test.cc", 58*a26f1301SXin Li ], 59*a26f1301SXin Li deps = [ 60*a26f1301SXin Li ":fake_act", 61*a26f1301SXin Li "@com_github_google_googletest//:gtest_main", 62*a26f1301SXin Li "@private_join_and_compute//private_join_and_compute/util:status_includes", 63*a26f1301SXin Li "@private_join_and_compute//private_join_and_compute/util:status_testing_includes", 64*a26f1301SXin Li ], 65*a26f1301SXin Li) 66