OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 import("//build/config/features.gni") |
| 6 |
| 7 # GYP version: extensions/extensions.gyp:extensions_common |
| 8 source_set("common") { |
| 9 sources = [ |
| 10 "api/messaging/message.h", |
| 11 "api/sockets/sockets_manifest_data.cc", |
| 12 "api/sockets/sockets_manifest_data.h", |
| 13 "api/sockets/sockets_manifest_handler.cc", |
| 14 "api/sockets/sockets_manifest_handler.h", |
| 15 "api/sockets/sockets_manifest_permission.cc", |
| 16 "api/sockets/sockets_manifest_permission.h", |
| 17 "common_manifest_handlers.cc", |
| 18 "common_manifest_handlers.h", |
| 19 "constants.cc", |
| 20 "constants.h", |
| 21 "crx_file.cc", |
| 22 "crx_file.h", |
| 23 "csp_validator.cc", |
| 24 "csp_validator.h", |
| 25 "dom_action_types.h", |
| 26 "draggable_region.cc", |
| 27 "draggable_region.h", |
| 28 "error_utils.cc", |
| 29 "error_utils.h", |
| 30 "event_filter.cc", |
| 31 "event_filter.h", |
| 32 "event_filtering_info.cc", |
| 33 "event_filtering_info.h", |
| 34 "event_matcher.cc", |
| 35 "event_matcher.h", |
| 36 "extension.cc", |
| 37 "extension.h", |
| 38 "extension_api.cc", |
| 39 "extension_api.h", |
| 40 "extension_api_stub.cc", |
| 41 "extension_icon_set.cc", |
| 42 "extension_icon_set.h", |
| 43 "extension_l10n_util.cc", |
| 44 "extension_l10n_util.h", |
| 45 "extension_message_generator.cc", |
| 46 "extension_message_generator.h", |
| 47 "extension_messages.cc", |
| 48 "extension_messages.h", |
| 49 "extension_paths.cc", |
| 50 "extension_paths.h", |
| 51 "extension_resource.cc", |
| 52 "extension_resource.h", |
| 53 "extension_set.cc", |
| 54 "extension_set.h", |
| 55 "extension_urls.cc", |
| 56 "extension_urls.h", |
| 57 "extensions_client.cc", |
| 58 "extensions_client.h", |
| 59 "feature_switch.cc", |
| 60 "feature_switch.h", |
| 61 "features/api_feature.cc", |
| 62 "features/api_feature.h", |
| 63 "features/base_feature_provider.cc", |
| 64 "features/base_feature_provider.h", |
| 65 "features/complex_feature.cc", |
| 66 "features/complex_feature.h", |
| 67 "features/feature.cc", |
| 68 "features/feature.h", |
| 69 "features/feature_provider.cc", |
| 70 "features/feature_provider.h", |
| 71 "features/json_feature_provider_source.cc", |
| 72 "features/json_feature_provider_source.h", |
| 73 "features/manifest_feature.cc", |
| 74 "features/manifest_feature.h", |
| 75 "features/permission_feature.cc", |
| 76 "features/permission_feature.h", |
| 77 "features/simple_feature.cc", |
| 78 "features/simple_feature.h", |
| 79 "features/simple_feature_filter.cc", |
| 80 "features/simple_feature_filter.h", |
| 81 "file_util.cc", |
| 82 "file_util.h", |
| 83 "id_util.cc", |
| 84 "id_util.h", |
| 85 "install_warning.cc", |
| 86 "install_warning.h", |
| 87 "manifest.cc", |
| 88 "manifest.h", |
| 89 "manifest_constants.cc", |
| 90 "manifest_constants.h", |
| 91 "manifest_handler.cc", |
| 92 "manifest_handler.h", |
| 93 "manifest_handler_helpers.cc", |
| 94 "manifest_handler_helpers.h", |
| 95 "manifest_handlers/background_info.cc", |
| 96 "manifest_handlers/background_info.h", |
| 97 "manifest_handlers/csp_info.cc", |
| 98 "manifest_handlers/csp_info.h", |
| 99 "manifest_handlers/externally_connectable.cc", |
| 100 "manifest_handlers/externally_connectable.h", |
| 101 "manifest_handlers/file_handler_info.cc", |
| 102 "manifest_handlers/file_handler_info.h", |
| 103 "manifest_handlers/icons_handler.cc", |
| 104 "manifest_handlers/icons_handler.h", |
| 105 "manifest_handlers/incognito_info.cc", |
| 106 "manifest_handlers/incognito_info.h", |
| 107 "manifest_handlers/kiosk_mode_info.cc", |
| 108 "manifest_handlers/kiosk_mode_info.h", |
| 109 "manifest_handlers/offline_enabled_info.cc", |
| 110 "manifest_handlers/offline_enabled_info.h", |
| 111 "manifest_handlers/permissions_parser.cc", |
| 112 "manifest_handlers/permissions_parser.h", |
| 113 "manifest_handlers/requirements_info.cc", |
| 114 "manifest_handlers/requirements_info.h", |
| 115 "manifest_handlers/sandboxed_page_info.cc", |
| 116 "manifest_handlers/sandboxed_page_info.h", |
| 117 "manifest_handlers/shared_module_info.cc", |
| 118 "manifest_handlers/shared_module_info.h", |
| 119 "manifest_handlers/web_accessible_resources_info.cc", |
| 120 "manifest_handlers/web_accessible_resources_info.h", |
| 121 "manifest_handlers/webview_info.cc", |
| 122 "manifest_handlers/webview_info.h", |
| 123 "message_bundle.cc", |
| 124 "message_bundle.h", |
| 125 "one_shot_event.cc", |
| 126 "one_shot_event.h", |
| 127 "permissions/api_permission.cc", |
| 128 "permissions/api_permission.h", |
| 129 "permissions/api_permission_set.cc", |
| 130 "permissions/api_permission_set.h", |
| 131 "permissions/base_set_operators.h", |
| 132 "permissions/extensions_api_permissions.cc", |
| 133 "permissions/extensions_api_permissions.h", |
| 134 "permissions/manifest_permission.cc", |
| 135 "permissions/manifest_permission.h", |
| 136 "permissions/manifest_permission_set.cc", |
| 137 "permissions/manifest_permission_set.h", |
| 138 "permissions/media_galleries_permission.cc", |
| 139 "permissions/media_galleries_permission.h", |
| 140 "permissions/media_galleries_permission_data.cc", |
| 141 "permissions/media_galleries_permission_data.h", |
| 142 "permissions/permission_message.cc", |
| 143 "permissions/permission_message.h", |
| 144 "permissions/permission_message_provider.cc", |
| 145 "permissions/permission_message_provider.h", |
| 146 "permissions/permission_message_util.cc", |
| 147 "permissions/permission_message_util.h", |
| 148 "permissions/permission_set.cc", |
| 149 "permissions/permission_set.h", |
| 150 "permissions/permissions_data.cc", |
| 151 "permissions/permissions_data.h", |
| 152 "permissions/permissions_info.cc", |
| 153 "permissions/permissions_info.h", |
| 154 "permissions/permissions_provider.h", |
| 155 "permissions/set_disjunction_permission.h", |
| 156 "permissions/settings_override_permission.cc", |
| 157 "permissions/settings_override_permission.h", |
| 158 "permissions/socket_permission.cc", |
| 159 "permissions/socket_permission.h", |
| 160 "permissions/socket_permission_data.cc", |
| 161 "permissions/socket_permission_data.h", |
| 162 "permissions/socket_permission_entry.cc", |
| 163 "permissions/socket_permission_entry.h", |
| 164 "permissions/usb_device_permission.cc", |
| 165 "permissions/usb_device_permission.h", |
| 166 "permissions/usb_device_permission_data.cc", |
| 167 "permissions/usb_device_permission_data.h", |
| 168 "stack_frame.cc", |
| 169 "stack_frame.h", |
| 170 "switches.cc", |
| 171 "switches.h", |
| 172 "url_pattern.cc", |
| 173 "url_pattern.h", |
| 174 "url_pattern_set.cc", |
| 175 "url_pattern_set.h", |
| 176 "user_script.cc", |
| 177 "user_script.h", |
| 178 "value_counter.cc", |
| 179 "value_counter.h", |
| 180 "view_type.cc", |
| 181 "view_type.h", |
| 182 ] |
| 183 |
| 184 deps = [ |
| 185 # TODO(benwells): figure out what to do with the api target and |
| 186 # api resources compiled into the chrome resource bundle. |
| 187 # http://crbug.com/162530 |
| 188 "//chrome:resources", |
| 189 "//components/url_matcher", |
| 190 "//content/public/common", |
| 191 "//crypto", |
| 192 "//extensions/common/api", |
| 193 "//extensions/strings", |
| 194 "//ipc", |
| 195 "//net", |
| 196 "//third_party/icu", |
| 197 "//third_party/re2", |
| 198 "//ui/base", |
| 199 "//ui/gfx/geometry", |
| 200 "//ui/gfx/ipc", |
| 201 "//url", |
| 202 ] |
| 203 |
| 204 if (enable_extensions) { |
| 205 sources -= [ |
| 206 "extension_api_stub.cc", |
| 207 ] |
| 208 |
| 209 deps += [ |
| 210 "//device/usb", |
| 211 ] |
| 212 } else { |
| 213 sources -= [ |
| 214 "api/messaging/message.h", |
| 215 "api/sockets/sockets_manifest_data.cc", |
| 216 "api/sockets/sockets_manifest_data.h", |
| 217 "api/sockets/sockets_manifest_handler.cc", |
| 218 "api/sockets/sockets_manifest_handler.h", |
| 219 "api/sockets/sockets_manifest_permission.cc", |
| 220 "api/sockets/sockets_manifest_permission.h", |
| 221 "extension_api.cc", |
| 222 "manifest_handlers/externally_connectable.cc", |
| 223 "manifest_handlers/externally_connectable.h", |
| 224 ] |
| 225 } |
| 226 |
| 227 if (is_win) { |
| 228 cflags = [ |
| 229 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 230 ] |
| 231 } |
| 232 } |
OLD | NEW |