OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//third_party/protobuf/proto_library.gni") |
| 6 |
| 7 # Works only on desktop platforms. |
| 8 assert(is_win || is_linux || is_mac) |
| 9 |
| 10 proto_library("cloud_policy_full_runtime") { |
| 11 proto_out_dir = "/tools/traffic_annotation" |
| 12 |
| 13 # cc_generator_options = "dllexport_decl=POLICY_PROTO_EXPORT:" |
| 14 cc_include = "components/policy/proto/policy_proto_export.h" |
| 15 |
| 16 sources = [ |
| 17 "$root_gen_dir" + |
| 18 "/components/policy/proto/cloud_policy_full_runtime.proto", |
| 19 ] |
| 20 |
| 21 deps = [ |
| 22 "//components/policy:cloud_policy_full_runtime_code_generate", |
| 23 "//third_party/protobuf:protobuf_full", |
| 24 ] |
| 25 } |
| 26 |
| 27 proto_library("traffic_annotation") { |
| 28 sources = [ |
| 29 "../traffic_annotation.proto", |
| 30 ] |
| 31 |
| 32 import_dirs = [ "$root_gen_dir" + "/components/policy/proto" ] |
| 33 |
| 34 deps = [ |
| 35 ":cloud_policy_full_runtime", |
| 36 ] |
| 37 |
| 38 use_protobuf_full = true |
| 39 } |
| 40 |
| 41 executable("traffic_annotation_auditor") { |
| 42 sources = [ |
| 43 "traffic_annotation_auditor.cc", |
| 44 ] |
| 45 |
| 46 deps = [ |
| 47 ":traffic_annotation", |
| 48 "//base", |
| 49 "//net:traffic_annotation", |
| 50 "//third_party/protobuf:protobuf_full", |
| 51 ] |
| 52 } |
OLD | NEW |