Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 1 | # Copyright 2013 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 | { |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 6 | 'variables': { |
| 7 | 'chromium_code': 1, |
| 8 | }, |
Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 9 | 'targets': [ |
| 10 | { |
| 11 | 'target_name': 'extensions_common', |
| 12 | 'type': 'static_library', |
| 13 | 'dependencies': [ |
Torne (Richard Coles) | 0f1bc08 | 2013-11-06 12:27:47 +0000 | [diff] [blame] | 14 | # TODO(benwells): figure out what to do with the api target and |
| 15 | # api resources compiled into the chrome resource bundle. |
| 16 | # http://crbug.com/162530 |
| 17 | '../chrome/chrome_resources.gyp:chrome_resources', |
| 18 | '../chrome/common/extensions/api/api.gyp:api', |
Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 19 | '../content/content.gyp:content_common', |
| 20 | '../third_party/re2/re2.gyp:re2', |
| 21 | ], |
| 22 | 'include_dirs': [ |
| 23 | '..', |
| 24 | '<(INTERMEDIATE_DIR)', |
| 25 | ], |
| 26 | 'sources': [ |
| 27 | 'common/crx_file.cc', |
| 28 | 'common/crx_file.h', |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 29 | 'common/csp_validator.cc', |
| 30 | 'common/csp_validator.h', |
Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 31 | 'common/draggable_region.cc', |
| 32 | 'common/draggable_region.h', |
| 33 | 'common/error_utils.cc', |
| 34 | 'common/error_utils.h', |
| 35 | 'common/event_filter.cc', |
| 36 | 'common/event_filter.h', |
| 37 | 'common/event_filtering_info.cc', |
| 38 | 'common/event_filtering_info.h', |
| 39 | 'common/event_matcher.cc', |
| 40 | 'common/event_matcher.h', |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 41 | 'common/extension.cc', |
| 42 | 'common/extension.h', |
Torne (Richard Coles) | 0f1bc08 | 2013-11-06 12:27:47 +0000 | [diff] [blame] | 43 | 'common/extension_api.cc', |
| 44 | 'common/extension_api.h', |
| 45 | 'common/extension_api_stub.cc', |
Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 46 | 'common/extension_paths.cc', |
| 47 | 'common/extension_paths.h', |
| 48 | 'common/extension_resource.cc', |
| 49 | 'common/extension_resource.h', |
| 50 | 'common/extension_urls.cc', |
| 51 | 'common/extension_urls.h', |
| 52 | 'common/extensions_client.cc', |
| 53 | 'common/extensions_client.h', |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 54 | 'common/feature_switch.cc', |
| 55 | 'common/feature_switch.h', |
Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 56 | 'common/features/feature.cc', |
| 57 | 'common/features/feature.h', |
| 58 | 'common/features/feature_provider.cc', |
| 59 | 'common/features/feature_provider.h', |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 60 | 'common/file_util.cc', |
| 61 | 'common/file_util.h', |
Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 62 | 'common/id_util.cc', |
| 63 | 'common/id_util.h', |
| 64 | 'common/install_warning.cc', |
| 65 | 'common/install_warning.h', |
| 66 | 'common/manifest.cc', |
| 67 | 'common/manifest.h', |
| 68 | 'common/manifest_constants.cc', |
| 69 | 'common/manifest_constants.h', |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 70 | 'common/manifest_handler.cc', |
| 71 | 'common/manifest_handler.h', |
| 72 | 'common/manifest_handlers/background_info.cc', |
| 73 | 'common/manifest_handlers/background_info.h', |
| 74 | 'common/manifest_handlers/csp_info.cc', |
| 75 | 'common/manifest_handlers/csp_info.h', |
| 76 | 'common/manifest_handlers/incognito_info.cc', |
| 77 | 'common/manifest_handlers/incognito_info.h', |
| 78 | 'common/manifest_handlers/kiosk_mode_info.cc', |
| 79 | 'common/manifest_handlers/kiosk_mode_info.h', |
| 80 | 'common/manifest_handlers/offline_enabled_info.cc', |
| 81 | 'common/manifest_handlers/offline_enabled_info.h', |
| 82 | 'common/manifest_handlers/requirements_info.h', |
| 83 | 'common/manifest_handlers/requirements_info.cc', |
| 84 | 'common/manifest_handlers/sandboxed_page_info.cc', |
| 85 | 'common/manifest_handlers/sandboxed_page_info.h', |
| 86 | 'common/manifest_handlers/shared_module_info.cc', |
| 87 | 'common/manifest_handlers/shared_module_info.h', |
Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 88 | 'common/matcher/regex_set_matcher.cc', |
| 89 | 'common/matcher/regex_set_matcher.h', |
| 90 | 'common/matcher/string_pattern.cc', |
| 91 | 'common/matcher/string_pattern.h', |
| 92 | 'common/matcher/substring_set_matcher.cc', |
| 93 | 'common/matcher/substring_set_matcher.h', |
| 94 | 'common/matcher/url_matcher.cc', |
| 95 | 'common/matcher/url_matcher.h', |
| 96 | 'common/matcher/url_matcher_constants.cc', |
| 97 | 'common/matcher/url_matcher_constants.h', |
| 98 | 'common/matcher/url_matcher_factory.cc', |
| 99 | 'common/matcher/url_matcher_factory.h', |
| 100 | 'common/matcher/url_matcher_helpers.cc', |
| 101 | 'common/matcher/url_matcher_helpers.h', |
| 102 | 'common/one_shot_event.cc', |
| 103 | 'common/one_shot_event.h', |
Torne (Richard Coles) | 4e180b6 | 2013-10-18 15:46:22 +0100 | [diff] [blame] | 104 | 'common/permissions/api_permission.cc', |
| 105 | 'common/permissions/api_permission.h', |
| 106 | 'common/permissions/api_permission_set.cc', |
| 107 | 'common/permissions/api_permission_set.h', |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 108 | 'common/permissions/base_set_operators.h', |
| 109 | 'common/permissions/manifest_permission.cc', |
| 110 | 'common/permissions/manifest_permission.h', |
| 111 | 'common/permissions/manifest_permission_set.cc', |
| 112 | 'common/permissions/manifest_permission_set.h', |
Torne (Richard Coles) | 4e180b6 | 2013-10-18 15:46:22 +0100 | [diff] [blame] | 113 | 'common/permissions/permission_message.cc', |
| 114 | 'common/permissions/permission_message.h', |
Torne (Richard Coles) | 8bcbed8 | 2013-10-22 16:41:35 +0100 | [diff] [blame] | 115 | 'common/permissions/permission_message_provider.cc', |
| 116 | 'common/permissions/permission_message_provider.h', |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 117 | 'common/permissions/permission_set.cc', |
| 118 | 'common/permissions/permission_set.h', |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 119 | 'common/permissions/permissions_data.cc', |
| 120 | 'common/permissions/permissions_data.h', |
Torne (Richard Coles) | 4e180b6 | 2013-10-18 15:46:22 +0100 | [diff] [blame] | 121 | 'common/permissions/permissions_info.cc', |
| 122 | 'common/permissions/permissions_info.h', |
Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 123 | 'common/permissions/permissions_provider.h', |
| 124 | 'common/stack_frame.cc', |
| 125 | 'common/stack_frame.h', |
| 126 | 'common/switches.cc', |
| 127 | 'common/switches.h', |
| 128 | 'common/url_pattern.cc', |
| 129 | 'common/url_pattern.h', |
| 130 | 'common/url_pattern_set.cc', |
| 131 | 'common/url_pattern_set.h', |
| 132 | 'common/user_script.cc', |
| 133 | 'common/user_script.h', |
| 134 | 'common/view_type.cc', |
| 135 | 'common/view_type.h', |
| 136 | ], |
| 137 | # Disable c4267 warnings until we fix size_t to int truncations. |
| 138 | 'msvs_disabled_warnings': [ 4267, ], |
Torne (Richard Coles) | 0f1bc08 | 2013-11-06 12:27:47 +0000 | [diff] [blame] | 139 | 'conditions': [ |
| 140 | ['enable_extensions==1', { |
| 141 | 'sources!': [ |
| 142 | 'common/extension_api_stub.cc', |
| 143 | ], |
| 144 | }, { # enable_extensions == 0 |
| 145 | 'sources!': [ |
| 146 | 'common/extension_api.cc', |
| 147 | ], |
| 148 | }], |
| 149 | ], |
Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 150 | }, |
| 151 | { |
| 152 | 'target_name': 'extensions_browser', |
| 153 | 'type': 'static_library', |
| 154 | 'dependencies': [ |
| 155 | 'extensions_common', |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 156 | # TODO(jamescook|derat): Pull strings into extensions module. |
| 157 | '../chrome/chrome_resources.gyp:chrome_strings', |
| 158 | '../chrome/common/extensions/api/api.gyp:api', |
Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 159 | '../content/content.gyp:content_browser', |
| 160 | '../skia/skia.gyp:skia', |
| 161 | ], |
| 162 | 'include_dirs': [ |
| 163 | '..', |
| 164 | '<(INTERMEDIATE_DIR)', |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 165 | # Needed to access generated API headers. |
| 166 | '<(SHARED_INTERMEDIATE_DIR)', |
| 167 | # Needed for grit. |
| 168 | '<(SHARED_INTERMEDIATE_DIR)/chrome', |
Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 169 | ], |
| 170 | 'sources': [ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 171 | 'browser/admin_policy.cc', |
| 172 | 'browser/admin_policy.h', |
| 173 | 'browser/app_sorting.h', |
| 174 | 'browser/event_listener_map.cc', |
| 175 | 'browser/event_listener_map.h', |
| 176 | 'browser/event_router.cc', |
| 177 | 'browser/event_router.h', |
Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 178 | 'browser/extension_prefs_scope.h', |
| 179 | 'browser/extension_error.cc', |
| 180 | 'browser/extension_error.h', |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 181 | 'browser/extension_function.cc', |
| 182 | 'browser/extension_function.h', |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 183 | 'browser/extensions_browser_client.cc', |
| 184 | 'browser/extensions_browser_client.h', |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 185 | 'browser/external_provider_interface.h', |
| 186 | 'browser/info_map.cc', |
| 187 | 'browser/info_map.h', |
Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 188 | 'browser/file_highlighter.cc', |
| 189 | 'browser/file_highlighter.h', |
| 190 | 'browser/file_reader.cc', |
| 191 | 'browser/file_reader.h', |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 192 | 'browser/lazy_background_task_queue.cc', |
| 193 | 'browser/lazy_background_task_queue.h', |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 194 | 'browser/management_policy.cc', |
| 195 | 'browser/management_policy.h', |
| 196 | 'browser/pending_extension_info.cc', |
| 197 | 'browser/pending_extension_info.h', |
| 198 | 'browser/pending_extension_manager.cc', |
| 199 | 'browser/pending_extension_manager.h', |
Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 200 | 'browser/pref_names.cc', |
| 201 | 'browser/pref_names.h', |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 202 | 'browser/process_manager.cc', |
| 203 | 'browser/process_manager.h', |
| 204 | 'browser/process_map.cc', |
| 205 | 'browser/process_map.h', |
| 206 | 'browser/quota_service.cc', |
| 207 | 'browser/quota_service.h', |
Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 208 | 'browser/view_type_utils.cc', |
| 209 | 'browser/view_type_utils.h', |
| 210 | ], |
| 211 | # Disable c4267 warnings until we fix size_t to int truncations. |
| 212 | 'msvs_disabled_warnings': [ 4267, ], |
| 213 | }, |
| 214 | ] |
| 215 | } |