| OLD | NEW |
| (Empty) |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 # This file is meant to be included into a target to provide a rule that | |
| 6 # fingerprints the v8 snapshot and generates a .cc file which includes this | |
| 7 # fingerprint. | |
| 8 # | |
| 9 # To use this, create a gyp target with the following form: | |
| 10 # { | |
| 11 # 'target_name': 'gin_v8_snapshot_fingerprint', | |
| 12 # 'type': 'none', | |
| 13 # 'variables': { | |
| 14 # 'snapshot_file': 'snapshot blob file to be fingerprinted', | |
| 15 # 'natives_file': 'natives blob file to be fingerprinted', | |
| 16 # 'output_file': 'output .cc file to generate with fingerprints', | |
| 17 # }, | |
| 18 # 'includes': [ '../gin/fingerprint/fingerprint_v8_snapshot.gypi' ], | |
| 19 # }, | |
| 20 # | |
| 21 | |
| 22 { | |
| 23 'conditions': [ | |
| 24 ['v8_use_external_startup_data==1', { | |
| 25 'actions': [ | |
| 26 { | |
| 27 'action_name': 'Generate V8 snapshot fingerprint', | |
| 28 'message': 'Generating V8 snapshot fingerprint', | |
| 29 'inputs': [ | |
| 30 '<(DEPTH)/gin/fingerprint/fingerprint_v8_snapshot.py', | |
| 31 '<(snapshot_file)', | |
| 32 '<(natives_file)', | |
| 33 ], | |
| 34 'outputs': [ | |
| 35 '<(output_file)', | |
| 36 ], | |
| 37 'action': [ | |
| 38 'python', '<(DEPTH)/gin/fingerprint/fingerprint_v8_snapshot.py', | |
| 39 '--snapshot_file=<(snapshot_file)', | |
| 40 '--natives_file=<(natives_file)', | |
| 41 '--output_file=<(output_file)', | |
| 42 ], | |
| 43 } | |
| 44 ], | |
| 45 }], | |
| 46 ], | |
| 47 } | |
| OLD | NEW |