GN + Android: extract android_standalone_library rule.
[chromium-blink-merge.git] / components / signin / core / browser / BUILD.gn
blobd625ff175980a79fd32d72d56ceaa3ec9e7036a4
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.
5 static_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     "refresh_token_annotation_request.cc",
20     "refresh_token_annotation_request.h",
21     "signin_account_id_helper.cc",
22     "signin_account_id_helper.h",
23     "signin_client.h",
24     "signin_error_controller.cc",
25     "signin_error_controller.h",
26     "signin_internals_util.cc",
27     "signin_internals_util.h",
28     "signin_manager_base.cc",
29     "signin_manager_base.h",
30     "signin_manager.cc",
31     "signin_manager.h",
32     "signin_manager_cookie_helper.cc",
33     "signin_manager_cookie_helper.h",
34     "signin_metrics.cc",
35     "signin_metrics.h",
36     "signin_oauth_helper.cc",
37     "signin_oauth_helper.h",
38     "signin_tracker.cc",
39     "signin_tracker.h",
40     "webdata/token_service_table.cc",
41     "webdata/token_service_table.h",
42     "webdata/token_web_data.cc",
43     "webdata/token_web_data.h",
44   ]
46   deps = [
47     "//base",
48     "//crypto",
49     "//google_apis",
50     "//net",
51     "//sql",
52     "//third_party/icu",
53     "//components/keyed_service/core",
54     "//components/os_crypt",
55     "//components/webdata/common",
56   ]
58   if (is_android) {
59     sources -= [
60       "mutable_profile_oauth2_token_service.cc",
61       "mutable_profile_oauth2_token_service.h",
62     ]
63   }
65   if (is_chromeos) {
66     sources -= [ "signin_manager.cc" ]
67   }
69   if (is_win) {
70     # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
71     cflags = [ "/wd4267" ]
72   }
75 static_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   ]
84   deps = [
85     ":browser",
86     "//testing/gtest",
87   ]