blob: 7c3ab1c58ce38420952078177b1ad068ade6cdcd [file] [log] [blame]
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
source_set("cpp") {
sources = [
"access_token_fetcher.cc",
"access_token_fetcher.h",
"access_token_info.cc",
"access_token_info.h",
"identity_manager.cc",
"identity_manager.h",
"primary_account_access_token_fetcher.cc",
"primary_account_access_token_fetcher.h",
"primary_account_mutator.h",
]
if (!is_chromeos) {
sources += [
"primary_account_mutator_impl.cc",
"primary_account_mutator_impl.h",
]
}
configs += [ "//build/config/compiler:wexit_time_destructors" ]
public_deps = [
"//components/signin/core/browser:account_info",
"//components/signin/core/browser:internals",
"//components/signin/core/browser:signin_metrics",
"//services/identity/public/cpp:cpp_types",
"//services/network/public/cpp",
]
}
# A source_set for types which the public interfaces depend on for typemapping.
# This cannot itself depend on the main public interfaces target.
source_set("cpp_types") {
output_name = "identity_cpp_types"
sources = [
"account_state.cc",
"account_state.h",
"scope_set.h",
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
}
source_set("test_support") {
testonly = true
sources = [
"identity_test_environment.cc",
"identity_test_environment.h",
"identity_test_utils.cc",
"identity_test_utils.h",
]
public_deps = [
":cpp",
]
deps = [
"//components/signin/core/browser:test_support",
"//components/sync_preferences:test_support",
]
}