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.
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
9 # To use this, create a gyp target with the following form:
11 # 'target_name': 'gin_v8_snapshot_fingerprint',
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',
18 # 'includes': [ '../gin/fingerprint/fingerprint_v8_snapshot.gypi' ],
24 ['v8_use_external_startup_data==1', {
27 'action_name': 'Generate V8 snapshot fingerprint',
28 'message': 'Generating V8 snapshot fingerprint',
30 '<(DEPTH)/gin/fingerprint/fingerprint_v8_snapshot.py',
38 'python', '<(DEPTH)/gin/fingerprint/fingerprint_v8_snapshot.py',
39 '--snapshot_file=<(snapshot_file)',
40 '--natives_file=<(natives_file)',
41 '--output_file=<(output_file)',