summaryrefslogtreecommitdiffstats
path: root/components/user_manager/BUILD.gn
blob: 37f28935e11761c943e2462a6aabaa053b30c607 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

component("user_manager") {
  sources = [
    "empty_user_info.cc",
    "empty_user_info.h",
    "user_id.h",
    "user_info.cc",
    "user_info.h",
    "user_info_impl.cc",
    "user_info_impl.h",
    "user_manager_export.h",
  ]

  deps = [
    "//base",
    "//skia",
    "//ui/gfx",
  ]

  defines = [ "USER_MANAGER_IMPLEMENTATION" ]

  if (is_chromeos) {
    sources += [
      "remove_user_delegate.h",
      "user.cc",
      "user.h",
      "user_image/default_user_images.cc",
      "user_image/default_user_images.h",
      "user_image/user_image.cc",
      "user_image/user_image.h",
      "user_manager.cc",
      "user_manager.h",
      "user_manager_base.cc",
      "user_manager_base.h",
      "user_type.h",
    ]
    deps += [
      "//base:prefs",
      "//chromeos:chromeos",
      "//components/session_manager/core",
      "//google_apis",
      "//ui/base",
      "//ui/chromeos/resources",
      "//ui/chromeos/strings",
      "//url",
    ]
  }
}

source_set("test_support") {
  testonly = true
  if (is_chromeos) {
    sources = [
      "fake_user_manager.cc",
      "fake_user_manager.h",
    ]
    deps = [
      ":user_manager",
      "//base",
      "//skia",
    ]
  }
}