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