[email protected] | 8b7e37e4 | 2014-07-22 00:36:20 | [diff] [blame] | 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 | component("user_manager") { |
| 6 | sources = [ |
[email protected] | 8b7e37e4 | 2014-07-22 00:36:20 | [diff] [blame] | 7 | "user_info.cc", |
| 8 | "user_info.h", |
| 9 | "user_info_impl.cc", |
| 10 | "user_info_impl.h", |
| 11 | "user_manager_export.h", |
alemate | bc19dbb | 2016-11-01 19:49:07 | [diff] [blame] | 12 | "user_names.cc", |
| 13 | "user_names.h", |
xiyuan | 468b45f | 2016-12-09 01:22:41 | [diff] [blame] | 14 | "user_type.h", |
[email protected] | 8b7e37e4 | 2014-07-22 00:36:20 | [diff] [blame] | 15 | ] |
| 16 | |
mukai | 77c1403 | 2014-10-13 18:24:44 | [diff] [blame] | 17 | deps = [ |
| 18 | "//base", |
Alexander Alekseev | 3f09a8f | 2018-05-03 02:52:10 | [diff] [blame^] | 19 | "//components/account_id", |
alemate | bc19dbb | 2016-11-01 19:49:07 | [diff] [blame] | 20 | "//google_apis", |
mukai | 77c1403 | 2014-10-13 18:24:44 | [diff] [blame] | 21 | "//skia", |
| 22 | "//ui/gfx", |
mukai | 77c1403 | 2014-10-13 18:24:44 | [diff] [blame] | 23 | ] |
| 24 | |
scottmg | ac0ea031 | 2014-12-03 19:21:05 | [diff] [blame] | 25 | defines = [ "USER_MANAGER_IMPLEMENTATION" ] |
mukai | 77c1403 | 2014-10-13 18:24:44 | [diff] [blame] | 26 | |
[email protected] | 8b7e37e4 | 2014-07-22 00:36:20 | [diff] [blame] | 27 | if (is_chromeos) { |
| 28 | sources += [ |
alemate | 8730a2f | 2015-12-19 07:13:09 | [diff] [blame] | 29 | "known_user.cc", |
| 30 | "known_user.h", |
mukai | 9fa7761 | 2014-10-10 00:23:26 | [diff] [blame] | 31 | "remove_user_delegate.h", |
Xiyuan Xia | dfe3a9f | 2017-11-13 21:46:26 | [diff] [blame] | 32 | "scoped_user_manager.cc", |
| 33 | "scoped_user_manager.h", |
satorux | ea51ccc | 2015-02-16 10:14:24 | [diff] [blame] | 34 | "user.cc", |
| 35 | "user.h", |
[email protected] | 8b7e37e4 | 2014-07-22 00:36:20 | [diff] [blame] | 36 | "user_image/user_image.cc", |
| 37 | "user_image/user_image.h", |
mukai | 9fa7761 | 2014-10-10 00:23:26 | [diff] [blame] | 38 | "user_manager.cc", |
| 39 | "user_manager.h", |
| 40 | "user_manager_base.cc", |
| 41 | "user_manager_base.h", |
[email protected] | 8b7e37e4 | 2014-07-22 00:36:20 | [diff] [blame] | 42 | ] |
mukai | 6bd0638 | 2014-10-16 18:29:38 | [diff] [blame] | 43 | deps += [ |
brettw | 9f7802a2 | 2016-01-30 06:40:17 | [diff] [blame] | 44 | "//components/prefs", |
mukai | 6bd0638 | 2014-10-16 18:29:38 | [diff] [blame] | 45 | "//url", |
| 46 | ] |
[email protected] | 8b7e37e4 | 2014-07-22 00:36:20 | [diff] [blame] | 47 | } |
[email protected] | 8b7e37e4 | 2014-07-22 00:36:20 | [diff] [blame] | 48 | } |
merkulova | 793f302 | 2015-02-04 10:18:30 | [diff] [blame] | 49 | |
peletskyi | c8452f2 | 2016-02-23 15:26:12 | [diff] [blame] | 50 | if (is_chromeos) { |
| 51 | source_set("test_support") { |
| 52 | testonly = true |
merkulova | 793f302 | 2015-02-04 10:18:30 | [diff] [blame] | 53 | sources = [ |
| 54 | "fake_user_manager.cc", |
| 55 | "fake_user_manager.h", |
| 56 | ] |
| 57 | deps = [ |
| 58 | ":user_manager", |
| 59 | "//base", |
alemate | 33433e2 | 2016-01-13 14:50:30 | [diff] [blame] | 60 | "//chromeos:chromeos", |
Alexander Alekseev | 3f09a8f | 2018-05-03 02:52:10 | [diff] [blame^] | 61 | "//components/account_id", |
merkulova | 793f302 | 2015-02-04 10:18:30 | [diff] [blame] | 62 | "//skia", |
dpranke | b218d91 | 2015-09-18 19:07:00 | [diff] [blame] | 63 | "//ui/base", |
merkulova | 793f302 | 2015-02-04 10:18:30 | [diff] [blame] | 64 | ] |
| 65 | } |
peletskyi | c8452f2 | 2016-02-23 15:26:12 | [diff] [blame] | 66 | |
| 67 | source_set("unit_tests") { |
| 68 | testonly = true |
| 69 | sources = [ |
| 70 | "user_unittest.cc", |
| 71 | ] |
| 72 | deps = [ |
| 73 | ":user_manager", |
Alexander Alekseev | 3f09a8f | 2018-05-03 02:52:10 | [diff] [blame^] | 74 | "//components/account_id", |
peletskyi | c8452f2 | 2016-02-23 15:26:12 | [diff] [blame] | 75 | "//skia", |
| 76 | "//testing/gtest", |
| 77 | "//ui/gfx", |
| 78 | ] |
| 79 | } |
merkulova | 793f302 | 2015-02-04 10:18:30 | [diff] [blame] | 80 | } |