1 # Copyright (c) 2012 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 # TODO(thakis): Turn this on. Blocked on g_log_function_mapping in
13 # ipc_message_macros.h. http://crbug.com/101600
14 #'enable_wexit_time_destructors': 1,
18 '<(SHARED_INTERMEDIATE_DIR)', # Needed by chrome_content_client.cc.
20 'direct_dependent_settings': {
26 # TODO(gregoryd): chrome_resources and chrome_strings could be
27 # shared with the 64-bit target, but it does not work due to a gyp
32 '<(DEPTH)/base/base.gyp:base',
33 '<(DEPTH)/base/base.gyp:base_i18n',
34 '<(DEPTH)/base/base.gyp:base_static',
35 '<(DEPTH)/build/temp_gyp/googleurl.gyp:googleurl',
36 '<(DEPTH)/chrome/app/policy/cloud_policy_codegen.gyp:policy',
37 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
38 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
39 '<(DEPTH)/chrome/chrome_resources.gyp:theme_resources',
40 '<(DEPTH)/chrome/common/extensions/api/api.gyp:api',
41 '<(DEPTH)/chrome/common_constants.gyp:common_constants',
42 '<(DEPTH)/content/content.gyp:content_common',
43 '<(DEPTH)/ipc/ipc.gyp:ipc',
44 '<(DEPTH)/net/net.gyp:net',
45 '<(DEPTH)/printing/printing.gyp:printing',
46 '<(DEPTH)/skia/skia.gyp:skia',
47 '<(DEPTH)/third_party/adobe/flash/flash_player.gyp:flapper_version_h',
48 '<(DEPTH)/third_party/bzip2/bzip2.gyp:bzip2',
49 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
50 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
51 '<(DEPTH)/third_party/libxml/libxml.gyp:libxml',
52 '<(DEPTH)/third_party/mt19937ar/mt19937ar.gyp:mt19937ar',
53 '<(DEPTH)/third_party/re2/re2.gyp:re2',
54 '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite',
55 '<(DEPTH)/third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
56 '<(DEPTH)/third_party/zlib/zlib.gyp:zlib',
57 '<(DEPTH)/ui/ui.gyp:ui_resources',
58 '<(DEPTH)/webkit/support/webkit_support.gyp:glue',
59 '<(DEPTH)/webkit/support/webkit_support.gyp:user_agent',
62 'common/all_messages.h',
63 'common/attrition_experiments.h',
64 'common/auto_start_linux.cc',
65 'common/auto_start_linux.h',
66 'common/autofill_messages.h',
67 'common/automation_constants.cc',
68 'common/automation_constants.h',
69 'common/automation_events.cc',
70 'common/automation_events.h',
71 'common/automation_id.cc',
72 'common/automation_id.h',
73 'common/automation_messages.cc',
74 'common/automation_messages.h',
75 'common/automation_messages_internal.h',
76 'common/badge_util.cc',
77 'common/badge_util.h',
78 'common/bzip2_error_handler.cc',
79 'common/child_process_logging.h',
80 'common/child_process_logging_mac.mm',
81 'common/child_process_logging_posix.cc',
82 'common/child_process_logging_win.cc',
83 'common/chrome_content_client.cc',
84 'common/chrome_content_client.h',
85 'common/chrome_notification_types.h',
86 'common/chrome_result_codes.h',
87 'common/chrome_sandbox_type_mac.h',
88 'common/chrome_utility_messages.h',
89 'common/chrome_version_info.cc',
90 'common/chrome_version_info_chromeos.cc',
91 'common/chrome_version_info_posix.cc',
92 'common/chrome_version_info_mac.mm',
93 'common/chrome_version_info_win.cc',
94 'common/chrome_version_info.h',
95 'common/cloud_print/cloud_print_class_mac.h',
96 'common/cloud_print/cloud_print_class_mac.mm',
97 'common/cloud_print/cloud_print_helpers.cc',
98 'common/cloud_print/cloud_print_helpers.h',
99 'common/cloud_print/cloud_print_proxy_info.cc',
100 'common/cloud_print/cloud_print_proxy_info.h',
101 'common/common_message_generator.cc',
102 'common/common_message_generator.h',
103 'common/common_param_traits.cc',
104 'common/common_param_traits.h',
105 'common/common_param_traits_macros.h',
106 'common/content_settings.cc',
107 'common/content_settings.h',
108 'common/content_settings_helper.cc',
109 'common/content_settings_helper.h',
110 'common/content_settings_pattern.cc',
111 'common/content_settings_pattern.h',
112 'common/content_settings_pattern_parser.cc',
113 'common/content_settings_pattern_parser.h',
114 'common/content_settings_types.h',
115 'common/custom_handlers/protocol_handler.cc',
116 'common/custom_handlers/protocol_handler.h',
117 'common/descriptors_android.h',
118 'common/extensions/command.cc',
119 'common/extensions/command.h',
120 'common/extensions/csp_validator.cc',
121 'common/extensions/csp_validator.h',
122 'common/extensions/draggable_region.cc',
123 'common/extensions/draggable_region.h',
124 'common/extensions/event_filter.cc',
125 'common/extensions/event_filter.h',
126 'common/extensions/event_filtering_info.cc',
127 'common/extensions/event_filtering_info.h',
128 'common/extensions/event_matcher.cc',
129 'common/extensions/event_matcher.h',
130 'common/extensions/extension.cc',
131 'common/extensions/extension.h',
132 'common/extensions/extension_constants.cc',
133 'common/extensions/extension_constants.h',
134 'common/extensions/extension_error_utils.cc',
135 'common/extensions/extension_error_utils.h',
136 'common/extensions/extension_file_util.cc',
137 'common/extensions/extension_file_util.h',
138 'common/extensions/extension_icon_set.cc',
139 'common/extensions/extension_icon_set.h',
140 'common/extensions/extension_l10n_util.cc',
141 'common/extensions/extension_l10n_util.h',
142 'common/extensions/extension_localization_peer.cc',
143 'common/extensions/extension_localization_peer.h',
144 'common/extensions/extension_manifest_constants.cc',
145 'common/extensions/extension_manifest_constants.h',
146 'common/extensions/extension_messages.cc',
147 'common/extensions/extension_messages.h',
148 'common/extensions/extension_process_policy.cc',
149 'common/extensions/extension_process_policy.h',
150 'common/extensions/extension_resource.cc',
151 'common/extensions/extension_resource.h',
152 'common/extensions/extension_set.cc',
153 'common/extensions/extension_set.h',
154 'common/extensions/feature_switch.cc',
155 'common/extensions/feature_switch.h',
156 'common/extensions/features/feature.cc',
157 'common/extensions/features/feature.h',
158 'common/extensions/features/feature_provider.h',
159 'common/extensions/features/manifest_feature.cc',
160 'common/extensions/features/manifest_feature.h',
161 'common/extensions/features/permission_feature.cc',
162 'common/extensions/features/permission_feature.h',
163 'common/extensions/features/simple_feature_provider.cc',
164 'common/extensions/features/simple_feature_provider.h',
165 'common/extensions/file_browser_handler.cc',
166 'common/extensions/file_browser_handler.h',
167 'common/extensions/manifest.cc',
168 'common/extensions/manifest.h',
169 'common/extensions/matcher/regex_set_matcher.cc',
170 'common/extensions/matcher/regex_set_matcher.h',
171 'common/extensions/matcher/string_pattern.cc',
172 'common/extensions/matcher/string_pattern.h',
173 'common/extensions/matcher/substring_set_matcher.cc',
174 'common/extensions/matcher/substring_set_matcher.h',
175 'common/extensions/matcher/url_matcher.cc',
176 'common/extensions/matcher/url_matcher.h',
177 'common/extensions/matcher/url_matcher_constants.cc',
178 'common/extensions/matcher/url_matcher_constants.h',
179 'common/extensions/matcher/url_matcher_factory.cc',
180 'common/extensions/matcher/url_matcher_factory.h',
181 'common/extensions/matcher/url_matcher_helpers.cc',
182 'common/extensions/matcher/url_matcher_helpers.h',
183 'common/extensions/message_bundle.cc',
184 'common/extensions/message_bundle.h',
185 'common/extensions/permissions/api_permission.cc',
186 'common/extensions/permissions/api_permission.h',
187 'common/extensions/permissions/api_permission_set.cc',
188 'common/extensions/permissions/api_permission_set.h',
189 'common/extensions/permissions/filesystem_permission.h',
190 'common/extensions/permissions/filesystem_permission.cc',
191 'common/extensions/permissions/media_galleries_permission.h',
192 'common/extensions/permissions/media_galleries_permission.cc',
193 'common/extensions/permissions/permission_message.cc',
194 'common/extensions/permissions/permission_message.h',
195 'common/extensions/permissions/permission_set.cc',
196 'common/extensions/permissions/permission_set.h',
197 'common/extensions/permissions/permissions_info.cc',
198 'common/extensions/permissions/permissions_info.h',
199 'common/extensions/permissions/socket_permission.cc',
200 'common/extensions/permissions/socket_permission.h',
201 'common/extensions/permissions/socket_permission_data.cc',
202 'common/extensions/permissions/socket_permission_data.h',
203 'common/extensions/unpacker.cc',
204 'common/extensions/unpacker.h',
205 'common/extensions/update_manifest.cc',
206 'common/extensions/update_manifest.h',
207 'common/extensions/url_pattern.cc',
208 'common/extensions/url_pattern.h',
209 'common/extensions/url_pattern_set.cc',
210 'common/extensions/url_pattern_set.h',
211 'common/extensions/user_script.cc',
212 'common/extensions/user_script.h',
213 'common/extensions/value_counter.cc',
214 'common/extensions/value_counter.h',
215 'common/extensions/api/extension_api.cc',
216 'common/extensions/api/extension_api.h',
217 'common/external_ipc_fuzzer.h',
218 'common/external_ipc_fuzzer.cc',
219 'common/favicon_url.cc',
220 'common/favicon_url.h',
221 'common/form_data.cc',
222 'common/form_data.h',
223 'common/form_data_predictions.cc',
224 'common/form_data_predictions.h',
225 'common/form_field_data.cc',
226 'common/form_field_data.h',
227 'common/form_field_data_predictions.cc',
228 'common/form_field_data_predictions.h',
229 'common/icon_messages.h',
230 'common/important_file_writer.cc',
231 'common/important_file_writer.h',
232 'common/instant_types.cc',
233 'common/instant_types.h',
234 'common/json_pref_store.cc',
235 'common/json_pref_store.h',
236 'common/json_schema_constants.cc',
237 'common/json_schema_constants.h',
238 'common/json_schema_validator.cc',
239 'common/json_schema_validator.h',
240 'common/jstemplate_builder.cc',
241 'common/jstemplate_builder.h',
242 'common/localized_error.cc',
243 'common/localized_error.h',
244 'common/logging_chrome.cc',
245 'common/logging_chrome.h',
246 'common/mac/app_mode_common.h',
247 'common/mac/app_mode_common.mm',
248 'common/mac/cfbundle_blocker.h',
249 'common/mac/cfbundle_blocker.mm',
250 'common/mac/launchd.h',
251 'common/mac/launchd.mm',
252 'common/mac/objc_method_swizzle.h',
253 'common/mac/objc_method_swizzle.mm',
254 'common/mac/objc_zombie.h',
255 'common/mac/objc_zombie.mm',
256 'common/metrics/entropy_provider.cc',
257 'common/metrics/entropy_provider.h',
258 'common/metrics/metrics_log_base.cc',
259 'common/metrics/metrics_log_base.h',
260 'common/metrics/metrics_log_manager.cc',
261 'common/metrics/metrics_log_manager.h',
262 'common/metrics/metrics_service_base.cc',
263 'common/metrics/metrics_service_base.h',
264 'common/metrics/metrics_util.cc',
265 'common/metrics/metrics_util.h',
266 'common/metrics/variations/variations_util.cc',
267 'common/metrics/variations/variations_util.h',
268 'common/multi_process_lock.h',
269 'common/multi_process_lock_linux.cc',
270 'common/multi_process_lock_mac.cc',
271 'common/multi_process_lock_win.cc',
272 'common/nacl_cmd_line.cc',
273 'common/nacl_cmd_line.h',
274 'common/nacl_messages.cc',
275 'common/nacl_messages.h',
276 'common/nacl_types.cc',
277 'common/nacl_types.h',
278 'common/password_form_fill_data.cc',
279 'common/password_form_fill_data.h',
280 'common/password_generation_util.cc',
281 'common/password_generation_util.h',
282 'common/pepper_flash.cc',
283 'common/pepper_flash.h',
284 'common/persistent_pref_store.h',
285 'common/pref_store.cc',
286 'common/pref_store.h',
287 'common/print_messages.cc',
288 'common/print_messages.h',
289 'common/profiling.cc',
290 'common/profiling.h',
291 'common/ref_counted_util.h',
292 'common/render_messages.cc',
293 'common/render_messages.h',
294 'common/safe_browsing/safebrowsing_messages.h',
295 'common/search_provider.h',
296 'common/service_messages.h',
297 'common/service_process_util.cc',
298 'common/service_process_util.h',
299 'common/service_process_util_linux.cc',
300 'common/service_process_util_mac.mm',
301 'common/service_process_util_posix.cc',
302 'common/service_process_util_posix.h',
303 'common/service_process_util_win.cc',
304 'common/spellcheck_common.cc',
305 'common/spellcheck_common.h',
306 'common/spellcheck_messages.h',
307 'common/spellcheck_result.h',
308 'common/startup_metric_utils.cc',
309 'common/startup_metric_utils.h',
310 'common/switch_utils.cc',
311 'common/switch_utils.h',
312 'common/thumbnail_score.cc',
313 'common/thumbnail_score.h',
314 'common/time_format.cc',
315 'common/time_format.h',
316 'common/url_constants.cc',
317 'common/url_constants.h',
318 'common/view_type.cc',
319 'common/view_type.h',
320 'common/visitedlink_common.cc',
321 'common/visitedlink_common.h',
322 'common/web_apps.cc',
324 'common/web_resource/web_resource_unpacker.cc',
325 'common/web_resource/web_resource_unpacker.h',
326 'common/worker_thread_ticker.cc',
327 'common/worker_thread_ticker.h',
328 'common/zip.cc', # Requires zlib directly.
330 'common/zip_internal.cc',
331 'common/zip_internal.h',
332 'common/zip_reader.cc',
333 'common/zip_reader.h',
338 ['exclude', '^common/service_'],
343 '<(DEPTH)/third_party/wtl/include',
346 ['toolkit_uses_gtk == 1', {
348 '../build/linux/system.gyp:gtk',
350 'export_dependent_settings': [
351 '../third_party/sqlite/sqlite.gyp:sqlite',
362 ['OS=="linux" and selinux==1', {
364 '../build/linux/system.gyp:selinux',
369 'common/chrome_version_info_linux.cc',
374 '../third_party/mach_override/mach_override.gyp:mach_override',
377 '../third_party/GTM',
380 'common/child_process_logging_posix.cc',
381 'common/chrome_version_info_posix.cc',
386 '../remoting/remoting.gyp:remoting_client_plugin',
390 'export_dependent_settings': [
391 '../base/base.gyp:base',
396 'target_name': 'common_version',
399 ['os_posix == 1 and OS != "mac"', {
400 'direct_dependent_settings': {
402 '<(SHARED_INTERMEDIATE_DIR)',
405 # Because posix_version generates a header, we must set the
406 # hard_dependency flag.
407 'hard_dependency': 1,
410 'action_name': 'posix_version',
413 '<(DEPTH)/build/util/LASTCHANGE',
414 'version_py_path': 'tools/build/version.py',
415 'version_path': 'VERSION',
416 'template_input_path': 'common/chrome_version_info_posix.h.version',
419 [ 'branding == "Chrome"', {
422 'app/theme/google_chrome/BRANDING',
424 }, { # else branding!="Chrome"
427 'app/theme/chromium/BRANDING',
432 '<(template_input_path)',
435 '<(lastchange_path)',
438 '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version_info_posix.h',
442 '<(version_py_path)',
443 '-f', '<(version_path)',
444 '-f', '<(branding_path)',
445 '-f', '<(lastchange_path)',
446 '<(template_input_path)',
449 'message': 'Generating version information',
456 'target_name': 'common_net',
457 'type': 'static_library',
459 'common/net/net_resource_provider.cc',
460 'common/net/net_resource_provider.h',
461 'common/net/predictor_common.h',
462 'common/net/url_util.cc',
463 'common/net/url_util.h',
464 'common/net/x509_certificate_model.cc',
465 'common/net/x509_certificate_model_nss.cc',
466 'common/net/x509_certificate_model_openssl.cc',
467 'common/net/x509_certificate_model.h',
470 '<(DEPTH)/base/base.gyp:base',
471 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
472 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
473 '<(DEPTH)/crypto/crypto.gyp:crypto',
474 '<(DEPTH)/gpu/gpu.gyp:gpu_ipc',
475 '<(DEPTH)/net/net.gyp:net_resources',
476 '<(DEPTH)/net/net.gyp:net',
477 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
478 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
481 ['os_posix == 1 and OS != "mac" and OS != "android"', {
483 '../build/linux/system.gyp:ssl',
487 ['os_posix != 1 or OS == "mac"', {
489 'common/net/x509_certificate_model_nss.cc',
490 'common/net/x509_certificate_model_openssl.cc',
494 ['OS == "android"', {
496 '../third_party/openssl/openssl.gyp:openssl',
502 'common/net/x509_certificate_model_nss.cc',
505 { # else !use_openssl: remove the unneeded files
507 'common/net/x509_certificate_model_openssl.cc',
514 # Protobuf compiler / generator for the safebrowsing client
515 # model proto and the client-side detection (csd) request
517 'target_name': 'safe_browsing_proto',
518 'type': 'static_library',
520 'common/safe_browsing/client_model.proto',
521 'common/safe_browsing/csd.proto'
524 'proto_in_dir': 'common/safe_browsing',
525 'proto_out_dir': 'chrome/common/safe_browsing',
527 'includes': [ '../build/protoc.gypi' ],
530 # Protobuf compiler / generator for UMA (User Metrics Analysis).
531 'target_name': 'metrics_proto',
532 'type': 'static_library',
534 'common/metrics/proto/chrome_experiments.proto',
535 'common/metrics/proto/chrome_user_metrics_extension.proto',
536 'common/metrics/proto/histogram_event.proto',
537 'common/metrics/proto/omnibox_event.proto',
538 'common/metrics/proto/profiler_event.proto',
539 'common/metrics/proto/system_profile.proto',
540 'common/metrics/proto/user_action_event.proto',
543 'proto_in_dir': 'common/metrics/proto',
544 'proto_out_dir': 'chrome/common/metrics/proto',
546 'includes': [ '../build/protoc.gypi' ],