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

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

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Rebased again Created 3 years, 5 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. 5 # DON'T INCLUDE modules_idl_files.gni FROM HERE.
6 # 6 #
7 # This file is shared with all modules' BUILD files which shouldn't need access 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 8 # to the huge and slow lists of sources. If sharing is necessary, make a
9 # separate .gni. 9 # separate .gni.
10 import("//build/config/jumbo.gni")
10 import("//build/split_static_library.gni") 11 import("//build/split_static_library.gni")
11 import("//third_party/WebKit/Source/config.gni") 12 import("//third_party/WebKit/Source/config.gni")
12 13
14 blink_modules_output_dir = "$root_gen_dir/blink/modules"
15
13 # Defines a part of blink modules. This is either a source set or a static 16 # Defines a part of blink modules. This is either a source set or a static
14 # library with defaults for commonly-used values. 17 # library with defaults for commonly-used values.
15 # 18 #
16 # deps 19 # deps
17 # Default deps are automatically appended to any specified on the caller. 20 # Default deps are automatically appended to any specified on the caller.
18 # 21 #
19 # visibility 22 # visibility
20 # Normal meaning if defined. If undefined, defaults to everything in core. 23 # Normal meaning if defined. If undefined, defaults to everything in core.
21 template("blink_modules_sources") { 24 template("blink_modules_sources") {
22 if (is_component_build) { 25 jumbo_target(target_name) {
23 target_type = "source_set" 26 if (is_component_build) {
24 } else { 27 target_type = "source_set"
25 if (!defined(invoker.split_count)) {
26 target_type = "static_library"
27 } else { 28 } else {
28 target_type = "split_static_library" 29 if (!defined(invoker.split_count)) {
30 target_type = "static_library"
31 } else {
32 target_type = "split_static_library"
33 }
29 } 34 }
30 }
31 35
32 target(target_type, target_name) {
33 # The visibility will get overridden by forward_variables_from below if the 36 # The visibility will get overridden by forward_variables_from below if the
34 # invoker defined it. 37 # invoker defined it.
35 visibility = [ "//third_party/WebKit/Source/modules/*" ] 38 visibility = [ "//third_party/WebKit/Source/modules/*" ]
36 39
37 deps = [ 40 deps = [
38 "//third_party/WebKit/Source/core", 41 "//third_party/WebKit/Source/core",
39 "//third_party/WebKit/Source/modules:make_modules_generated", 42 "//third_party/WebKit/Source/modules:make_modules_generated",
40 "//third_party/icu", 43 "//third_party/icu",
41 ] 44 ]
42 if (defined(invoker.deps)) { 45 if (defined(invoker.deps)) {
(...skipping 23 matching lines...) Expand all
66 "//third_party/WebKit/Source:config", 69 "//third_party/WebKit/Source:config",
67 "//third_party/WebKit/Source/modules:modules_implementation", 70 "//third_party/WebKit/Source/modules:modules_implementation",
68 "//third_party/WebKit/Source:non_test_config", 71 "//third_party/WebKit/Source:non_test_config",
69 "//third_party/WebKit/Source:inside_blink", 72 "//third_party/WebKit/Source:inside_blink",
70 ] 73 ]
71 if (remove_webcore_debug_symbols) { 74 if (remove_webcore_debug_symbols) {
72 configs -= [ "//build/config/compiler:default_symbols" ] 75 configs -= [ "//build/config/compiler:default_symbols" ]
73 configs += remove_webcore_symbols_config 76 configs += remove_webcore_symbols_config
74 } 77 }
75 } 78 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698