1# Copyright 2014 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
5static_library("browser") {
6  sources = [
7    "about_signin_internals.cc",
8    "about_signin_internals.h",
9    "account_reconcilor.cc",
10    "account_reconcilor.h",
11    "account_service_flag_fetcher.cc",
12    "account_service_flag_fetcher.h",
13    "account_tracker_service.cc",
14    "account_tracker_service.h",
15    "mutable_profile_oauth2_token_service.cc",
16    "mutable_profile_oauth2_token_service.h",
17    "profile_oauth2_token_service.cc",
18    "profile_oauth2_token_service.h",
19    "signin_account_id_helper.cc",
20    "signin_account_id_helper.h",
21    "signin_client.h",
22    "signin_error_controller.cc",
23    "signin_error_controller.h",
24    "signin_internals_util.cc",
25    "signin_internals_util.h",
26    "signin_manager_base.cc",
27    "signin_manager_base.h",
28    "signin_manager.cc",
29    "signin_manager.h",
30    "signin_manager_cookie_helper.cc",
31    "signin_manager_cookie_helper.h",
32    "signin_metrics.cc",
33    "signin_metrics.h",
34    "signin_oauth_helper.cc",
35    "signin_oauth_helper.h",
36    "signin_tracker.cc",
37    "signin_tracker.h",
38    "webdata/token_service_table.cc",
39    "webdata/token_service_table.h",
40    "webdata/token_web_data.cc",
41    "webdata/token_web_data.h",
42  ]
43
44  deps = [
45    "//base",
46    "//crypto",
47    "//google_apis",
48    "//net",
49    "//sql",
50    "//third_party/icu",
51    "//components/keyed_service/core",
52    "//components/os_crypt",
53    "//components/webdata/common",
54  ]
55
56  if (is_android) {
57    sources -= [
58      "mutable_profile_oauth2_token_service.cc",
59      "mutable_profile_oauth2_token_service.h",
60    ]
61  }
62
63  if (is_chromeos) {
64    sources -= [
65      "signin_manager.cc",
66    ]
67  }
68
69  if (is_win) {
70    # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
71    cflags = [ "/wd4267" ]
72  }
73}
74
75static_library("test_support") {
76  testonly = true
77  sources = [
78    "fake_auth_status_provider.cc",
79    "fake_auth_status_provider.h",
80    "test_signin_client.cc",
81    "test_signin_client.h",
82  ]
83
84  deps = [
85    ":browser",
86    "//testing/gtest",
87  ]
88}
89