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

Side by Side Diff: third_party/WebKit/Source/modules/BUILD.gn

Issue 2328033002: Revert of Remove more blink modules gypi code. (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/modules/modules.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 import("//build/split_static_library.gni") 5 import("//build/split_static_library.gni")
6 import("//build/config/chromecast_build.gni") 6 import("//build/config/chromecast_build.gni")
7 import("//third_party/WebKit/Source/bindings/bindings.gni") 7 import("//third_party/WebKit/Source/bindings/bindings.gni")
8 import("//third_party/WebKit/Source/bindings/modules/v8/generated.gni") 8 import("//third_party/WebKit/Source/bindings/modules/v8/generated.gni")
9 import("//third_party/WebKit/Source/bindings/modules/v8/v8.gni") 9 import("//third_party/WebKit/Source/bindings/modules/v8/v8.gni")
10 import("//third_party/WebKit/Source/build/scripts/scripts.gni") 10 import("//third_party/WebKit/Source/build/scripts/scripts.gni")
(...skipping 15 matching lines...) Expand all
26 defines = [ "BLINK_MODULES_IMPLEMENTATION=1" ] 26 defines = [ "BLINK_MODULES_IMPLEMENTATION=1" ]
27 27
28 if (is_chromecast) { 28 if (is_chromecast) {
29 defines += [ 29 defines += [
30 "BLINK_MSLOG=VLOG(2)", 30 "BLINK_MSLOG=VLOG(2)",
31 "BLINK_SBLOG=VLOG(2)", 31 "BLINK_SBLOG=VLOG(2)",
32 ] 32 ]
33 } 33 }
34 } 34 }
35 35
36 make_names("module_names") {
37 in_files = [ "indexeddb/IndexedDBNames.in" ]
38 outputs = [
39 "$blink_modules_output_dir/IndexedDBNames.cpp",
40 "$blink_modules_output_dir/IndexedDBNames.h",
41 ]
42 deps = [] # Don't use default deps (otherwise it will be circular).
43 }
44
45 target(modules_target_type, "modules") { 36 target(modules_target_type, "modules") {
46 output_name = "blink_modules" 37 output_name = "blink_modules"
47 38
48 if (modules_target_type == "split_static_library") { 39 if (modules_target_type == "split_static_library") {
49 split_count = 5 40 split_count = 5
50 } 41 }
51 42
52 visibility = [] # Allow re-assignment of list. 43 visibility = [] # Allow re-assignment of list.
53 visibility = [ "//third_party/WebKit/*" ] 44 visibility = [ "//third_party/WebKit/*" ]
54 45
55 sources = [ 46 sources = rebase_path(modules_files, ".", "//")
56 "ModulesInitializer.cpp",
57 "ModulesInitializer.h",
58 ]
59
60 # These are the files that still need to be moved to separate BUILD files.
61 sources += rebase_path(modules_files, ".", "//")
62
63 sources += generated_modules_dictionary_files
64
65 # Compile sources generated by module_names script.
66 sources += get_target_outputs(":module_names")
67
68 sources += bindings_modules_v8_files 47 sources += bindings_modules_v8_files
69 sources += rebase_path(bindings_modules_generated_aggregate_files, ".", "//") 48 sources += rebase_path(bindings_modules_generated_aggregate_files, ".", "//")
70 sources += rebase_path(bindings_modules_generated_union_type_files, ".", "//") 49 sources += rebase_path(bindings_modules_generated_union_type_files, ".", "//")
71 sources += 50 sources +=
72 rebase_path(bindings_modules_generated_partial_aggregate_files, ".", "//") 51 rebase_path(bindings_modules_generated_partial_aggregate_files, ".", "//")
73 sources += 52 sources +=
74 rebase_path([ bindings_modules_generated_init_partial_interfaces_file ], 53 rebase_path([ bindings_modules_generated_init_partial_interfaces_file ],
75 ".", 54 ".",
76 "//") 55 "//")
77 56
78 configs += [ 57 configs += [
79 ":modules_implementation", 58 ":modules_implementation",
80 59
81 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 60 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
82 "//build/config/compiler:no_size_t_to_int_warning", 61 "//build/config/compiler:no_size_t_to_int_warning",
83 "//third_party/WebKit/Source:config", 62 "//third_party/WebKit/Source:config",
84 "//third_party/WebKit/Source:non_test_config", 63 "//third_party/WebKit/Source:non_test_config",
85 "//third_party/WebKit/Source:inside_blink", 64 "//third_party/WebKit/Source:inside_blink",
86 ] 65 ]
87 66
88 deps = [ 67 deps = [
89 ":make_modules_generated", 68 ":make_modules_generated",
90 ":module_names",
91 "//device/battery:mojo_bindings_blink", 69 "//device/battery:mojo_bindings_blink",
92 "//device/geolocation/public/interfaces:interfaces_blink", 70 "//device/geolocation/public/interfaces:interfaces_blink",
93 "//device/nfc:mojo_bindings_blink", 71 "//device/nfc:mojo_bindings_blink",
94 "//media/mojo/interfaces:image_capture_blink", 72 "//media/mojo/interfaces:image_capture_blink",
95 "//third_party/WebKit/Source/bindings/modules:generated",
96 "//third_party/WebKit/Source/core", 73 "//third_party/WebKit/Source/core",
97 "//third_party/WebKit/Source/modules/sensor", 74 "//third_party/WebKit/Source/modules/sensor",
98 "//third_party/WebKit/Source/modules/serviceworkers", 75 "//third_party/WebKit/Source/modules/serviceworkers",
99 "//third_party/WebKit/Source/modules/speech", 76 "//third_party/WebKit/Source/modules/speech",
100 "//third_party/WebKit/Source/modules/srcobject", 77 "//third_party/WebKit/Source/modules/srcobject",
101 "//third_party/WebKit/Source/modules/storage", 78 "//third_party/WebKit/Source/modules/storage",
102 "//third_party/WebKit/Source/modules/vibration", 79 "//third_party/WebKit/Source/modules/vibration",
103 "//third_party/WebKit/Source/modules/vr", 80 "//third_party/WebKit/Source/modules/vr",
104 "//third_party/WebKit/Source/modules/wake_lock", 81 "//third_party/WebKit/Source/modules/wake_lock",
105 "//third_party/WebKit/Source/modules/webaudio", 82 "//third_party/WebKit/Source/modules/webaudio",
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 "//third_party/WebKit/Source:config", 130 "//third_party/WebKit/Source:config",
154 "//third_party/WebKit/Source:inside_blink", 131 "//third_party/WebKit/Source:inside_blink",
155 ] 132 ]
156 133
157 deps = [ 134 deps = [
158 "//third_party/WebKit/Source/core", 135 "//third_party/WebKit/Source/core",
159 "//third_party/WebKit/Source/modules", 136 "//third_party/WebKit/Source/modules",
160 ] 137 ]
161 } 138 }
162 139
140 action("module_names") {
141 script = "../build/scripts/make_names.py"
142
143 module_names_in = "indexeddb/IndexedDBNames.in"
144 inputs = make_names_files + [ module_names_in ]
145
146 outputs = [
147 "$blink_modules_output_dir/IndexedDBNames.cpp",
148 "$blink_modules_output_dir/IndexedDBNames.h",
149 ]
150
151 args = [
152 rebase_path(module_names_in, root_build_dir),
153 "--output_dir",
154 rebase_path(blink_modules_output_dir, root_build_dir),
155 ]
156 }
157
158 # GYP version: WebKit/Source/modules/modules_generated.gyp:make_modules_generate d
163 group("make_modules_generated") { 159 group("make_modules_generated") {
164 public_deps = [ 160 public_deps = [
165 ":module_names", 161 ":module_names",
166 "//third_party/WebKit/Source/bindings/modules:bindings_modules_generated", 162 "//third_party/WebKit/Source/bindings/modules:bindings_modules_generated",
167 "//third_party/WebKit/Source/core:core_event_interfaces", 163 "//third_party/WebKit/Source/core:core_event_interfaces",
168 ] 164 ]
169 } 165 }
170 166
171 source_set("unit_tests") { 167 source_set("unit_tests") {
172 testonly = true 168 testonly = true
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 ":modules", 238 ":modules",
243 ":modules_testing", 239 ":modules_testing",
244 "//skia", 240 "//skia",
245 "//testing/gmock", 241 "//testing/gmock",
246 "//testing/gtest", 242 "//testing/gtest",
247 "//third_party/WebKit/Source/core", 243 "//third_party/WebKit/Source/core",
248 "//third_party/WebKit/Source/wtf", 244 "//third_party/WebKit/Source/wtf",
249 "//v8", 245 "//v8",
250 ] 246 ]
251 } 247 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/modules/modules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698