OLD | NEW |
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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_file' : '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/resources
/safe_browsing/download_file_types.pb', |
| 317 'conditions': [ |
| 318 ['OS=="android"', { |
| 319 'platform': 'android' |
| 320 }, 'chromeos==1', { |
| 321 'platform': 'chromeos' |
| 322 }, 'OS=="linux"', { |
| 323 'platform': 'linux' |
| 324 }, 'OS=="mac"', { |
| 325 'platform': 'mac' |
| 326 }, 'OS=="win"', { |
| 327 'platform': 'win' |
| 328 }, { |
| 329 # This will cause the script to fail |
| 330 'platform': 'unknown_target_arch' |
| 331 }], |
| 332 ], |
317 }, | 333 }, |
318 'inputs': [ | 334 'inputs': [ |
319 '<(script_file)', | 335 '<(script_file)', |
320 '<(asciipb_file)', | 336 '<(asciipb_file)', |
321 ], | 337 ], |
322 'outputs': [ | 338 'outputs': [ |
323 '<(output_file)', | 339 '<(output_file)', |
324 ], | 340 ], |
325 'action': [ | 341 'action': [ |
326 'python', | 342 'python', |
327 '<(script_file)', | 343 '<(script_file)', |
328 '-w', | 344 '-w', |
329 '-i', '<(asciipb_file)', | 345 '-i', '<(asciipb_file)', |
330 '-o', '<(output_file)', | 346 '-o', '<(output_file)', |
| 347 '-t', '<(platform)', |
331 '-p', '<(PRODUCT_DIR)/pyproto', | 348 '-p', '<(PRODUCT_DIR)/pyproto', |
332 '-p', '<(PRODUCT_DIR)/pyproto/chrome/common/safe_browsing', | 349 '-p', '<(PRODUCT_DIR)/pyproto/chrome/common/safe_browsing', |
333 ], | 350 ], |
334 'message': 'Generating download_file_types.pb.', | 351 'message': 'Generating download_file_types.pb.', |
335 } | 352 } |
336 ], | 353 ], |
337 }, | 354 }, |
338 { | 355 { |
339 # GN version: //chrome/browser/metrics/variations:chrome_ui_string_overrid
er_factory_gen_sources | 356 # GN version: //chrome/browser/metrics/variations:chrome_ui_string_overrid
er_factory_gen_sources |
340 'target_name': 'make_chrome_ui_string_overrider_factory', | 357 'target_name': 'make_chrome_ui_string_overrider_factory', |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
723 '<(SHARED_INTERMEDIATE_DIR)/chrome/webui_test_resources.pak', | 740 '<(SHARED_INTERMEDIATE_DIR)/chrome/webui_test_resources.pak', |
724 ], | 741 ], |
725 'pak_output': '<(PRODUCT_DIR)/browser_tests.pak', | 742 'pak_output': '<(PRODUCT_DIR)/browser_tests.pak', |
726 }, | 743 }, |
727 'includes': [ '../build/repack_action.gypi' ], | 744 'includes': [ '../build/repack_action.gypi' ], |
728 }, | 745 }, |
729 ], | 746 ], |
730 }, | 747 }, |
731 ], # targets | 748 ], # targets |
732 } | 749 } |
OLD | NEW |