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

Side by Side Diff: chrome/chrome_resources.gyp

Issue 2003323003: Script to push download_file_types.pb to all platforms, via Component Updater (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit in README.gn 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 unified diff | Download patch
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 { 4 {
5 'variables': { 5 'variables': {
6 # Apply Chrome-specific grit settings to all of this file. 6 # Apply Chrome-specific grit settings to all of this file.
7 # The advantage is that one entry here applies to the entire file. 7 # The advantage is that one entry here applies to the entire file.
8 # The caveat is these variables cannot be merged with other variable 8 # The caveat is these variables cannot be merged with other variable
9 # dictionaries in more inner scopes. If the variable should be merged, 9 # dictionaries in more inner scopes. If the variable should be merged,
10 # consider putting them in a gypi file and including it at the right scope 10 # consider putting them in a gypi file and including it at the right scope
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 'dependencies': [ 306 'dependencies': [
307 'chrome.gyp:safe_browsing_proto', 307 'chrome.gyp:safe_browsing_proto',
308 '<(DEPTH)/third_party/protobuf/protobuf.gyp:py_proto', 308 '<(DEPTH)/third_party/protobuf/protobuf.gyp:py_proto',
309 ], 309 ],
310 'actions': [ 310 'actions': [
311 { 311 {
312 'action_name': 'generate_file_types_protobuf', 312 'action_name': 'generate_file_types_protobuf',
313 'variables' : { 313 'variables' : {
314 'script_file':'browser/resources/safe_browsing/gen_file_type_proto.p y', 314 'script_file':'browser/resources/safe_browsing/gen_file_type_proto.p y',
315 'asciipb_file' : 'browser/resources/safe_browsing/download_file_type s.asciipb', 315 'asciipb_file' : 'browser/resources/safe_browsing/download_file_type s.asciipb',
316 'output_file' : '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/resources /safe_browsing/download_file_types.pb', 316 'output_dir' : '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/resources/ safe_browsing',
317 'output_basename' : 'download_file_types.pb',
317 'conditions': [ 318 'conditions': [
318 ['OS=="android"', { 319 ['OS=="android"', {
319 'platform': 'android' 320 'platform': 'android'
320 }, 'chromeos==1', { 321 }, 'chromeos==1', {
321 'platform': 'chromeos' 322 'platform': 'chromeos'
322 }, 'OS=="linux"', { 323 }, 'OS=="linux"', {
323 'platform': 'linux' 324 'platform': 'linux'
324 }, 'OS=="mac"', { 325 }, 'OS=="mac"', {
325 'platform': 'mac' 326 'platform': 'mac'
326 }, 'OS=="win"', { 327 }, 'OS=="win"', {
327 'platform': 'win' 328 'platform': 'win'
328 }, { 329 }, {
329 # This will cause the script to fail 330 # This will cause the script to fail
330 'platform': 'unknown_target_arch' 331 'platform': 'unknown_target_arch'
331 }], 332 }],
332 ], 333 ],
333 }, 334 },
334 'inputs': [ 335 'inputs': [
335 '<(script_file)', 336 '<(script_file)',
336 '<(asciipb_file)', 337 '<(asciipb_file)',
337 ], 338 ],
338 'outputs': [ 339 'outputs': [
339 '<(output_file)', 340 '<(output_dir)/<(output_basename)',
340 ], 341 ],
341 'action': [ 342 'action': [
342 'python', 343 'python',
343 '<(script_file)', 344 '<(script_file)',
344 '-w', 345 '-w',
345 '-i', '<(asciipb_file)', 346 '-i', '<(asciipb_file)',
346 '-o', '<(output_file)', 347 '-d', '<(output_dir)',
348 '-o', '<(output_basename)',
347 '-t', '<(platform)', 349 '-t', '<(platform)',
348 '-p', '<(PRODUCT_DIR)/pyproto', 350 '-p', '<(PRODUCT_DIR)/pyproto',
349 '-p', '<(PRODUCT_DIR)/pyproto/chrome/common/safe_browsing', 351 '-p', '<(PRODUCT_DIR)/pyproto/chrome/common/safe_browsing',
350 ], 352 ],
351 'message': 'Generating download_file_types.pb.', 353 'message': 'Generating download_file_types.pb.',
352 } 354 }
353 ], 355 ],
354 }, 356 },
355 { 357 {
356 # GN version: //chrome/browser/metrics/variations:chrome_ui_string_overrid er_factory_gen_sources 358 # GN version: //chrome/browser/metrics/variations:chrome_ui_string_overrid er_factory_gen_sources
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 '<(SHARED_INTERMEDIATE_DIR)/chrome/webui_test_resources.pak', 727 '<(SHARED_INTERMEDIATE_DIR)/chrome/webui_test_resources.pak',
726 ], 728 ],
727 'pak_output': '<(PRODUCT_DIR)/browser_tests.pak', 729 'pak_output': '<(PRODUCT_DIR)/browser_tests.pak',
728 }, 730 },
729 'includes': [ '../build/repack_action.gypi' ], 731 'includes': [ '../build/repack_action.gypi' ],
730 }, 732 },
731 ], 733 ],
732 }, 734 },
733 ], # targets 735 ], # targets
734 } 736 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698