# Copyright 2018 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromeos/ui_mode.gni")
import("//third_party/protobuf/proto_library.gni")
assert(is_chromeos_ash, "Non-ChromeOS builds cannot depend on //ash")
proto_library("proto") {
sources = [
"cryptauth_api.proto",
"cryptauth_better_together_device_metadata.proto",
"cryptauth_better_together_feature_metadata.proto",
"cryptauth_client_app_metadata.proto",
"cryptauth_common.proto",
"cryptauth_devicesync.proto",
"cryptauth_directive.proto",
"cryptauth_enrollment.proto",
]
}
static_library("util") {
sources = [
"cryptauth_logging.cc",
"cryptauth_logging.h",
"cryptauth_proto_to_query_parameters_util.cc",
"cryptauth_proto_to_query_parameters_util.h",
"device_classifier_util.cc",
"device_classifier_util.h",
"enum_util.cc",
"enum_util.h",
]
public_deps = [
":proto",
"//third_party/ukey2:proto",
]
deps = [
"//base",
"//base:i18n",
"//components/version_info",
]
}
static_library("test_support") {
testonly = true
sources = [
"cryptauth_v2_test_util.cc",
"cryptauth_v2_test_util.h",
]
public_deps = [ ":proto" ]
deps = [
"//base",
"//chromeos/ash/services/device_sync/public/cpp:cpp",
]
}