Fix crash on app list start page contents not existing.
[chromium-blink-merge.git] / components / user_manager / BUILD.gn
blob59dbd92f0ba1379dee1cb4a0da92a6e67e1ed382
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 component("user_manager") {
6   sources = [
7     "empty_user_info.cc",
8     "empty_user_info.h",
9     "user_info.cc",
10     "user_info.h",
11     "user_info_impl.cc",
12     "user_info_impl.h",
13     "user_manager_export.h",
14   ]
16   deps = [
17     "//base",
18     "//skia",
19     "//ui/gfx",
20   ]
22   defines = [ "USER_MANAGER_IMPLEMENTATION" ]
24   if (is_chromeos) {
25     sources += [
26       "remove_user_delegate.h",
27       "user.cc",
28       "user.h",
29       "user_image/default_user_images.cc",
30       "user_image/default_user_images.h",
31       "user_image/user_image.cc",
32       "user_image/user_image.h",
33       "user_manager.cc",
34       "user_manager.h",
35       "user_manager_base.cc",
36       "user_manager_base.h",
37       "user_type.h",
38     ]
39     deps += [
40       "//chromeos:chromeos",
41       "//components/session_manager/core",
42       "//google_apis",
43       "//ui/base",
44       "//ui/chromeos/resources",
45       "//ui/chromeos/strings",
46       "//url",
47     ]
48   }
51 source_set("test_support") {
52   testonly = true
53   if (is_chromeos) {
54     sources = [
55       "fake_user_manager.cc",
56       "fake_user_manager.h",
57     ]
58     deps = [
59       ":user_manager",
60       "//base",
61       "//skia",
62     ]
63   }