| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 # All paths in this file should be absolute so it can be imported into | |
| 6 # different contexts. | |
| 7 | |
| 8 # core/v8/custom/custom.gypi --------------------------------------------------- | |
| 9 | |
| 10 # These paths are relative to v8/custom. | |
| 11 _core_v8_custom_gypi = | |
| 12 exec_script("//build/gypi_to_gn.py", | |
| 13 [ rebase_path("core/v8/custom/custom.gypi") ], | |
| 14 "scope", | |
| 15 [ "core/v8/custom/custom.gypi" ]) | |
| 16 | |
| 17 bindings_core_v8_custom_dir = get_path_info("core/v8/custom", "abspath") | |
| 18 bindings_core_v8_custom_files = | |
| 19 get_path_info( | |
| 20 rebase_path(_core_v8_custom_gypi.bindings_core_v8_custom_files, | |
| 21 ".", | |
| 22 bindings_core_v8_custom_dir), | |
| 23 "abspath") | |
| 24 | |
| 25 # core/v8/v8.gypi -------------------------------------------------------------- | |
| 26 | |
| 27 # These paths are relative to v8. | |
| 28 _core_v8_gypi = exec_script("//build/gypi_to_gn.py", | |
| 29 [ rebase_path("core/v8/v8.gypi") ], | |
| 30 "scope", | |
| 31 [ "core/v8/v8.gypi" ]) | |
| 32 | |
| 33 bindings_core_v8_dir = get_path_info("core/v8", "abspath") | |
| 34 | |
| 35 # v8.gypi references includes a reference to the custom_files list. Manually | |
| 36 # expand that. | |
| 37 _rel_bindings_core_v8_files = _core_v8_gypi.bindings_core_v8_files | |
| 38 _rel_bindings_core_v8_files -= [ "<@(bindings_core_v8_custom_files)" ] | |
| 39 bindings_core_v8_files = | |
| 40 get_path_info(rebase_path(_rel_bindings_core_v8_files, ".", "core/v8"), | |
| 41 "abspath") | |
| 42 bindings_core_v8_files += bindings_core_v8_custom_files | |
| 43 | |
| 44 # bindings.gypi ---------------------------------------------------------------- | |
| 45 | |
| 46 bindings_dir = get_path_info(".", "abspath") | |
| 47 sky_output_dir = "$root_gen_dir/sky" | |
| 48 bindings_output_dir = "$root_gen_dir/sky/bindings" | |
| OLD | NEW |