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

Unified Diff: chrome/chrome_resources.gyp

Issue 1929693003: Populate download_file_types proto and filter it for each platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@file_type_polices2
Patch Set: reorder ascipb per asanka's comments Created 4 years, 7 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: chrome/chrome_resources.gyp
diff --git a/chrome/chrome_resources.gyp b/chrome/chrome_resources.gyp
index f3ecee9b59ffb6c9a023f54f30195bdb26cfae8d..00c961cd581a8860c352634e73d10aa34b1a3629 100644
--- a/chrome/chrome_resources.gyp
+++ b/chrome/chrome_resources.gyp
@@ -314,6 +314,22 @@
'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',
+ 'conditions': [
+ ['OS=="android"', {
+ 'platform': 'android'
+ }, 'chromeos==1', {
+ 'platform': 'chromeos'
+ }, 'OS=="linux"', {
+ 'platform': 'linux'
+ }, 'OS=="mac"', {
+ 'platform': 'mac'
+ }, 'OS=="win"', {
+ 'platform': 'win'
+ }, {
+ # This will cause the script to fail
+ 'platform': 'unknown_target_arch'
+ }],
+ ],
},
'inputs': [
'<(script_file)',
@@ -328,6 +344,7 @@
'-w',
'-i', '<(asciipb_file)',
'-o', '<(output_file)',
+ '-t', '<(platform)',
'-p', '<(PRODUCT_DIR)/pyproto',
'-p', '<(PRODUCT_DIR)/pyproto/chrome/common/safe_browsing',
],
« no previous file with comments | « chrome/browser/resources/safe_browsing/gen_file_type_proto.py ('k') | chrome/common/safe_browsing/download_file_types.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698