Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Unified Diff: tools/traffic_annotation/auditor/BUILD.gn

Issue 2448133006: Tool added to extract network traffic annotations. (Closed)
Patch Set: Comments addressed. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/traffic_annotation/auditor/BUILD.gn
diff --git a/tools/traffic_annotation/auditor/BUILD.gn b/tools/traffic_annotation/auditor/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..bd3606fb2f83589be64b522156a01418415316c7
--- /dev/null
+++ b/tools/traffic_annotation/auditor/BUILD.gn
@@ -0,0 +1,49 @@
+# Copyright 2016 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")
+
+# Works only on desktop platforms.
+assert(is_win || is_linux || is_mac)
+
+proto_library("chrome_settings_full_runtime") {
+ proto_out_dir = "/tools/traffic_annotation"
+
+ cc_include = "components/policy/proto/policy_proto_export.h"
+
+ sources = [
+ "$root_gen_dir" +
+ "/components/policy/proto/cloud_policy_full_runtime.proto",
+ "$root_gen_dir" +
+ "/components/policy/proto/chrome_settings_full_runtime.proto",
+ ]
+
+ use_protobuf_full = true
+
+ deps = [
+ "//components/policy:full_runtime_code_generate",
+ "//third_party/protobuf:protobuf_full",
+ ]
+}
+
+proto_library("traffic_annotation") {
+ sources = [
+ "../traffic_annotation.proto",
+ ]
+
+ import_dirs = [ "$root_gen_dir" + "/components/policy/proto" ]
+
+ deps = [
+ ":chrome_settings_full_runtime",
+ ]
+
+ use_protobuf_full = true
+}
+
+group("traffic_annotation_auditor") {
+ deps = [
+ ":traffic_annotation",
+ "//third_party/protobuf:protobuf_full",
+ ]
+}
« no previous file with comments | « tools/clang/traffic_annotation_extractor/traffic_annotation_extractor.cpp ('k') | tools/traffic_annotation/auditor/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698