OLD | NEW |
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/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//extensions/extensions.gni") | |
7 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
8 | 7 |
9 source_set("common_constants") { | 8 source_set("common_constants") { |
10 sources = | 9 sources = [ |
11 rebase_path(extensions_gypi_values.extensions_common_constants_sources, | 10 "constants.cc", |
12 ".", | 11 "constants.h", |
13 "//extensions") | 12 ] |
14 | 13 |
15 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 14 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
16 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 15 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
17 } | 16 } |
18 | 17 |
19 if (enable_extensions) { | 18 if (enable_extensions) { |
20 mojom("mojo") { | 19 mojom("mojo") { |
21 sources = rebase_path(extensions_gypi_values.extensions_common_mojo_sources, | 20 sources = [ |
22 ".", | 21 "mojo/keep_alive.mojom", |
23 "//extensions") | 22 "mojo/stash.mojom", |
| 23 ] |
24 if (proprietary_codecs && enable_wifi_display) { | 24 if (proprietary_codecs && enable_wifi_display) { |
25 wifi_display_sources = rebase_path( | 25 sources += [ "mojo/wifi_display_session_service.mojom" ] |
26 extensions_gypi_values.extensions_common_mojo_sources_wifi_display
, | |
27 ".", | |
28 "//extensions") | |
29 sources += wifi_display_sources | |
30 } | 26 } |
31 | 27 |
32 use_new_wrapper_types = false | 28 use_new_wrapper_types = false |
33 } | 29 } |
34 | 30 |
35 # GYP version: extensions/extensions.gyp:extensions_common | 31 # GYP version: extensions/extensions.gyp:extensions_common |
36 # This must be a static library because extensions common depends on | 32 # This must be a static library because extensions common depends on |
37 # GetTrustedICAPublicKey in extensions/browser which isn't always linked | 33 # GetTrustedICAPublicKey in extensions/browser which isn't always linked |
38 # in. TODO(brettw): This reverse dependency should be fixed. | 34 # in. TODO(brettw): This reverse dependency should be fixed. |
39 static_library("common") { | 35 static_library("common") { |
40 sources = rebase_path(extensions_gypi_values.extensions_common_sources, | 36 sources = [ |
41 ".", | 37 "api/bluetooth/bluetooth_manifest_data.cc", |
42 "//extensions") | 38 "api/bluetooth/bluetooth_manifest_data.h", |
| 39 "api/bluetooth/bluetooth_manifest_handler.cc", |
| 40 "api/bluetooth/bluetooth_manifest_handler.h", |
| 41 "api/bluetooth/bluetooth_manifest_permission.cc", |
| 42 "api/bluetooth/bluetooth_manifest_permission.h", |
| 43 "api/declarative/declarative_manifest_data.cc", |
| 44 "api/declarative/declarative_manifest_data.h", |
| 45 "api/declarative/declarative_manifest_handler.cc", |
| 46 "api/declarative/declarative_manifest_handler.h", |
| 47 "api/messaging/message.h", |
| 48 "api/printer_provider/usb_printer_manifest_data.cc", |
| 49 "api/printer_provider/usb_printer_manifest_data.h", |
| 50 "api/printer_provider/usb_printer_manifest_handler.cc", |
| 51 "api/printer_provider/usb_printer_manifest_handler.h", |
| 52 "api/sockets/sockets_manifest_data.cc", |
| 53 "api/sockets/sockets_manifest_data.h", |
| 54 "api/sockets/sockets_manifest_handler.cc", |
| 55 "api/sockets/sockets_manifest_handler.h", |
| 56 "api/sockets/sockets_manifest_permission.cc", |
| 57 "api/sockets/sockets_manifest_permission.h", |
| 58 "common_manifest_handlers.cc", |
| 59 "common_manifest_handlers.h", |
| 60 "csp_validator.cc", |
| 61 "csp_validator.h", |
| 62 "dom_action_types.h", |
| 63 "draggable_region.cc", |
| 64 "draggable_region.h", |
| 65 "error_utils.cc", |
| 66 "error_utils.h", |
| 67 "event_filter.cc", |
| 68 "event_filter.h", |
| 69 "event_filtering_info.cc", |
| 70 "event_filtering_info.h", |
| 71 "event_matcher.cc", |
| 72 "event_matcher.h", |
| 73 "extension.cc", |
| 74 "extension.h", |
| 75 "extension_api.cc", |
| 76 "extension_api.h", |
| 77 "extension_icon_set.cc", |
| 78 "extension_icon_set.h", |
| 79 "extension_id.h", |
| 80 "extension_l10n_util.cc", |
| 81 "extension_l10n_util.h", |
| 82 "extension_message_generator.cc", |
| 83 "extension_message_generator.h", |
| 84 "extension_messages.cc", |
| 85 "extension_messages.h", |
| 86 "extension_paths.cc", |
| 87 "extension_paths.h", |
| 88 "extension_resource.cc", |
| 89 "extension_resource.h", |
| 90 "extension_set.cc", |
| 91 "extension_set.h", |
| 92 "extension_urls.cc", |
| 93 "extension_urls.h", |
| 94 "extension_utility_messages.h", |
| 95 "extensions_client.cc", |
| 96 "extensions_client.h", |
| 97 "feature_switch.cc", |
| 98 "feature_switch.h", |
| 99 "features/api_feature.h", |
| 100 "features/base_feature_provider.cc", |
| 101 "features/base_feature_provider.h", |
| 102 "features/behavior_feature.cc", |
| 103 "features/behavior_feature.h", |
| 104 "features/complex_feature.cc", |
| 105 "features/complex_feature.h", |
| 106 "features/feature.cc", |
| 107 "features/feature.h", |
| 108 "features/feature_channel.cc", |
| 109 "features/feature_channel.h", |
| 110 "features/feature_provider.cc", |
| 111 "features/feature_provider.h", |
| 112 "features/feature_util.cc", |
| 113 "features/feature_util.h", |
| 114 "features/json_feature_provider_source.cc", |
| 115 "features/json_feature_provider_source.h", |
| 116 "features/manifest_feature.cc", |
| 117 "features/manifest_feature.h", |
| 118 "features/permission_feature.cc", |
| 119 "features/permission_feature.h", |
| 120 "features/simple_feature.cc", |
| 121 "features/simple_feature.h", |
| 122 "file_util.cc", |
| 123 "file_util.h", |
| 124 "guest_view/extensions_guest_view_messages.h", |
| 125 "host_id.cc", |
| 126 "host_id.h", |
| 127 "image_util.cc", |
| 128 "image_util.h", |
| 129 "install_warning.cc", |
| 130 "install_warning.h", |
| 131 "manifest.cc", |
| 132 "manifest.h", |
| 133 "manifest_constants.cc", |
| 134 "manifest_constants.h", |
| 135 "manifest_handler.cc", |
| 136 "manifest_handler.h", |
| 137 "manifest_handler_helpers.cc", |
| 138 "manifest_handler_helpers.h", |
| 139 "manifest_handlers/app_isolation_info.cc", |
| 140 "manifest_handlers/app_isolation_info.h", |
| 141 "manifest_handlers/background_info.cc", |
| 142 "manifest_handlers/background_info.h", |
| 143 "manifest_handlers/content_capabilities_handler.cc", |
| 144 "manifest_handlers/content_capabilities_handler.h", |
| 145 "manifest_handlers/csp_info.cc", |
| 146 "manifest_handlers/csp_info.h", |
| 147 "manifest_handlers/default_locale_handler.cc", |
| 148 "manifest_handlers/default_locale_handler.h", |
| 149 "manifest_handlers/externally_connectable.cc", |
| 150 "manifest_handlers/externally_connectable.h", |
| 151 "manifest_handlers/file_handler_info.cc", |
| 152 "manifest_handlers/file_handler_info.h", |
| 153 "manifest_handlers/icons_handler.cc", |
| 154 "manifest_handlers/icons_handler.h", |
| 155 "manifest_handlers/incognito_info.cc", |
| 156 "manifest_handlers/incognito_info.h", |
| 157 "manifest_handlers/kiosk_mode_info.cc", |
| 158 "manifest_handlers/kiosk_mode_info.h", |
| 159 "manifest_handlers/launcher_page_info.cc", |
| 160 "manifest_handlers/launcher_page_info.h", |
| 161 "manifest_handlers/mime_types_handler.cc", |
| 162 "manifest_handlers/mime_types_handler.h", |
| 163 "manifest_handlers/oauth2_manifest_handler.cc", |
| 164 "manifest_handlers/oauth2_manifest_handler.h", |
| 165 "manifest_handlers/offline_enabled_info.cc", |
| 166 "manifest_handlers/offline_enabled_info.h", |
| 167 "manifest_handlers/options_page_info.cc", |
| 168 "manifest_handlers/options_page_info.h", |
| 169 "manifest_handlers/permissions_parser.cc", |
| 170 "manifest_handlers/permissions_parser.h", |
| 171 "manifest_handlers/requirements_info.cc", |
| 172 "manifest_handlers/requirements_info.h", |
| 173 "manifest_handlers/sandboxed_page_info.cc", |
| 174 "manifest_handlers/sandboxed_page_info.h", |
| 175 "manifest_handlers/shared_module_info.cc", |
| 176 "manifest_handlers/shared_module_info.h", |
| 177 "manifest_handlers/web_accessible_resources_info.cc", |
| 178 "manifest_handlers/web_accessible_resources_info.h", |
| 179 "manifest_handlers/webview_info.cc", |
| 180 "manifest_handlers/webview_info.h", |
| 181 "manifest_url_handlers.cc", |
| 182 "manifest_url_handlers.h", |
| 183 "message_bundle.cc", |
| 184 "message_bundle.h", |
| 185 "one_shot_event.cc", |
| 186 "one_shot_event.h", |
| 187 "permissions/api_permission.cc", |
| 188 "permissions/api_permission.h", |
| 189 "permissions/api_permission_set.cc", |
| 190 "permissions/api_permission_set.h", |
| 191 "permissions/base_set_operators.h", |
| 192 "permissions/extensions_api_permissions.cc", |
| 193 "permissions/extensions_api_permissions.h", |
| 194 "permissions/manifest_permission.cc", |
| 195 "permissions/manifest_permission.h", |
| 196 "permissions/manifest_permission_set.cc", |
| 197 "permissions/manifest_permission_set.h", |
| 198 "permissions/media_galleries_permission.cc", |
| 199 "permissions/media_galleries_permission.h", |
| 200 "permissions/media_galleries_permission_data.cc", |
| 201 "permissions/media_galleries_permission_data.h", |
| 202 "permissions/permission_message.cc", |
| 203 "permissions/permission_message.h", |
| 204 "permissions/permission_message_provider.cc", |
| 205 "permissions/permission_message_provider.h", |
| 206 "permissions/permission_message_util.cc", |
| 207 "permissions/permission_message_util.h", |
| 208 "permissions/permission_set.cc", |
| 209 "permissions/permission_set.h", |
| 210 "permissions/permissions_data.cc", |
| 211 "permissions/permissions_data.h", |
| 212 "permissions/permissions_info.cc", |
| 213 "permissions/permissions_info.h", |
| 214 "permissions/permissions_provider.h", |
| 215 "permissions/set_disjunction_permission.h", |
| 216 "permissions/settings_override_permission.cc", |
| 217 "permissions/settings_override_permission.h", |
| 218 "permissions/socket_permission.cc", |
| 219 "permissions/socket_permission.h", |
| 220 "permissions/socket_permission_data.cc", |
| 221 "permissions/socket_permission_data.h", |
| 222 "permissions/socket_permission_entry.cc", |
| 223 "permissions/socket_permission_entry.h", |
| 224 "permissions/usb_device_permission.cc", |
| 225 "permissions/usb_device_permission.h", |
| 226 "permissions/usb_device_permission_data.cc", |
| 227 "permissions/usb_device_permission_data.h", |
| 228 "stack_frame.cc", |
| 229 "stack_frame.h", |
| 230 "switches.cc", |
| 231 "switches.h", |
| 232 "update_manifest.cc", |
| 233 "update_manifest.h", |
| 234 "url_pattern.cc", |
| 235 "url_pattern.h", |
| 236 "url_pattern_set.cc", |
| 237 "url_pattern_set.h", |
| 238 "user_script.cc", |
| 239 "user_script.h", |
| 240 "value_builder.cc", |
| 241 "value_builder.h", |
| 242 "value_counter.cc", |
| 243 "value_counter.h", |
| 244 "view_type.cc", |
| 245 "view_type.h", |
| 246 ] |
43 | 247 |
44 configs += [ | 248 configs += [ |
45 "//build/config:precompiled_headers", | 249 "//build/config:precompiled_headers", |
46 | 250 |
47 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 251 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
48 "//build/config/compiler:no_size_t_to_int_warning", | 252 "//build/config/compiler:no_size_t_to_int_warning", |
49 ] | 253 ] |
50 | 254 |
51 public_deps = [ | 255 public_deps = [ |
52 ":common_constants", | 256 ":common_constants", |
(...skipping 24 matching lines...) Expand all Loading... |
77 "//third_party/re2", | 281 "//third_party/re2", |
78 "//ui/base", | 282 "//ui/base", |
79 "//ui/gfx/geometry", | 283 "//ui/gfx/geometry", |
80 "//ui/gfx/ipc", | 284 "//ui/gfx/ipc", |
81 "//ui/gfx/ipc/geometry", | 285 "//ui/gfx/ipc/geometry", |
82 "//ui/gfx/ipc/skia", | 286 "//ui/gfx/ipc/skia", |
83 "//url", | 287 "//url", |
84 ] | 288 ] |
85 | 289 |
86 if (enable_nacl) { | 290 if (enable_nacl) { |
87 nacl_sources = | 291 sources += [ |
88 rebase_path(extensions_gypi_values.extensions_common_sources_nacl, | 292 "manifest_handlers/nacl_modules_handler.cc", |
89 ".", | 293 "manifest_handlers/nacl_modules_handler.h", |
90 "//extensions") | 294 ] |
91 sources += nacl_sources | |
92 } | 295 } |
93 } | 296 } |
94 | 297 |
95 source_set("unit_tests") { | 298 source_set("unit_tests") { |
96 testonly = true | 299 testonly = true |
97 sources = [ | 300 sources = [ |
98 "api/declarative/declarative_manifest_unittest.cc", | 301 "api/declarative/declarative_manifest_unittest.cc", |
99 "api/printer_provider/usb_printer_manifest_unittest.cc", | 302 "api/printer_provider/usb_printer_manifest_unittest.cc", |
100 "api/sockets/sockets_manifest_permission_unittest.cc", | 303 "api/sockets/sockets_manifest_permission_unittest.cc", |
101 "csp_validator_unittest.cc", | 304 "csp_validator_unittest.cc", |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 "//extensions/strings", | 351 "//extensions/strings", |
149 "//ipc", | 352 "//ipc", |
150 "//testing/gmock", | 353 "//testing/gmock", |
151 "//testing/gtest", | 354 "//testing/gtest", |
152 "//ui/base", | 355 "//ui/base", |
153 "//ui/gfx", | 356 "//ui/gfx", |
154 "//url", | 357 "//url", |
155 ] | 358 ] |
156 } | 359 } |
157 } # enable_extensions | 360 } # enable_extensions |
OLD | NEW |