Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: Source/bindings/bindings.gni

Issue 331373002: Split bindings/v8/custom into core and modules. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated bindings.gni Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 # v8/custom/custom.gypi -------------------------------------------------------- 8 # v8/custom/custom.gypi --------------------------------------------------------
9 9
10 # These paths are relative to v8/custom. 10 # These paths are relative to v8/custom.
11 _v8_custom_gypi = exec_script( 11 _v8_custom_gypi = exec_script(
12 "//build/gypi_to_gn.py", 12 "//build/gypi_to_gn.py",
13 [ rebase_path("v8/custom/custom.gypi") ], 13 [ rebase_path("v8/custom/custom.gypi") ],
14 "scope", 14 "scope",
15 [ "v8/custom/custom.gypi" ]) 15 [ "v8/custom/custom.gypi" ])
16 16
17 bindings_v8_custom_dir = get_path_info("v8/custom", "abspath") 17 bindings_v8_custom_dir = get_path_info("v8/custom", "abspath")
18 bindings_v8_custom_files = get_path_info( 18 bindings_v8_custom_files = get_path_info(
19 rebase_path(_v8_custom_gypi.bindings_v8_custom_files, ".", 19 rebase_path(_v8_custom_gypi.bindings_v8_custom_files, ".",
20 bindings_v8_custom_dir), 20 bindings_v8_custom_dir),
21 "abspath") 21 "abspath")
22 22
23 # modules/v8/custom/custom.gypi ------------------------------------------------
24
25 # These paths are relative to v8/custom.
26 _v8_modules_custom_gypi = exec_script(
27 "//build/gypi_to_gn.py",
28 [ rebase_path("v8/custom/custom.gypi") ],
29 "scope",
30 [ "v8/custom/custom.gypi" ])
31
32 bindings_v8_modules_custom_dir = get_path_info("v8/custom", "abspath")
33 bindings_v8_modules_custom_files = get_path_info(
34 rebase_path(_v8_custom_gypi.bindings_v8_modules_custom_files, ".",
35 bindings_v8_modules_custom_dir),
36 "abspath")
37
23 # v8/v8.gypi ------------------------------------------------------------------- 38 # v8/v8.gypi -------------------------------------------------------------------
24 39
25 # These paths are relative to v8. 40 # These paths are relative to v8.
26 _v8_gypi = exec_script( 41 _v8_gypi = exec_script(
27 "//build/gypi_to_gn.py", 42 "//build/gypi_to_gn.py",
28 [ rebase_path("v8/v8.gypi") ], 43 [ rebase_path("v8/v8.gypi") ],
29 "scope", 44 "scope",
30 [ "v8/v8.gypi" ]) 45 [ "v8/v8.gypi" ])
31 46
32 bindings_v8_dir = get_path_info("v8", "abspath") 47 bindings_v8_dir = get_path_info("v8", "abspath")
33 48
34 # v8.gypi references includes a reference to the custom_files list. Manually 49 # v8.gypi references includes a reference to the custom_files list. Manually
35 # expand that. 50 # expand that.
36 _rel_bindings_v8_files = _v8_gypi.bindings_v8_files 51 _rel_bindings_v8_files = _v8_gypi.bindings_v8_files
37 _rel_bindings_v8_files -= [ "<@(bindings_v8_custom_files)" ] 52 _rel_bindings_v8_files -= [ "<@(bindings_v8_custom_files)", "<@(bindings_v8_modu les_custom_files)" ]
38 bindings_v8_files = get_path_info( 53 bindings_v8_files = get_path_info(
39 rebase_path(_rel_bindings_v8_files, ".", "v8"), 54 rebase_path(_rel_bindings_v8_files, ".", "v8"),
40 "abspath") 55 "abspath")
41 bindings_v8_files += bindings_v8_custom_files 56 bindings_v8_files += bindings_v8_custom_files
42 57
43 # bindings.gypi ---------------------------------------------------------------- 58 # bindings.gypi ----------------------------------------------------------------
44 59
45 bindings_dir = get_path_info(".", "abspath") 60 bindings_dir = get_path_info(".", "abspath")
46 blink_output_dir = "$root_gen_dir/blink" 61 blink_output_dir = "$root_gen_dir/blink"
47 bindings_output_dir = "$root_gen_dir/blink/bindings" 62 bindings_output_dir = "$root_gen_dir/blink/bindings"
48 63
49 bindings_unittest_files = get_path_info( 64 bindings_unittest_files = get_path_info(
50 rebase_path(_v8_gypi.bindings_v8_unittest_files, ".", bindings_v8_dir), 65 rebase_path(_v8_gypi.bindings_v8_unittest_files, ".", bindings_v8_dir),
51 "abspath") 66 "abspath")
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/modules/v8/custom/V8AudioNodeCustom.cpp » ('j') | Source/bindings/modules/v8/custom/custom.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698