Index: chrome/chrome_resources.gyp |
diff --git a/chrome/chrome_resources.gyp b/chrome/chrome_resources.gyp |
index dc41d4188ece31b00ab279ddb0a0257cd179feb7..e133747d2259eff11eebb5e1a8fee48d1e5339d1 100644 |
--- a/chrome/chrome_resources.gyp |
+++ b/chrome/chrome_resources.gyp |
@@ -222,6 +222,9 @@ |
} |
], |
}], |
+ ['OS != "android" and OS != "ios"', { |
+ 'dependencies': [ 'make_file_types_protobuf' ] |
+ }], |
], |
'includes': [ '../build/grit_target.gypi' ], |
}, |
@@ -293,6 +296,41 @@ |
}, |
], |
}, |
+ |
+ { |
+ # GN version: //chrome/browser/resources/safe_browsing:make_file_types_protobuf |
+ # Convert the ascii proto file to a binary resource. |
+ 'target_name': 'make_file_types_protobuf', |
+ 'type': 'none', |
+ 'hard_dependency': 1, |
+ 'dependencies': [ |
+ 'chrome.gyp:safe_browsing_proto', |
+ ], |
+ 'actions': [ |
+ { |
+ 'action_name': 'generate_file_types_protobuf', |
+ 'variables' : { |
+ 'script_file':'browser/resources/safe_browsing/gen_file_type_proto.py', |
+ 'asciipb_file' : 'browser/resources/safe_browsing/download_file_types.asciipb', |
+ 'output_file' : '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/resources/safe_browsing/download_file_types.pb', |
+ }, |
+ 'inputs': [ |
+ '<(script_file)', |
+ '<(asciipb_file)', |
+ ], |
+ 'outputs': [ |
+ '<(output_file)', |
+ ], |
+ 'action': [ |
+ 'python', '<(script_file)', |
+ '-i', '<(asciipb_file)', |
+ '-o', '<(output_file)', |
+ '-p', '<(PRODUCT_DIR)/pyproto/chrome/common/safe_browsing', |
+ ], |
+ 'message': 'Generating download_file_types.pb.', |
+ } |
+ ], |
+ }, |
{ |
# GN version: //chrome/browser/metrics/variations:chrome_ui_string_overrider_factory_gen_sources |
'target_name': 'make_chrome_ui_string_overrider_factory', |