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.
5 # All paths in this file should be absolute so it can be imported into
8 # core/v8/custom/custom.gypi ---------------------------------------------------
10 # These paths are relative to v8/custom.
11 _core_v8_custom_gypi = exec_script(
12 "//build/gypi_to_gn.py",
13 [ rebase_path("core/v8/custom/custom.gypi") ],
15 [ "core/v8/custom/custom.gypi" ])
17 bindings_core_v8_custom_dir = get_path_info("core/v8/custom", "abspath")
18 bindings_core_v8_custom_files = get_path_info(
19 rebase_path(_core_v8_custom_gypi.bindings_core_v8_custom_files, ".",
20 bindings_core_v8_custom_dir),
23 # core/v8/v8.gypi --------------------------------------------------------------
25 # These paths are relative to v8.
26 _core_v8_gypi = exec_script(
27 "//build/gypi_to_gn.py",
28 [ rebase_path("core/v8/v8.gypi") ],
30 [ "core/v8/v8.gypi" ])
32 bindings_core_v8_dir = get_path_info("core/v8", "abspath")
34 # v8.gypi references includes a reference to the custom_files list. Manually
36 _rel_bindings_core_v8_files = _core_v8_gypi.bindings_core_v8_files
37 _rel_bindings_core_v8_files -= [ "<@(bindings_core_v8_custom_files)" ]
38 bindings_core_v8_files = get_path_info(
39 rebase_path(_rel_bindings_core_v8_files, ".", "core/v8"),
41 bindings_core_v8_files += bindings_core_v8_custom_files
43 # bindings.gypi ----------------------------------------------------------------
45 bindings_dir = get_path_info(".", "abspath")
46 blink_output_dir = "$root_gen_dir/blink"
47 bindings_output_dir = "$root_gen_dir/blink/bindings"
49 bindings_unittest_files = get_path_info(
50 rebase_path(_core_v8_gypi.bindings_core_v8_unittest_files, ".", bindings_core_v8_dir),