Index: chrome/browser/resources/safe_browsing/BUILD.gn |
diff --git a/chrome/browser/resources/safe_browsing/BUILD.gn b/chrome/browser/resources/safe_browsing/BUILD.gn |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a93f4e60a95bc061bb07a892209d5473abad2579 |
--- /dev/null |
+++ b/chrome/browser/resources/safe_browsing/BUILD.gn |
@@ -0,0 +1,34 @@ |
+# Generate the binary proto form of "file_types" from the ascii proto. |
Lei Zhang
2016/04/04 21:24:48
Missing copyright header.
Nathan Parker
2016/04/04 22:00:53
Done.
|
+action("make_file_types_protobuf") { |
+ script = "gen_file_type_proto.py" |
+ |
+ # The output goes in $target_gen_dir since that's where |
+ # chrome/browser/browser_resources.grd will look for it. |
+ |
+ input_filename = "download_file_types.asciipb" |
+ output_filename = "$target_gen_dir/download_file_types.pb" |
+ python_path = "$root_build_dir/pyproto/chrome/common/safe_browsing" |
+ |
+ inputs = [ |
+ script, |
+ input_filename, |
+ ] |
+ |
+ # This script requires the generated python proto code |
+ deps = [ |
+ "//chrome/common/safe_browsing:proto", |
+ ] |
+ |
+ outputs = [ |
+ output_filename, |
+ ] |
+ |
+ args = [ |
+ "-i", |
+ rebase_path(input_filename, root_build_dir), |
+ "-o", |
+ rebase_path(output_filename, root_build_dir), |
+ "-p", |
+ rebase_path(python_path, root_build_dir), |
+ ] |
+} |