• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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# v8/custom/custom.gypi --------------------------------------------------------
9
10# These paths are relative to v8/custom.
11_v8_custom_gypi = exec_script(
12    "//build/gypi_to_gn.py",
13    [ rebase_path("v8/custom/custom.gypi") ],
14    "scope",
15    [ "v8/custom/custom.gypi" ])
16
17bindings_v8_custom_dir = get_path_info("v8/custom", "abspath")
18bindings_v8_custom_files = get_path_info(
19    rebase_path(_v8_custom_gypi.bindings_v8_custom_files, ".",
20                bindings_v8_custom_dir),
21    "abspath")
22
23# v8/v8.gypi -------------------------------------------------------------------
24
25# These paths are relative to v8.
26_v8_gypi = exec_script(
27    "//build/gypi_to_gn.py",
28    [ rebase_path("v8/v8.gypi") ],
29    "scope",
30    [ "v8/v8.gypi" ])
31
32bindings_v8_dir = get_path_info("v8", "abspath")
33
34# v8.gypi references includes a reference to the custom_files list. Manually
35# expand that.
36_rel_bindings_v8_files = _v8_gypi.bindings_v8_files
37_rel_bindings_v8_files -= [ "<@(bindings_v8_custom_files)" ]
38bindings_v8_files = get_path_info(
39    rebase_path(_rel_bindings_v8_files, ".", "v8"),
40    "abspath")
41bindings_v8_files += bindings_v8_custom_files
42
43# bindings.gypi ----------------------------------------------------------------
44
45bindings_dir = get_path_info(".", "abspath")
46blink_output_dir = "$root_gen_dir/blink"
47bindings_output_dir = "$root_gen_dir/blink/bindings"
48
49bindings_unittest_files = get_path_info(
50    rebase_path(_v8_gypi.bindings_v8_unittest_files, ".", bindings_v8_dir),
51    "abspath")
52