summaryrefslogtreecommitdiffstats
path: root/components/flags_ui/BUILD.gn
blob: 8669902d1d6b06c12cd2b4fc01a966697da77d7c (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
# Copyright 2015 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.

source_set("flags_ui") {
  sources = [
    "feature_entry.cc",
    "feature_entry.h",
    "feature_entry_macros.h",
    "flags_state.cc",
    "flags_state.h",
    "flags_storage.h",
    "flags_ui_constants.cc",
    "flags_ui_constants.h",
    "flags_ui_pref_names.cc",
    "flags_ui_pref_names.h",
    "pref_service_flags_storage.cc",
    "pref_service_flags_storage.h",
  ]

  deps = [
    ":switches",
    "//base",
    "//base:prefs",
    "//components/pref_registry",
    "//components/strings",
    "//ui/base",
  ]
}

# This is a separate target so that the dependencies of
# //chrome/common can be kept minimal.
source_set("switches") {
  sources = [
    "flags_ui_switches.cc",
    "flags_ui_switches.h",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "flags_state_unittest.cc",
  ]

  deps = [
    ":flags_ui",
    ":switches",
    "//base",
    "//base:prefs",
    "//base:prefs_test_support",
    "//components/strings",
    "//testing/gtest",
  ]
}