1# Copyright 2020 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5source_set("internal") {
6  sources = [ "identifiability_internal_templates.h" ]
7
8  visibility = [
9    ":*",
10    "//third_party/blink/common/privacy_budget:*",
11  ]
12}
13
14source_set("privacy_budget") {
15  sources = [
16    "identifiability_metric_builder.h",
17    "identifiability_metrics.h",
18    "identifiability_sample_collector.h",
19    "identifiability_study_settings.h",
20    "identifiability_study_settings_provider.h",
21    "identifiable_sample.h",
22    "identifiable_surface.h",
23    "identifiable_token.h",
24    "identifiable_token_builder.h",
25  ]
26
27  deps = [
28    ":internal",
29    "//base",
30    "//services/metrics/public/cpp:metrics_cpp",
31    "//services/network/public/cpp:cpp",
32    "//third_party/blink/public/common:common_export",
33    "//third_party/blink/public/mojom:web_feature_mojo_bindings",
34  ]
35}
36
37source_set("test_support") {
38  testonly = true
39
40  sources = [
41    "scoped_identifiability_test_sample_collector.h",
42    "scoped_switch_sample_collector.h",
43  ]
44
45  public_deps = [ "//third_party/blink/public/common:headers" ]
46
47  deps = [
48    ":internal",
49    "//third_party/blink/public/common:common_export",
50  ]
51}
52
53# Adds //tools/privacy_budget targets to the top level "gn_all" group. See the
54# top level //BUILD.gn file for details on how that target is used. Builders
55# that build the "all" target also build the targets in //tools/privacy_budget
56# as a result of this dependency.
57group("gn_all") {
58  testonly = true
59  deps = [ "//tools/privacy_budget:privacy_budget_tools" ]
60}
61