summaryrefslogtreecommitdiff
path: root/chromium/components/rlz/BUILD.gn
blob: c5d7a9dad9396afd35194a11d26ab542a9b41808 (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
# 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.

static_library("rlz") {
  sources = [
    "rlz_tracker.cc",
    "rlz_tracker.h",
    "rlz_tracker_chromeos.cc",
    "rlz_tracker_delegate.h",
    "rlz_tracker_ios.cc",
    "rlz_tracker_mac.cc",
    "rlz_tracker_win.cc",
  ]

  deps = [
    "//base",
    "//components/google/core/browser",
    "//net",
    "//rlz:rlz_lib",
    "//services/network/public/cpp:cpp",
  ]

  if (is_ios) {
    deps += [ "//ui/base" ]
  }
}

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

  deps = [
    ":rlz",
    "//net:test_support",
    "//rlz:test_support",
    "//services/network/public/cpp:cpp",
    "//ui/base",
  ]

  if (is_chromeos) {
    deps += [ "//chromeos/system" ]
  }
}