1 # Copyright (c) 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.
8 'target_name': 'common',
9 'type': 'static_library',
11 'chrome_common_target': 1,
12 'enable_wexit_time_destructors': 1,
16 '<(SHARED_INTERMEDIATE_DIR)', # Needed by chrome_content_client.cc.
18 'direct_dependent_settings': {
24 # TODO(gregoryd): chrome_resources and chrome_strings could be
25 # shared with the 64-bit target, but it does not work due to a gyp
31 '<(DEPTH)/base/base.gyp:base',
32 '<(DEPTH)/base/base.gyp:base_i18n',
33 '<(DEPTH)/base/base.gyp:base_prefs',
34 '<(DEPTH)/base/base.gyp:base_static',
35 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
36 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
37 '<(DEPTH)/chrome/chrome_resources.gyp:theme_resources',
38 '<(DEPTH)/chrome/common_constants.gyp:common_constants',
39 '<(DEPTH)/components/components.gyp:breakpad_common',
40 '<(DEPTH)/components/components.gyp:visitedlink_common',
41 '<(DEPTH)/content/content.gyp:content_common',
42 '<(DEPTH)/net/net.gyp:net',
43 '<(DEPTH)/skia/skia.gyp:skia',
44 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
45 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
46 '<(DEPTH)/third_party/libxml/libxml.gyp:libxml',
47 '<(DEPTH)/third_party/mt19937ar/mt19937ar.gyp:mt19937ar',
48 '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite',
49 '<(DEPTH)/third_party/zlib/zlib.gyp:zip',
50 '<(DEPTH)/ui/ui.gyp:ui_resources',
51 '<(DEPTH)/url/url.gyp:url_lib',
52 '<(DEPTH)/webkit/common/user_agent/webkit_user_agent.gyp:user_agent',
55 '../apps/app_shim/app_shim_launch.h',
56 '../apps/app_shim/app_shim_messages.h',
57 '../extensions/common/constants.cc',
58 '../extensions/common/constants.h',
59 '../extensions/common/crx_file.cc',
60 '../extensions/common/crx_file.h',
61 '../extensions/common/draggable_region.cc',
62 '../extensions/common/draggable_region.h',
63 '../extensions/common/error_utils.cc',
64 '../extensions/common/error_utils.h',
65 '../extensions/common/event_filter.cc',
66 '../extensions/common/event_filter.h',
67 '../extensions/common/event_filtering_info.cc',
68 '../extensions/common/event_filtering_info.h',
69 '../extensions/common/event_matcher.cc',
70 '../extensions/common/event_matcher.h',
71 '../extensions/common/extension_paths.cc',
72 '../extensions/common/extension_paths.h',
73 '../extensions/common/extension_resource.cc',
74 '../extensions/common/extension_resource.h',
75 '../extensions/common/id_util.cc',
76 '../extensions/common/id_util.h',
77 '../extensions/common/install_warning.cc',
78 '../extensions/common/install_warning.h',
79 '../extensions/common/matcher/regex_set_matcher.cc',
80 '../extensions/common/matcher/regex_set_matcher.h',
81 '../extensions/common/matcher/string_pattern.cc',
82 '../extensions/common/matcher/string_pattern.h',
83 '../extensions/common/matcher/substring_set_matcher.cc',
84 '../extensions/common/matcher/substring_set_matcher.h',
85 '../extensions/common/matcher/url_matcher.cc',
86 '../extensions/common/matcher/url_matcher.h',
87 '../extensions/common/matcher/url_matcher_constants.cc',
88 '../extensions/common/matcher/url_matcher_constants.h',
89 '../extensions/common/matcher/url_matcher_factory.cc',
90 '../extensions/common/matcher/url_matcher_factory.h',
91 '../extensions/common/matcher/url_matcher_helpers.cc',
92 '../extensions/common/matcher/url_matcher_helpers.h',
93 '../extensions/common/one_shot_event.cc',
94 '../extensions/common/one_shot_event.h',
95 '../extensions/common/url_pattern.cc',
96 '../extensions/common/url_pattern.h',
97 '../extensions/common/url_pattern_set.cc',
98 '../extensions/common/url_pattern_set.h',
99 '../extensions/common/view_type.cc',
100 '../extensions/common/view_type.h',
101 'common/all_messages.h',
102 'common/attrition_experiments.h',
103 'common/auto_start_linux.cc',
104 'common/auto_start_linux.h',
105 'common/autocomplete_match_type.cc',
106 'common/autocomplete_match_type.h',
107 'common/automation_constants.cc',
108 'common/automation_constants.h',
109 'common/automation_id.cc',
110 'common/automation_id.h',
111 'common/automation_messages.cc',
112 'common/automation_messages.h',
113 'common/automation_messages_internal.h',
114 'common/badge_util.cc',
115 'common/badge_util.h',
116 'common/cancelable_task_tracker.cc',
117 'common/cancelable_task_tracker.h',
118 'common/child_process_logging.h',
119 'common/child_process_logging_mac.mm',
120 'common/child_process_logging_posix.cc',
121 'common/child_process_logging_win.cc',
122 'common/chrome_content_client.cc',
123 'common/chrome_content_client.h',
124 'common/chrome_content_client_constants.cc',
125 'common/chrome_content_client_ios.mm',
126 'common/chrome_notification_types.h',
127 'common/chrome_result_codes.h',
128 'common/chrome_process_type.h',
129 'common/chrome_sandbox_type_mac.h',
130 'common/chrome_utility_messages.h',
131 'common/chrome_version_info.cc',
132 'common/chrome_version_info_android.cc',
133 'common/chrome_version_info_chromeos.cc',
134 'common/chrome_version_info_posix.cc',
135 'common/chrome_version_info_mac.mm',
136 'common/chrome_version_info_win.cc',
137 'common/chrome_version_info.h',
138 'common/cloud_print/cloud_print_class_mac.h',
139 'common/cloud_print/cloud_print_class_mac.mm',
140 'common/cloud_print/cloud_print_constants.cc',
141 'common/cloud_print/cloud_print_constants.h',
142 'common/cloud_print/cloud_print_helpers.cc',
143 'common/cloud_print/cloud_print_helpers.h',
144 'common/cloud_print/cloud_print_proxy_info.cc',
145 'common/cloud_print/cloud_print_proxy_info.h',
146 'common/common_message_generator.cc',
147 'common/common_message_generator.h',
148 'common/common_param_traits.cc',
149 'common/common_param_traits.h',
150 'common/common_param_traits_macros.h',
151 'common/content_settings.cc',
152 'common/content_settings.h',
153 'common/content_settings_helper.cc',
154 'common/content_settings_helper.h',
155 'common/content_settings_pattern.cc',
156 'common/content_settings_pattern.h',
157 'common/content_settings_pattern_parser.cc',
158 'common/content_settings_pattern_parser.h',
159 'common/content_settings_types.h',
160 'common/crash_keys.cc',
161 'common/crash_keys.h',
162 'common/custom_handlers/protocol_handler.cc',
163 'common/custom_handlers/protocol_handler.h',
164 'common/descriptors_android.h',
165 'common/dump_without_crashing.cc',
166 'common/dump_without_crashing.h',
167 'common/extensions/api/commands/commands_handler.cc',
168 'common/extensions/api/commands/commands_handler.h',
169 'common/extensions/api/extension_action/action_info.cc',
170 'common/extensions/api/extension_action/action_info.h',
171 'common/extensions/api/extension_action/browser_action_handler.cc',
172 'common/extensions/api/extension_action/browser_action_handler.h',
173 'common/extensions/api/extension_action/page_action_handler.cc',
174 'common/extensions/api/extension_action/page_action_handler.h',
175 'common/extensions/api/extension_action/script_badge_handler.cc',
176 'common/extensions/api/extension_action/script_badge_handler.h',
177 'common/extensions/api/extension_api.cc',
178 'common/extensions/api/extension_api.h',
179 'common/extensions/api/extension_api_stub.cc',
180 'common/extensions/api/file_handlers/file_handlers_parser.cc',
181 'common/extensions/api/file_handlers/file_handlers_parser.h',
182 'common/extensions/api/i18n/default_locale_handler.cc',
183 'common/extensions/api/i18n/default_locale_handler.h',
184 'common/extensions/api/identity/oauth2_manifest_handler.cc',
185 'common/extensions/api/identity/oauth2_manifest_handler.h',
186 'common/extensions/api/input_ime/input_components_handler.cc',
187 'common/extensions/api/input_ime/input_components_handler.h',
188 'common/extensions/api/managed_mode_private/managed_mode_handler.cc',
189 'common/extensions/api/managed_mode_private/managed_mode_handler.h',
190 'common/extensions/api/omnibox/omnibox_handler.cc',
191 'common/extensions/api/omnibox/omnibox_handler.h',
192 'common/extensions/api/page_launcher/page_launcher_handler.cc',
193 'common/extensions/api/page_launcher/page_launcher_handler.h',
194 'common/extensions/api/plugins/plugins_handler.cc',
195 'common/extensions/api/plugins/plugins_handler.h',
196 'common/extensions/api/speech/tts_engine_manifest_handler.cc',
197 'common/extensions/api/speech/tts_engine_manifest_handler.h',
198 'common/extensions/api/spellcheck/spellcheck_handler.cc',
199 'common/extensions/api/spellcheck/spellcheck_handler.h',
200 'common/extensions/api/system_indicator/system_indicator_handler.cc',
201 'common/extensions/api/system_indicator/system_indicator_handler.h',
202 'common/extensions/background_info.cc',
203 'common/extensions/background_info.h',
204 'common/extensions/chrome_manifest_handlers.cc',
205 'common/extensions/chrome_manifest_handlers.h',
206 'common/extensions/command.cc',
207 'common/extensions/command.h',
208 'common/extensions/csp_handler.cc',
209 'common/extensions/csp_handler.h',
210 'common/extensions/csp_validator.cc',
211 'common/extensions/csp_validator.h',
212 'common/extensions/dom_action_types.h',
213 'common/extensions/extension.cc',
214 'common/extensions/extension.h',
215 'common/extensions/extension_constants.cc',
216 'common/extensions/extension_constants.h',
217 'common/extensions/extension_file_util.cc',
218 'common/extensions/extension_file_util.h',
219 'common/extensions/extension_icon_set.cc',
220 'common/extensions/extension_icon_set.h',
221 'common/extensions/extension_l10n_util.cc',
222 'common/extensions/extension_l10n_util.h',
223 'common/extensions/extension_localization_peer.cc',
224 'common/extensions/extension_localization_peer.h',
225 'common/extensions/extension_manifest_constants.cc',
226 'common/extensions/extension_manifest_constants.h',
227 'common/extensions/extension_messages.cc',
228 'common/extensions/extension_messages.h',
229 'common/extensions/extension_process_policy.cc',
230 'common/extensions/extension_process_policy.h',
231 'common/extensions/extension_set.cc',
232 'common/extensions/extension_set.h',
233 'common/extensions/feature_switch.cc',
234 'common/extensions/feature_switch.h',
235 'common/extensions/features/api_feature.cc',
236 'common/extensions/features/api_feature.h',
237 'common/extensions/features/base_feature_provider.cc',
238 'common/extensions/features/base_feature_provider.h',
239 'common/extensions/features/complex_feature.cc',
240 'common/extensions/features/complex_feature.h',
241 'common/extensions/features/feature.cc',
242 'common/extensions/features/feature.h',
243 'common/extensions/features/feature_provider.h',
244 'common/extensions/features/manifest_feature.cc',
245 'common/extensions/features/manifest_feature.h',
246 'common/extensions/features/permission_feature.cc',
247 'common/extensions/features/permission_feature.h',
248 'common/extensions/features/simple_feature.cc',
249 'common/extensions/features/simple_feature.h',
250 'common/extensions/incognito_handler.cc',
251 'common/extensions/incognito_handler.h',
252 'common/extensions/manifest.cc',
253 'common/extensions/manifest.h',
254 'common/extensions/manifest_handler.cc',
255 'common/extensions/manifest_handler.h',
256 'common/extensions/manifest_handler_helpers.cc',
257 'common/extensions/manifest_handler_helpers.h',
258 'common/extensions/manifest_handlers/app_isolation_info.cc',
259 'common/extensions/manifest_handlers/app_isolation_info.h',
260 'common/extensions/manifest_handlers/app_launch_info.cc',
261 'common/extensions/manifest_handlers/app_launch_info.h',
262 'common/extensions/manifest_handlers/content_scripts_handler.cc',
263 'common/extensions/manifest_handlers/content_scripts_handler.h',
264 'common/extensions/manifest_handlers/externally_connectable.cc',
265 'common/extensions/manifest_handlers/externally_connectable.h',
266 'common/extensions/manifest_handlers/icons_handler.cc',
267 'common/extensions/manifest_handlers/icons_handler.h',
268 'common/extensions/manifest_handlers/kiosk_enabled_info.cc',
269 'common/extensions/manifest_handlers/kiosk_enabled_info.h',
270 'common/extensions/manifest_handlers/nacl_modules_handler.cc',
271 'common/extensions/manifest_handlers/nacl_modules_handler.h',
272 'common/extensions/manifest_handlers/offline_enabled_info.cc',
273 'common/extensions/manifest_handlers/offline_enabled_info.h',
274 'common/extensions/manifest_handlers/requirements_handler.cc',
275 'common/extensions/manifest_handlers/requirements_handler.h',
276 'common/extensions/manifest_handlers/sandboxed_page_info.cc',
277 'common/extensions/manifest_handlers/sandboxed_page_info.h',
278 'common/extensions/manifest_handlers/shared_module_info.cc',
279 'common/extensions/manifest_handlers/shared_module_info.h',
280 'common/extensions/manifest_handlers/theme_handler.cc',
281 'common/extensions/manifest_handlers/theme_handler.h',
282 'common/extensions/manifest_url_handler.cc',
283 'common/extensions/manifest_url_handler.h',
284 'common/extensions/message_bundle.cc',
285 'common/extensions/message_bundle.h',
286 'common/extensions/mime_types_handler.cc',
287 'common/extensions/mime_types_handler.h',
288 'common/extensions/permissions/api_permission.cc',
289 'common/extensions/permissions/api_permission.h',
290 'common/extensions/permissions/api_permission_set.cc',
291 'common/extensions/permissions/api_permission_set.h',
292 'common/extensions/permissions/bluetooth_device_permission.cc',
293 'common/extensions/permissions/bluetooth_device_permission.h',
294 'common/extensions/permissions/bluetooth_device_permission_data.cc',
295 'common/extensions/permissions/bluetooth_device_permission_data.h',
296 'common/extensions/permissions/chrome_api_permissions.cc',
297 'common/extensions/permissions/chrome_api_permissions.h',
298 'common/extensions/permissions/media_galleries_permission.cc',
299 'common/extensions/permissions/media_galleries_permission.h',
300 'common/extensions/permissions/media_galleries_permission_data.cc',
301 'common/extensions/permissions/media_galleries_permission_data.h',
302 'common/extensions/permissions/permission_message.cc',
303 'common/extensions/permissions/permission_message.h',
304 'common/extensions/permissions/permission_set.cc',
305 'common/extensions/permissions/permission_set.h',
306 'common/extensions/permissions/permissions_data.cc',
307 'common/extensions/permissions/permissions_data.h',
308 'common/extensions/permissions/permissions_info.cc',
309 'common/extensions/permissions/permissions_info.h',
310 'common/extensions/permissions/set_disjunction_permission.h',
311 'common/extensions/permissions/socket_permission.cc',
312 'common/extensions/permissions/socket_permission.h',
313 'common/extensions/permissions/socket_permission_data.cc',
314 'common/extensions/permissions/socket_permission_data.h',
315 'common/extensions/permissions/usb_device_permission.cc',
316 'common/extensions/permissions/usb_device_permission.h',
317 'common/extensions/permissions/usb_device_permission_data.cc',
318 'common/extensions/permissions/usb_device_permission_data.h',
319 'common/extensions/sync_helper.cc',
320 'common/extensions/sync_helper.h',
321 'common/extensions/unpacker.cc',
322 'common/extensions/unpacker.h',
323 'common/extensions/update_manifest.cc',
324 'common/extensions/update_manifest.h',
325 'common/extensions/user_script.cc',
326 'common/extensions/user_script.h',
327 'common/extensions/value_counter.cc',
328 'common/extensions/value_counter.h',
329 'common/extensions/web_accessible_resources_handler.cc',
330 'common/extensions/web_accessible_resources_handler.h',
331 'common/external_ipc_fuzzer.h',
332 'common/external_ipc_fuzzer.cc',
333 'common/icon_with_badge_image_source.cc',
334 'common/icon_with_badge_image_source.h',
335 'common/instant_restricted_id_cache.h',
336 'common/instant_types.cc',
337 'common/instant_types.h',
338 'common/itunes_xml_utils.cc',
339 'common/itunes_xml_utils.h',
340 'common/json_schema/json_schema_constants.cc',
341 'common/json_schema/json_schema_constants.h',
342 'common/json_schema/json_schema_validator.cc',
343 'common/json_schema/json_schema_validator.h',
344 'common/localized_error.cc',
345 'common/localized_error.h',
346 'common/logging_chrome.cc',
347 'common/logging_chrome.h',
348 'common/mac/app_mode_common.h',
349 'common/mac/app_mode_common.mm',
350 'common/mac/cfbundle_blocker.h',
351 'common/mac/cfbundle_blocker.mm',
352 'common/mac/launchd.h',
353 'common/mac/launchd.mm',
354 'common/mac/nscoder_util.h',
355 'common/mac/nscoder_util.mm',
356 'common/mac/objc_method_swizzle.h',
357 'common/mac/objc_method_swizzle.mm',
358 'common/mac/objc_zombie.h',
359 'common/mac/objc_zombie.mm',
360 'common/media/webrtc_logging_messages.h',
361 'common/metrics/entropy_provider.cc',
362 'common/metrics/entropy_provider.h',
363 'common/metrics/metrics_log_base.cc',
364 'common/metrics/metrics_log_base.h',
365 'common/metrics/metrics_log_manager.cc',
366 'common/metrics/metrics_log_manager.h',
367 'common/metrics/metrics_service_base.cc',
368 'common/metrics/metrics_service_base.h',
369 'common/metrics/metrics_util.cc',
370 'common/metrics/metrics_util.h',
371 'common/metrics/variations/uniformity_field_trials.cc',
372 'common/metrics/variations/uniformity_field_trials.h',
373 'common/metrics/variations/variations_util.cc',
374 'common/metrics/variations/variations_util.h',
375 'common/multi_process_lock.h',
376 'common/multi_process_lock_linux.cc',
377 'common/multi_process_lock_mac.cc',
378 'common/multi_process_lock_win.cc',
379 'common/nacl_cmd_line.cc',
380 'common/nacl_cmd_line.h',
381 'common/nacl_host_messages.h',
382 'common/nacl_messages.cc',
383 'common/nacl_messages.h',
384 'common/nacl_types.cc',
385 'common/nacl_types.h',
386 'common/omaha_query_params/omaha_query_params.cc',
387 'common/omaha_query_params/omaha_query_params.h',
388 'common/omnibox_focus_state.h',
389 'common/one_click_signin_messages.h',
390 'common/partial_circular_buffer.cc',
391 'common/partial_circular_buffer.h',
392 'common/pepper_flash.cc',
393 'common/pepper_flash.h',
394 'common/pepper_permission_util.cc',
395 'common/pepper_permission_util.h',
396 'common/pref_names_util.cc',
397 'common/pref_names_util.h',
398 'common/print_messages.cc',
399 'common/print_messages.h',
400 'common/profiling.cc',
401 'common/profiling.h',
402 'common/ref_counted_util.h',
403 'common/render_messages.cc',
404 'common/render_messages.h',
405 'common/safe_browsing/download_protection_util.cc',
406 'common/safe_browsing/download_protection_util.h',
407 'common/safe_browsing/safebrowsing_messages.h',
408 'common/safe_browsing/zip_analyzer.cc',
409 'common/safe_browsing/zip_analyzer.h',
410 'common/search_provider.h',
411 'common/search_types.h',
412 'common/service_messages.h',
413 'common/service_process_util.cc',
414 'common/service_process_util.h',
415 'common/service_process_util_linux.cc',
416 'common/service_process_util_mac.mm',
417 'common/service_process_util_posix.cc',
418 'common/service_process_util_posix.h',
419 'common/service_process_util_win.cc',
420 'common/spellcheck_common.cc',
421 'common/spellcheck_common.h',
422 'common/spellcheck_marker.h',
423 'common/spellcheck_messages.h',
424 'common/spellcheck_result.h',
425 'common/startup_metric_utils.cc',
426 'common/startup_metric_utils.h',
427 'common/switch_utils.cc',
428 'common/switch_utils.h',
429 'common/thumbnail_score.cc',
430 'common/thumbnail_score.h',
431 'common/time_format.cc',
432 'common/time_format.h',
433 'common/translate/language_detection_details.cc',
434 'common/translate/language_detection_details.h',
435 'common/translate/translate_errors.h',
436 'common/translate/translate_util.cc',
437 'common/translate/translate_util.h',
438 'common/tts_messages.h',
439 'common/tts_utterance_request.cc',
440 'common/tts_utterance_request.h',
441 'common/url_constants.cc',
442 'common/url_constants.h',
443 'common/validation_message_messages.h',
444 'common/web_application_info.cc',
445 'common/web_application_info.h',
446 'common/web_resource/web_resource_unpacker.cc',
447 'common/web_resource/web_resource_unpacker.h',
448 'common/worker_thread_ticker.cc',
449 'common/worker_thread_ticker.h',
452 ['enable_extensions==1', {
454 'common/extensions/api/extension_api_stub.cc',
457 '../device/usb/usb.gyp:device_usb',
459 }, { # enable_extensions == 0
461 ['exclude', '^common/extensions/api/'],
462 ['include', 'common/extensions/api/extension_api_stub.cc'],
463 ['include', 'common/extensions/api/extension_action/action_info.cc'],
464 ['include', 'common/extensions/api/extension_action/action_info.h'],
465 ['include', 'common/extensions/api/extension_action/browser_action_handler.cc'],
466 ['include', 'common/extensions/api/extension_action/browser_action_handler.h'],
467 ['include', 'common/extensions/api/extension_action/page_action_handler.cc'],
468 ['include', 'common/extensions/api/extension_action/page_action_handler.h'],
469 ['include', 'common/extensions/api/i18n/default_locale_handler.cc'],
470 ['include', 'common/extensions/api/i18n/default_locale_handler.h'],
471 ['include', 'common/extensions/api/identity/oauth2_manifest_handler.cc'],
472 ['include', 'common/extensions/api/identity/oauth2_manifest_handler.h'],
473 ['include', 'common/extensions/api/plugins/plugins_handler.cc'],
474 ['include', 'common/extensions/api/plugins/plugins_handler.h'],
475 ['include', 'common/extensions/api/spellcheck/spellcheck_handler.cc',],
476 ['include', 'common/extensions/api/spellcheck/spellcheck_handler.h',],
477 ['include', 'common/extensions/api/managed_mode_private/managed_mode_handler.cc'],
478 ['include', 'common/extensions/api/managed_mode_private/managed_mode_handler.h'],
483 '<(DEPTH)/chrome/app/policy/cloud_policy_codegen.gyp:policy',
484 '<(DEPTH)/chrome/common/extensions/api/api.gyp:api',
485 '<(DEPTH)/components/components.gyp:autofill_core_common',
486 '<(DEPTH)/ipc/ipc.gyp:ipc',
487 '<(DEPTH)/printing/printing.gyp:printing',
488 '<(DEPTH)/third_party/adobe/flash/flash_player.gyp:flapper_version_h',
489 '<(DEPTH)/third_party/re2/re2.gyp:re2',
490 '<(DEPTH)/third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
491 '<(DEPTH)/webkit/support/webkit_support.gyp:glue',
495 ['exclude', '^common/child_process_'],
496 ['exclude', '^common/chrome_content_client\\.cc$'],
497 ['exclude', '^common/chrome_version_info_posix\\.cc$'],
498 ['exclude', '^common/common_message_generator\\.cc$'],
499 ['exclude', '^common/common_param_traits'],
500 ['exclude', '^common/custom_handlers/'],
501 ['exclude', '^common/extensions/'],
502 ['exclude', '^common/external_ipc_fuzzer\\.'],
503 ['exclude', '^common/logging_chrome\\.'],
504 ['exclude', '^common/multi_process_'],
505 ['exclude', '^common/nacl_'],
506 ['exclude', '^common/pepper_flash\\.'],
507 ['exclude', '^common/profiling\\.'],
508 ['exclude', '^common/service_process_util_'],
509 ['exclude', '^common/spellcheck_'],
510 ['exclude', '^common/validation_message_'],
511 ['exclude', '^common/web_apps\\.'],
512 # TODO(ios): Include files here as they are made to work; once
513 # everything is online, remove everything below here and just
514 # use the exclusions above.
515 ['exclude', '\\.(cc|mm)$'],
516 ['include', '_ios\\.(cc|mm)$'],
517 ['include', '(^|/)ios/'],
518 ['include', '^common/chrome_version_info\\.cc$'],
519 ['include', '^common/zip'],
522 '<(DEPTH)/breakpad/src',
527 ['exclude', '^common/chrome_version_info_posix.cc'],
528 ['exclude', '^common/service_'],
531 '<(DEPTH)/chrome/app/policy/cloud_policy_codegen.gyp:policy',
536 '<(DEPTH)/third_party/wtl/include',
539 'common/crash_keys.cc',
540 'common/crash_keys.h',
543 ['toolkit_uses_gtk == 1', {
545 '../build/linux/system.gyp:gtk',
547 'export_dependent_settings': [
548 '../third_party/sqlite/sqlite.gyp:sqlite',
561 'common/chrome_version_info_linux.cc',
566 '../third_party/mach_override/mach_override.gyp:mach_override',
569 '<(DEPTH)/breakpad/src',
570 '../third_party/GTM',
573 'common/child_process_logging_posix.cc',
574 'common/chrome_version_info_posix.cc',
579 '../remoting/remoting.gyp:remoting_client_plugin',
582 ['enable_automation==0', {
584 ['exclude', '^common/automation_']
587 ['use_system_nspr==1', {
589 '<(DEPTH)/base/third_party/nspr/nspr.gyp:nspr',
592 ['enable_webrtc==0', {
594 'common/media/webrtc_logging_messages.h',
598 'target_conditions': [
601 # Pull in specific Mac files for iOS (which have been filtered out
602 # by file name rules).
603 ['include', '^common/chrome_version_info_mac\\.mm$'],
604 ['include', '^common/mac/nscoder_util\\.'],
608 'export_dependent_settings': [
609 '../base/base.gyp:base',
614 'target_name': 'common_version',
617 ['os_posix == 1 and OS != "mac" and OS != "ios"', {
618 'direct_dependent_settings': {
620 '<(SHARED_INTERMEDIATE_DIR)',
623 # Because posix_version generates a header, we must set the
624 # hard_dependency flag.
625 'hard_dependency': 1,
628 'action_name': 'posix_version',
631 '<(DEPTH)/build/util/LASTCHANGE',
632 'version_py_path': 'tools/build/version.py',
633 'version_path': 'VERSION',
634 'template_input_path': 'common/chrome_version_info_posix.h.version',
637 [ 'branding == "Chrome"', {
640 'app/theme/google_chrome/BRANDING',
642 }, { # else branding!="Chrome"
645 'app/theme/chromium/BRANDING',
650 '<(template_input_path)',
653 '<(lastchange_path)',
656 '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version_info_posix.h',
660 '<(version_py_path)',
661 '-f', '<(version_path)',
662 '-f', '<(branding_path)',
663 '-f', '<(lastchange_path)',
664 '<(template_input_path)',
667 'message': 'Generating version information',
674 'target_name': 'common_net',
675 'type': 'static_library',
677 'common/net/net_error_tracker.cc',
678 'common/net/net_error_tracker.h',
679 'common/net/net_resource_provider.cc',
680 'common/net/net_resource_provider.h',
681 'common/net/predictor_common.h',
682 'common/net/url_util.cc',
683 'common/net/url_util.h',
684 'common/net/x509_certificate_model.cc',
685 'common/net/x509_certificate_model_nss.cc',
686 'common/net/x509_certificate_model_openssl.cc',
687 'common/net/x509_certificate_model.h',
690 '<(DEPTH)/base/base.gyp:base',
691 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
692 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
693 '<(DEPTH)/crypto/crypto.gyp:crypto',
694 '<(DEPTH)/net/net.gyp:net_resources',
695 '<(DEPTH)/net/net.gyp:net',
696 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
697 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
702 '<(DEPTH)/gpu/gpu.gyp:gpu_ipc',
706 'common/net/net_resource_provider.cc',
707 'common/net/x509_certificate_model.cc',
710 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
712 '../build/linux/system.gyp:ssl',
716 ['os_posix != 1 or OS == "mac" or OS == "ios"', {
718 'common/net/x509_certificate_model_nss.cc',
719 'common/net/x509_certificate_model_openssl.cc',
723 ['OS == "android"', {
725 '../third_party/openssl/openssl.gyp:openssl',
731 'common/net/x509_certificate_model_nss.cc',
734 { # else !use_openssl: remove the unneeded files
736 'common/net/x509_certificate_model_openssl.cc',
741 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
742 'msvs_disabled_warnings': [4267, ],
748 # Protobuf compiler / generator for the safebrowsing client
749 # model proto and the client-side detection (csd) request
751 'target_name': 'safe_browsing_proto',
752 'type': 'static_library',
754 'common/safe_browsing/client_model.proto',
755 'common/safe_browsing/csd.proto'
758 'proto_in_dir': 'common/safe_browsing',
759 'proto_out_dir': 'chrome/common/safe_browsing',
761 'includes': [ '../build/protoc.gypi' ],
764 # Protobuf compiler / generator for UMA (User Metrics Analysis).
765 'target_name': 'metrics_proto',
766 'type': 'static_library',
768 'common/metrics/proto/chrome_experiments.proto',
769 'common/metrics/proto/chrome_user_metrics_extension.proto',
770 'common/metrics/proto/histogram_event.proto',
771 'common/metrics/proto/omnibox_event.proto',
772 'common/metrics/proto/perf_data.proto',
773 'common/metrics/proto/permuted_entropy_cache.proto',
774 'common/metrics/proto/profiler_event.proto',
775 'common/metrics/proto/system_profile.proto',
776 'common/metrics/proto/user_action_event.proto',
779 'proto_in_dir': 'common/metrics/proto',
780 'proto_out_dir': 'chrome/common/metrics/proto',
782 'includes': [ '../build/protoc.gypi' ],