OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 { | 5 { |
6 'includes': [ | 6 'includes': [ |
7 'v8/v8.gypi', | 7 'v8/v8.gypi', |
8 ], | 8 ], |
9 'variables': { | 9 'variables': { |
10 'bindings_dir': '.', | 10 'bindings_dir': '.', |
11 'bindings_unittest_files': [ | 11 'bindings_unittest_files': [ |
12 '<@(bindings_v8_unittest_files)', | 12 '<@(bindings_v8_unittest_files)', |
13 ], | 13 ], |
14 'conditions': [ | |
15 # The bindings generator can skip writing generated files if they | |
16 # are identical to the already existing file, which avoids | |
17 # recompilation. However, a dependency (earlier build step) having | |
18 # a newer timestamp than an output (later build step) confuses some | |
19 # build systems, so only use this on ninja, which explicitly | |
20 # supports this use case (gyp turns all actions into ninja restat | |
21 # rules). | |
22 ['"<(GENERATOR)"=="ninja"', { | |
23 'write_file_only_if_changed': '1', | |
24 }, { | |
25 'write_file_only_if_changed': '0', | |
26 }], | |
27 ], | |
28 }, | 14 }, |
29 } | 15 } |
OLD | NEW |