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

Side by Side Diff: extensions/renderer/BUILD.gn

Issue 578483002: Cleanup: Only build extensions renderer code when extensions are enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « extensions/extensions.gyp ('k') | no next file » | 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 # GYP version: extensions/extensions.gyp:extensions_renderer 5 # GYP version: extensions/extensions.gyp:extensions_renderer
6 source_set("renderer") { 6 source_set("renderer") {
7 sources = [ 7 sources = [
8 "activity_log_converter_strategy.cc", 8 "activity_log_converter_strategy.cc",
9 "activity_log_converter_strategy.h", 9 "activity_log_converter_strategy.h",
10 "api_activity_logger.cc", 10 "api_activity_logger.cc",
11 "api_activity_logger.h", 11 "api_activity_logger.h",
12 "api_definitions_natives.cc",
13 "api_definitions_natives.h",
12 "app_runtime_custom_bindings.cc", 14 "app_runtime_custom_bindings.cc",
13 "app_runtime_custom_bindings.h", 15 "app_runtime_custom_bindings.h",
14 "app_window_custom_bindings.cc", 16 "app_window_custom_bindings.cc",
15 "app_window_custom_bindings.h", 17 "app_window_custom_bindings.h",
18 "binding_generating_native_handler.cc",
19 "binding_generating_native_handler.h",
20 "blob_native_handler.cc",
21 "blob_native_handler.h",
16 "console.cc", 22 "console.cc",
17 "console.h", 23 "console.h",
18 "content_watcher.cc", 24 "content_watcher.cc",
19 "content_watcher.h", 25 "content_watcher.h",
26 "context_menus_custom_bindings.cc",
27 "context_menus_custom_bindings.h",
28 "css_native_handler.cc",
29 "css_native_handler.h",
20 "default_dispatcher_delegate.cc", 30 "default_dispatcher_delegate.cc",
21 "default_dispatcher_delegate.h", 31 "default_dispatcher_delegate.h",
32 "dispatcher.cc",
33 "dispatcher.h",
34 "dispatcher_delegate.h",
22 "document_custom_bindings.cc", 35 "document_custom_bindings.cc",
23 "document_custom_bindings.h", 36 "document_custom_bindings.h",
24 "dom_activity_logger.cc", 37 "dom_activity_logger.cc",
25 "dom_activity_logger.h", 38 "dom_activity_logger.h",
26 "event_bindings.cc", 39 "event_bindings.cc",
27 "event_bindings.h", 40 "event_bindings.h",
41 "extension_groups.h",
28 "extension_helper.cc", 42 "extension_helper.cc",
29 "extension_helper.h", 43 "extension_helper.h",
30 "extensions_render_frame_observer.cc", 44 "extensions_render_frame_observer.cc",
31 "extensions_render_frame_observer.h", 45 "extensions_render_frame_observer.h",
32 "extensions_renderer_client.cc", 46 "extensions_renderer_client.cc",
33 "extensions_renderer_client.h", 47 "extensions_renderer_client.h",
34 "extension_groups.h", 48 "file_system_natives.cc",
49 "file_system_natives.h",
35 "guest_view/guest_view_internal_custom_bindings.cc", 50 "guest_view/guest_view_internal_custom_bindings.cc",
36 "guest_view/guest_view_internal_custom_bindings.h", 51 "guest_view/guest_view_internal_custom_bindings.h",
37 "i18n_custom_bindings.cc", 52 "i18n_custom_bindings.cc",
38 "i18n_custom_bindings.h", 53 "i18n_custom_bindings.h",
39 "id_generator_custom_bindings.cc", 54 "id_generator_custom_bindings.cc",
40 "id_generator_custom_bindings.h", 55 "id_generator_custom_bindings.h",
56 "lazy_background_page_native_handler.cc",
57 "lazy_background_page_native_handler.h",
58 "logging_native_handler.cc",
59 "logging_native_handler.h",
41 "messaging_bindings.cc", 60 "messaging_bindings.cc",
42 "messaging_bindings.h", 61 "messaging_bindings.h",
43 "module_system.cc", 62 "module_system.cc",
44 "module_system.h", 63 "module_system.h",
64 "native_handler.cc",
65 "native_handler.h",
66 "object_backed_native_handler.cc",
67 "object_backed_native_handler.h",
68 "print_native_handler.cc",
69 "print_native_handler.h",
70 "process_info_native_handler.cc",
71 "process_info_native_handler.h",
45 "programmatic_script_injector.cc", 72 "programmatic_script_injector.cc",
46 "programmatic_script_injector.h", 73 "programmatic_script_injector.h",
74 "render_view_observer_natives.cc",
47 "request_sender.cc", 75 "request_sender.cc",
48 "request_sender.h", 76 "request_sender.h",
49 "resource_bundle_source_map.cc", 77 "resource_bundle_source_map.cc",
50 "resource_bundle_source_map.h", 78 "resource_bundle_source_map.h",
51 "resources/app_runtime_custom_bindings.js", 79 "resources/app_runtime_custom_bindings.js",
52 "resources/app_window_custom_bindings.js", 80 "resources/app_window_custom_bindings.js",
53 "resources/binding.js", 81 "resources/binding.js",
54 "resources/context_menus_custom_bindings.js", 82 "resources/context_menus_custom_bindings.js",
55 "resources/entry_id_manager.js", 83 "resources/entry_id_manager.js",
56 "resources/event.js", 84 "resources/event.js",
(...skipping 16 matching lines...) Expand all
73 "resources/set_icon.js", 101 "resources/set_icon.js",
74 "resources/storage_area.js", 102 "resources/storage_area.js",
75 "resources/test_custom_bindings.js", 103 "resources/test_custom_bindings.js",
76 "resources/uncaught_exception_handler.js", 104 "resources/uncaught_exception_handler.js",
77 "resources/unload_event.js", 105 "resources/unload_event.js",
78 "resources/utils.js", 106 "resources/utils.js",
79 "runtime_custom_bindings.cc", 107 "runtime_custom_bindings.cc",
80 "runtime_custom_bindings.h", 108 "runtime_custom_bindings.h",
81 "safe_builtins.cc", 109 "safe_builtins.cc",
82 "safe_builtins.h", 110 "safe_builtins.h",
83 "set_icon_natives.cc",
84 "set_icon_natives.h",
85 "scoped_persistent.h", 111 "scoped_persistent.h",
86 "script_context.cc", 112 "script_context.cc",
87 "script_context.h", 113 "script_context.h",
88 "script_context_set.cc", 114 "script_context_set.cc",
89 "script_context_set.h", 115 "script_context_set.h",
90 "script_injection.cc", 116 "script_injection.cc",
91 "script_injection.h", 117 "script_injection.h",
92 "script_injection_manager.cc", 118 "script_injection_manager.cc",
93 "script_injection_manager.h", 119 "script_injection_manager.h",
94 "script_injector.h", 120 "script_injector.h",
95 "scripts_run_info.cc", 121 "scripts_run_info.cc",
96 "scripts_run_info.h", 122 "scripts_run_info.h",
123 "send_request_natives.cc",
124 "send_request_natives.h",
125 "set_icon_natives.cc",
126 "set_icon_natives.h",
97 "static_v8_external_ascii_string_resource.cc", 127 "static_v8_external_ascii_string_resource.cc",
98 "static_v8_external_ascii_string_resource.h", 128 "static_v8_external_ascii_string_resource.h",
129 "test_features_native_handler.cc",
130 "test_features_native_handler.h",
131 "user_gestures_native_handler.cc",
132 "user_gestures_native_handler.h",
133 "user_script_injector.cc",
134 "user_script_injector.h",
135 "user_script_set.cc",
136 "user_script_set.h",
137 "user_script_set_manager.cc",
138 "user_script_set_manager.h",
139 "utils_native_handler.cc",
140 "utils_native_handler.h",
141 "v8_context_native_handler.cc",
142 "v8_context_native_handler.h",
99 "v8_schema_registry.cc", 143 "v8_schema_registry.cc",
100 "v8_schema_registry.h", 144 "v8_schema_registry.h",
101 ] 145 ]
102 146
103 deps = [ 147 deps = [
104 "//chrome:resources", 148 "//chrome:resources",
105 "//content:resources", 149 "//content:resources",
106 "//extensions:extensions_resources", 150 "//extensions:extensions_resources",
107 "//gin", 151 "//gin",
108 "//mojo/bindings/js", 152 "//mojo/bindings/js",
109 "//skia", 153 "//skia",
110 "//third_party/WebKit/public:blink", 154 "//third_party/WebKit/public:blink",
111 ] 155 ]
112 156
113 if (!is_android) {
114 # Temporary condition for Android until it can stop building
115 # the extensions module altogether. These exemptions are taken
116 # directly from chrome_renderer.gypi as sources are moved
117 # from //chrome/renderer to //extensions/renderer.
118 sources += [
119 "api_definitions_natives.cc",
120 "api_definitions_natives.h",
121 "binding_generating_native_handler.cc",
122 "binding_generating_native_handler.h",
123 "blob_native_handler.cc",
124 "blob_native_handler.h",
125 "context_menus_custom_bindings.cc",
126 "context_menus_custom_bindings.h",
127 "css_native_handler.cc",
128 "css_native_handler.h",
129 "dispatcher.cc",
130 "dispatcher.h",
131 "dispatcher_delegate.h",
132 "file_system_natives.cc",
133 "file_system_natives.h",
134 "lazy_background_page_native_handler.cc",
135 "lazy_background_page_native_handler.h",
136 "logging_native_handler.cc",
137 "logging_native_handler.h",
138 "native_handler.cc",
139 "native_handler.h",
140 "object_backed_native_handler.cc",
141 "object_backed_native_handler.h",
142 "print_native_handler.cc",
143 "print_native_handler.h",
144 "process_info_native_handler.cc",
145 "process_info_native_handler.h",
146 "render_view_observer_natives.cc",
147 "send_request_natives.cc",
148 "send_request_natives.h",
149 "test_features_native_handler.cc",
150 "test_features_native_handler.h",
151 "user_gestures_native_handler.cc",
152 "user_gestures_native_handler.h",
153 "user_script_injector.cc",
154 "user_script_injector.h",
155 "user_script_set.cc",
156 "user_script_set.h",
157 "user_script_set_manager.cc",
158 "user_script_set_manager.h",
159 "utils_native_handler.cc",
160 "utils_native_handler.h",
161 "v8_context_native_handler.cc",
162 "v8_context_native_handler.h",
163 ]
164 }
165
166 if (is_win) { 157 if (is_win) {
167 cflags = [ 158 cflags = [
168 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 159 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
169 ] 160 ]
170 } 161 }
171 } 162 }
OLDNEW
« no previous file with comments | « extensions/extensions.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698