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