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 import("//third_party/WebKit/Source/config.gni") | 5 import("//third_party/WebKit/Source/config.gni") |
6 | 6 |
7 blink_modules_output_dir = "$root_gen_dir/blink/modules" | |
8 | |
9 _gypi = exec_script( | 7 _gypi = exec_script( |
10 "//build/gypi_to_gn.py", | 8 "//build/gypi_to_gn.py", |
11 [ | 9 [ |
12 rebase_path("modules.gypi"), | 10 rebase_path("modules.gypi"), |
13 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir", | 11 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir", |
14 "--replace=<(blink_modules_output_dir)=$blink_modules_output_dir", | 12 "--replace=<(blink_modules_output_dir)=$root_gen_dir/blink/modules", |
15 ], | 13 ], |
16 "scope", | 14 "scope", |
17 [ "modules.gypi" ]) | 15 [ "modules.gypi" ]) |
18 | 16 |
19 _tmp_modules_idl_files = _gypi.modules_idl_files | |
20 | |
21 # modules_idl_files has a magic variable in it that is an embedder hook, | |
22 # remove that since it's not a file (need to do this before rebasing). | |
23 _tmp_modules_idl_files -= [ "<@(extra_blink_module_idl_files)" ] | |
24 modules_idl_files = get_path_info(_tmp_modules_idl_files, "abspath") | |
25 | |
26 modules_dictionary_idl_files = | |
27 get_path_info(_gypi.modules_dictionary_idl_files, "abspath") | |
28 | |
29 # 'partial interface' or target (right side of) 'implements' | |
30 modules_dependency_idl_files = | |
31 get_path_info(_gypi.modules_dependency_idl_files, "abspath") | |
32 | |
33 modules_event_idl_files = | |
34 get_path_info(_gypi.modules_event_idl_files, "abspath") | |
35 | |
36 # interfaces that inherit from Event | 17 # interfaces that inherit from Event |
37 generated_modules_files = | 18 generated_modules_files = |
38 get_path_info(_gypi.generated_modules_files, "abspath") | 19 get_path_info(_gypi.generated_modules_files, "abspath") |
39 | 20 |
40 generated_modules_dictionary_files = | 21 generated_modules_dictionary_files = |
41 get_path_info(_gypi.generated_modules_dictionary_files, "abspath") | 22 get_path_info(_gypi.generated_modules_dictionary_files, "abspath") |
42 | 23 |
43 # Remove GYP variables from the list (need to do this before rebasing). | 24 # Remove GYP variables from the list (need to do this before rebasing). |
44 _tmp_modules_files = _gypi.modules_files | 25 _tmp_modules_files = _gypi.modules_files |
45 _tmp_modules_files -= [ | 26 _tmp_modules_files -= [ |
46 "<@(extra_blink_module_files)", | 27 "<@(extra_blink_module_files)", |
47 "<@(generated_modules_dictionary_files)", | 28 "<@(generated_modules_dictionary_files)", |
48 "<@(generated_modules_files)", | 29 "<@(generated_modules_files)", |
49 ] | 30 ] |
50 modules_files = get_path_info(_tmp_modules_files, "abspath") | 31 modules_files = get_path_info(_tmp_modules_files, "abspath") |
51 | 32 |
52 # Account for GYP var expansion. | 33 # Account for GYP var expansion. |
53 modules_files += generated_modules_files + generated_modules_dictionary_files | 34 modules_files += generated_modules_files + generated_modules_dictionary_files |
54 | 35 |
55 # 'partial interface' or target (right side of) 'implements' | |
56 modules_testing_dependency_idl_files = | |
57 get_path_info(_gypi.modules_testing_dependency_idl_files, "abspath") | |
58 | |
59 # Defines a part of blink modules. This is either a source set or a static | 36 # Defines a part of blink modules. This is either a source set or a static |
60 # library with defaults for commonly-used values. | 37 # library with defaults for commonly-used values. |
61 # | 38 # |
62 # deps | 39 # deps |
63 # Default deps are automatically appended to any specified on the caller. | 40 # Default deps are automatically appended to any specified on the caller. |
64 # | 41 # |
65 # visibility | 42 # visibility |
66 # Normal meaning if defined. If undefined, defaults to everything in core. | 43 # Normal meaning if defined. If undefined, defaults to everything in core. |
67 template("blink_modules_sources") { | 44 template("blink_modules_sources") { |
68 if (is_component_build) { | 45 if (is_component_build) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 "//third_party/WebKit/Source:config", | 77 "//third_party/WebKit/Source:config", |
101 "//third_party/WebKit/Source/modules:modules_implementation", | 78 "//third_party/WebKit/Source/modules:modules_implementation", |
102 "//third_party/WebKit/Source:non_test_config", | 79 "//third_party/WebKit/Source:non_test_config", |
103 "//third_party/WebKit/Source:inside_blink", | 80 "//third_party/WebKit/Source:inside_blink", |
104 ] | 81 ] |
105 if (remove_webcore_debug_symbols) { | 82 if (remove_webcore_debug_symbols) { |
106 configs -= [ "//build/config/compiler:default_symbols" ] | 83 configs -= [ "//build/config/compiler:default_symbols" ] |
107 configs += [ "//build/config/compiler:no_symbols" ] | 84 configs += [ "//build/config/compiler:no_symbols" ] |
108 } | 85 } |
109 } | 86 } |
OLD | NEW |