summaryrefslogtreecommitdiff
path: root/chromium/components/variations/proto/BUILD.gn
blob: c0ad4c24dcaf933c283ce46861350401c126887b (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
# 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("//third_party/protobuf/proto_library.gni")

if (is_android) {
  import("//build/config/android/rules.gni")

  proto_java_library("proto_java") {
    proto_path = "."
    sources = [
      "client_variations.proto",
      "study.proto",
      "variations_seed.proto",
    ]
  }
}

proto_library("proto") {
  sources = [
    "client_variations.proto",
    "study.proto",
    "variations_seed.proto",
  ]

  # The generated JavaScript bindings are used to build a small, self-contained
  # parser for ClientVariations in Dev Tools. This parser is used to decode the
  # X-Client-Data header.
  generate_javascript = true
}

# Some of the Windows builders do not support Java, which is a required
# dependency for this build target. This target is only built manually, so it's
# fine to limit it to Linux.
if (is_linux || is_mac) {
  group("devtools") {
    deps = [ "devtools" ]
  }
}