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