Chromium Code Reviews| Index: chrome/chrome_resources.gyp |
| diff --git a/chrome/chrome_resources.gyp b/chrome/chrome_resources.gyp |
| index dc41d4188ece31b00ab279ddb0a0257cd179feb7..32b1bc6e703748369d1332c6da949232da92ef48 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' ] |
|
Lei Zhang
2016/04/04 21:24:48
2 space indent, not 1.
Nathan Parker
2016/04/04 22:00:53
Done.
|
| + }], |
| ], |
| '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', |
|
Lei Zhang
2016/04/04 21:24:48
2 space indent, not 4.
Nathan Parker
2016/04/04 22:00:53
Done. Vim wants to do 4.
|
| + ], |
| + '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', |