summaryrefslogtreecommitdiff
path: root/chromium/components/variations/net/BUILD.gn
blob: a63c13047745beb0dfa37b878d40893e57145bd0 (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
67
68
69
70
71
72
73
74
# 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.

import("//build/config/features.gni")

static_library("net") {
  sources = [
    "variations_command_line.cc",
    "variations_command_line.h",
    "variations_http_headers.cc",
    "variations_http_headers.h",
  ]

  public_deps = [
    ":omnibox_http_headers",
    "//components/variations",
    "//net",
    "//services/network/public/cpp:cpp",
    "//services/network/public/cpp:cpp_base",
    "//url",
  ]

  deps = [
    "//base",
    "//components/google/core/common",
    "//components/metrics",
    "//components/variations/field_trial_config",
    "//components/variations/proto",
  ]

  # third_party/blink/public/common does not build on iOS
  if (!is_ios) {
    sources += [
      "variations_url_loader_throttle.cc",
      "variations_url_loader_throttle.h",
    ]
    deps += [ "//third_party/blink/public/common" ]
  }
  if (use_qt) {
    deps -= [
      "//components/variations/field_trial_config",
    ]
  }
}

component("omnibox_http_headers") {
  output_name = "omnibox_http_headers"

  defines = [ "IS_OMNIBOX_HTTP_HEADERS_IMPL" ]

  sources = [
    "omnibox_http_headers.cc",
    "omnibox_http_headers.h",
  ]

  deps = [
    "//base",
    "//components/google/core/common",
    "//net",
    "//services/network/public/cpp:cpp",
    "//services/network/public/cpp:cpp_base",
    "//url",
  ]

  # third_party/blink/public/common does not build on iOS
  if (!is_ios) {
    sources += [
      "omnibox_url_loader_throttle.cc",
      "omnibox_url_loader_throttle.h",
    ]
    deps += [ "//third_party/blink/public/common" ]
  }
}