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

Side by Side Diff: third_party/WebKit/Source/modules/modules.gni

Issue 2328773002: Remove more blink modules gypi code. (Closed)
Patch Set: Selling correction Created 4 years, 3 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
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 # DON'T INCLUDE modules_idl_files.gni FROM HERE.
6 #
7 # This file is shared with all modules' BUILD files which shouldn't need access
8 # to the huge and slow lists of sources. If sharing is necessary, make a
9 # separate .gni.
5 import("//third_party/WebKit/Source/config.gni") 10 import("//third_party/WebKit/Source/config.gni")
6 11
7 _gypi = exec_script( 12 _gypi = exec_script(
8 "//build/gypi_to_gn.py", 13 "//build/gypi_to_gn.py",
9 [ 14 [
10 rebase_path("modules.gypi"), 15 rebase_path("modules.gypi"),
11 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir", 16 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir",
12 "--replace=<(blink_modules_output_dir)=$root_gen_dir/blink/modules", 17 "--replace=<(blink_modules_output_dir)=$root_gen_dir/blink/modules",
13 ], 18 ],
14 "scope", 19 "scope",
15 [ "modules.gypi" ]) 20 [ "modules.gypi" ])
16 21 modules_files = get_path_info(_gypi.modules_files, "abspath")
17 # interfaces that inherit from Event
18 generated_modules_files =
19 get_path_info(_gypi.generated_modules_files, "abspath")
20
21 generated_modules_dictionary_files =
22 get_path_info(_gypi.generated_modules_dictionary_files, "abspath")
23
24 # Remove GYP variables from the list (need to do this before rebasing).
25 _tmp_modules_files = _gypi.modules_files
26 _tmp_modules_files -= [
27 "<@(extra_blink_module_files)",
28 "<@(generated_modules_dictionary_files)",
29 "<@(generated_modules_files)",
30 ]
31 modules_files = get_path_info(_tmp_modules_files, "abspath")
32
33 # Account for GYP var expansion.
34 modules_files += generated_modules_files + generated_modules_dictionary_files
35 22
36 # Defines a part of blink modules. This is either a source set or a static 23 # Defines a part of blink modules. This is either a source set or a static
37 # library with defaults for commonly-used values. 24 # library with defaults for commonly-used values.
38 # 25 #
39 # deps 26 # deps
40 # Default deps are automatically appended to any specified on the caller. 27 # Default deps are automatically appended to any specified on the caller.
41 # 28 #
42 # visibility 29 # visibility
43 # Normal meaning if defined. If undefined, defaults to everything in core. 30 # Normal meaning if defined. If undefined, defaults to everything in core.
44 template("blink_modules_sources") { 31 template("blink_modules_sources") {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 "//third_party/WebKit/Source:config", 64 "//third_party/WebKit/Source:config",
78 "//third_party/WebKit/Source/modules:modules_implementation", 65 "//third_party/WebKit/Source/modules:modules_implementation",
79 "//third_party/WebKit/Source:non_test_config", 66 "//third_party/WebKit/Source:non_test_config",
80 "//third_party/WebKit/Source:inside_blink", 67 "//third_party/WebKit/Source:inside_blink",
81 ] 68 ]
82 if (remove_webcore_debug_symbols) { 69 if (remove_webcore_debug_symbols) {
83 configs -= [ "//build/config/compiler:default_symbols" ] 70 configs -= [ "//build/config/compiler:default_symbols" ]
84 configs += [ "//build/config/compiler:no_symbols" ] 71 configs += [ "//build/config/compiler:no_symbols" ]
85 } 72 }
86 } 73 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/BUILD.gn ('k') | third_party/WebKit/Source/modules/modules.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698