chromium/services/cert_verifier/public/mojom/BUILD.gn

# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//crypto/features.gni")
import("//mojo/public/tools/bindings/mojom.gni")
import("//net/features.gni")
import("//services/network/public/cpp/features.gni")

mojom("mojom") {
  sources = [ "cert_verifier_service_factory.mojom" ]

  deps = [ "//mojo/public/mojom/base" ]

  public_deps = [
    "//mojo/public/mojom/base:protobuf_support",
    "//services/network/public/mojom",
  ]

  enabled_features = []

  if (chrome_root_store_optional) {
    enabled_features += [ "is_chrome_root_store_optional" ]
  }
  if (chrome_root_store_supported) {
    enabled_features += [ "is_chrome_root_store_supported" ]
  }

  if (use_nss_certs) {
    enabled_features += [ "use_nss_certs" ]
  }

  if (is_ct_supported) {
    enabled_features += [ "is_ct_supported" ]
  }
}