| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 { | 5 { |
| 6 'target_defaults': { | |
| 7 'variables': { | |
| 8 'chrome_common_target': 0, | |
| 9 }, | |
| 10 'target_conditions': [ | |
| 11 ['chrome_common_target==1', { | |
| 12 'include_dirs': [ | |
| 13 '..', | |
| 14 ], | |
| 15 'conditions': [ | |
| 16 ['OS=="win"', { | |
| 17 'include_dirs': [ | |
| 18 '<(DEPTH)/third_party/wtl/include', | |
| 19 ], | |
| 20 }], | |
| 21 ], | |
| 22 'sources': [ | |
| 23 # .cc, .h, and .mm files under chrome/common that are used on all | |
| 24 # platforms, including both 32-bit and 64-bit Windows. | |
| 25 # Test files are not included. | |
| 26 'common/about_handler.cc', | |
| 27 'common/about_handler.h', | |
| 28 'common/attrition_experiments.h', | |
| 29 'common/auto_start_linux.cc', | |
| 30 'common/auto_start_linux.h', | |
| 31 'common/autofill_messages.h', | |
| 32 'common/child_process_logging.h', | |
| 33 'common/child_process_logging_linux.cc', | |
| 34 'common/child_process_logging_mac.mm', | |
| 35 'common/child_process_logging_win.cc', | |
| 36 'common/chrome_notification_types.h', | |
| 37 'common/chrome_version_info.cc', | |
| 38 'common/chrome_version_info_linux.cc', | |
| 39 'common/chrome_version_info_mac.mm', | |
| 40 'common/chrome_version_info_win.cc', | |
| 41 'common/chrome_version_info.h', | |
| 42 'common/content_settings.cc', | |
| 43 'common/content_settings.h', | |
| 44 'common/content_settings_helper.cc', | |
| 45 'common/content_settings_helper.h', | |
| 46 'common/content_settings_types.h', | |
| 47 'common/external_ipc_fuzzer.h', | |
| 48 'common/external_ipc_fuzzer.cc', | |
| 49 'common/guid.cc', | |
| 50 'common/guid.h', | |
| 51 'common/guid_posix.cc', | |
| 52 'common/guid_win.cc', | |
| 53 'common/icon_messages.h', | |
| 54 'common/instant_types.h', | |
| 55 'common/logging_chrome.cc', | |
| 56 'common/logging_chrome.h', | |
| 57 'common/metrics_helpers.cc', | |
| 58 'common/metrics_helpers.h', | |
| 59 'common/multi_process_lock.h', | |
| 60 'common/multi_process_lock_linux.cc', | |
| 61 'common/multi_process_lock_mac.cc', | |
| 62 'common/multi_process_lock_win.cc', | |
| 63 'common/nacl_cmd_line.cc', | |
| 64 'common/nacl_cmd_line.h', | |
| 65 'common/nacl_messages.cc', | |
| 66 'common/nacl_messages.h', | |
| 67 'common/nacl_types.h', | |
| 68 'common/profiling.cc', | |
| 69 'common/profiling.h', | |
| 70 'common/ref_counted_util.h', | |
| 71 'common/safe_browsing/safebrowsing_messages.h', | |
| 72 'common/switch_utils.cc', | |
| 73 'common/switch_utils.h', | |
| 74 'common/time_format.cc', | |
| 75 'common/time_format.h', | |
| 76 ], | |
| 77 }], | |
| 78 ], | |
| 79 }, | |
| 80 'targets': [ | 6 'targets': [ |
| 81 { | 7 { |
| 82 'target_name': 'common', | 8 'target_name': 'common', |
| 83 'type': 'static_library', | 9 'type': 'static_library', |
| 84 'variables': { | 10 'variables': { |
| 85 'chrome_common_target': 1, | 11 'chrome_common_target': 1, |
| 86 }, | 12 }, |
| 87 # TODO(gregoryd): This could be shared with the 64-bit target, but | 13 'include_dirs': [ |
| 88 # it does not work due to a gyp issue. | 14 '..', |
| 15 ], |
| 89 'direct_dependent_settings': { | 16 'direct_dependent_settings': { |
| 90 'include_dirs': [ | 17 'include_dirs': [ |
| 91 '..', | 18 '..', |
| 92 ], | 19 ], |
| 93 }, | 20 }, |
| 94 'dependencies': [ | 21 'dependencies': [ |
| 95 # TODO(gregoryd): chrome_resources and chrome_strings could be | 22 # TODO(gregoryd): chrome_resources and chrome_strings could be |
| 96 # shared with the 64-bit target, but it does not work due to a gyp | 23 # shared with the 64-bit target, but it does not work due to a gyp |
| 97 # issue. | 24 # issue. |
| 98 'app/policy/cloud_policy_codegen.gyp:policy', | 25 'app/policy/cloud_policy_codegen.gyp:policy', |
| (...skipping 17 matching lines...) Expand all Loading... |
| 116 '../third_party/icu/icu.gyp:icui18n', | 43 '../third_party/icu/icu.gyp:icui18n', |
| 117 '../third_party/icu/icu.gyp:icuuc', | 44 '../third_party/icu/icu.gyp:icuuc', |
| 118 '../third_party/libxml/libxml.gyp:libxml', | 45 '../third_party/libxml/libxml.gyp:libxml', |
| 119 '../third_party/sqlite/sqlite.gyp:sqlite', | 46 '../third_party/sqlite/sqlite.gyp:sqlite', |
| 120 '../third_party/zlib/zlib.gyp:zlib', | 47 '../third_party/zlib/zlib.gyp:zlib', |
| 121 '../ui/ui.gyp:ui_resources', | 48 '../ui/ui.gyp:ui_resources', |
| 122 '../ui/ui.gyp:ui_resources_standard', | 49 '../ui/ui.gyp:ui_resources_standard', |
| 123 '../webkit/support/webkit_support.gyp:glue', | 50 '../webkit/support/webkit_support.gyp:glue', |
| 124 ], | 51 ], |
| 125 'sources': [ | 52 'sources': [ |
| 126 # .cc, .h, and .mm files under chrome/common that are not required for | 53 'common/about_handler.cc', |
| 127 # building 64-bit Windows targets. Test files are not included. | 54 'common/about_handler.h', |
| 55 'common/attrition_experiments.h', |
| 56 'common/auto_start_linux.cc', |
| 57 'common/auto_start_linux.h', |
| 58 'common/autofill_messages.h', |
| 128 'common/automation_constants.cc', | 59 'common/automation_constants.cc', |
| 129 'common/automation_constants.h', | 60 'common/automation_constants.h', |
| 130 'common/automation_messages.cc', | 61 'common/automation_messages.cc', |
| 131 'common/automation_messages.h', | 62 'common/automation_messages.h', |
| 132 'common/automation_messages_internal.h', | 63 'common/automation_messages_internal.h', |
| 133 'common/badge_util.cc', | 64 'common/badge_util.cc', |
| 134 'common/badge_util.h', | 65 'common/badge_util.h', |
| 135 'common/bzip2_error_handler.cc', | 66 'common/bzip2_error_handler.cc', |
| 67 'common/child_process_logging.h', |
| 68 'common/child_process_logging_linux.cc', |
| 69 'common/child_process_logging_mac.mm', |
| 70 'common/child_process_logging_win.cc', |
| 136 'common/chrome_content_client.cc', | 71 'common/chrome_content_client.cc', |
| 137 'common/chrome_content_client.h', | 72 'common/chrome_content_client.h', |
| 138 'common/chrome_content_plugin_client.cc', | 73 'common/chrome_content_plugin_client.cc', |
| 139 'common/chrome_content_plugin_client.h', | 74 'common/chrome_content_plugin_client.h', |
| 75 'common/chrome_notification_types.h', |
| 140 'common/chrome_plugin_messages.h', | 76 'common/chrome_plugin_messages.h', |
| 77 'common/chrome_version_info.cc', |
| 78 'common/chrome_version_info_linux.cc', |
| 79 'common/chrome_version_info_mac.mm', |
| 80 'common/chrome_version_info_win.cc', |
| 81 'common/chrome_version_info.h', |
| 141 'common/cloud_print/cloud_print_proxy_info.cc', | 82 'common/cloud_print/cloud_print_proxy_info.cc', |
| 142 'common/cloud_print/cloud_print_proxy_info.h', | 83 'common/cloud_print/cloud_print_proxy_info.h', |
| 143 'common/common_api.h', | 84 'common/common_api.h', |
| 144 'common/common_message_generator.cc', | 85 'common/common_message_generator.cc', |
| 145 'common/common_message_generator.h', | 86 'common/common_message_generator.h', |
| 146 'common/common_param_traits.cc', | 87 'common/common_param_traits.cc', |
| 147 'common/common_param_traits.h', | 88 'common/common_param_traits.h', |
| 89 'common/content_settings.cc', |
| 90 'common/content_settings.h', |
| 91 'common/content_settings_helper.cc', |
| 92 'common/content_settings_helper.h', |
| 93 'common/content_settings_types.h', |
| 148 'common/custom_handlers/protocol_handler.cc', | 94 'common/custom_handlers/protocol_handler.cc', |
| 149 'common/custom_handlers/protocol_handler.h', | 95 'common/custom_handlers/protocol_handler.h', |
| 150 'common/default_plugin.cc', | 96 'common/default_plugin.cc', |
| 151 'common/default_plugin.h', | 97 'common/default_plugin.h', |
| 152 'common/extensions/extension.cc', | 98 'common/extensions/extension.cc', |
| 153 'common/extensions/extension.h', | 99 'common/extensions/extension.h', |
| 154 'common/extensions/extension_action.cc', | 100 'common/extensions/extension_action.cc', |
| 155 'common/extensions/extension_action.h', | 101 'common/extensions/extension_action.h', |
| 156 'common/extensions/extension_constants.cc', | 102 'common/extensions/extension_constants.cc', |
| 157 'common/extensions/extension_constants.h', | 103 'common/extensions/extension_constants.h', |
| (...skipping 25 matching lines...) Expand all Loading... |
| 183 'common/extensions/file_browser_handler.cc', | 129 'common/extensions/file_browser_handler.cc', |
| 184 'common/extensions/file_browser_handler.h', | 130 'common/extensions/file_browser_handler.h', |
| 185 'common/extensions/update_manifest.cc', | 131 'common/extensions/update_manifest.cc', |
| 186 'common/extensions/update_manifest.h', | 132 'common/extensions/update_manifest.h', |
| 187 'common/extensions/url_pattern.cc', | 133 'common/extensions/url_pattern.cc', |
| 188 'common/extensions/url_pattern.h', | 134 'common/extensions/url_pattern.h', |
| 189 'common/extensions/url_pattern_set.cc', | 135 'common/extensions/url_pattern_set.cc', |
| 190 'common/extensions/url_pattern_set.h', | 136 'common/extensions/url_pattern_set.h', |
| 191 'common/extensions/user_script.cc', | 137 'common/extensions/user_script.cc', |
| 192 'common/extensions/user_script.h', | 138 'common/extensions/user_script.h', |
| 139 'common/external_ipc_fuzzer.h', |
| 140 'common/external_ipc_fuzzer.cc', |
| 193 'common/favicon_url.cc', | 141 'common/favicon_url.cc', |
| 194 'common/favicon_url.h', | 142 'common/favicon_url.h', |
| 143 'common/guid.cc', |
| 144 'common/guid.h', |
| 145 'common/guid_posix.cc', |
| 146 'common/guid_win.cc', |
| 147 'common/icon_messages.h', |
| 195 'common/important_file_writer.cc', | 148 'common/important_file_writer.cc', |
| 196 'common/important_file_writer.h', | 149 'common/important_file_writer.h', |
| 150 'common/instant_types.h', |
| 197 'common/json_pref_store.cc', | 151 'common/json_pref_store.cc', |
| 198 'common/json_pref_store.h', | 152 'common/json_pref_store.h', |
| 199 'common/json_schema_validator.cc', | 153 'common/json_schema_validator.cc', |
| 200 'common/json_schema_validator.h', | 154 'common/json_schema_validator.h', |
| 201 'common/jstemplate_builder.cc', | 155 'common/jstemplate_builder.cc', |
| 202 'common/jstemplate_builder.h', | 156 'common/jstemplate_builder.h', |
| 157 'common/logging_chrome.cc', |
| 158 'common/logging_chrome.h', |
| 203 'common/mac/app_mode_common.h', | 159 'common/mac/app_mode_common.h', |
| 204 'common/mac/app_mode_common.mm', | 160 'common/mac/app_mode_common.mm', |
| 205 'common/mac/cfbundle_blocker.h', | 161 'common/mac/cfbundle_blocker.h', |
| 206 'common/mac/cfbundle_blocker.mm', | 162 'common/mac/cfbundle_blocker.mm', |
| 207 'common/mac/launchd.h', | 163 'common/mac/launchd.h', |
| 208 'common/mac/launchd.mm', | 164 'common/mac/launchd.mm', |
| 209 'common/mac/objc_method_swizzle.h', | 165 'common/mac/objc_method_swizzle.h', |
| 210 'common/mac/objc_method_swizzle.mm', | 166 'common/mac/objc_method_swizzle.mm', |
| 211 'common/mac/objc_zombie.h', | 167 'common/mac/objc_zombie.h', |
| 212 'common/mac/objc_zombie.mm', | 168 'common/mac/objc_zombie.mm', |
| 169 'common/metrics_helpers.cc', |
| 170 'common/metrics_helpers.h', |
| 171 'common/multi_process_lock.h', |
| 172 'common/multi_process_lock_linux.cc', |
| 173 'common/multi_process_lock_mac.cc', |
| 174 'common/multi_process_lock_win.cc', |
| 175 'common/nacl_cmd_line.cc', |
| 176 'common/nacl_cmd_line.h', |
| 177 'common/nacl_messages.cc', |
| 178 'common/nacl_messages.h', |
| 179 'common/nacl_types.h', |
| 213 'common/libxml_utils.cc', | 180 'common/libxml_utils.cc', |
| 214 'common/libxml_utils.h', | 181 'common/libxml_utils.h', |
| 215 'common/native_window_notification_source.h', | 182 'common/native_window_notification_source.h', |
| 216 'common/persistent_pref_store.h', | 183 'common/persistent_pref_store.h', |
| 217 'common/pref_store.cc', | 184 'common/pref_store.cc', |
| 218 'common/pref_store.h', | 185 'common/pref_store.h', |
| 219 'common/print_messages.cc', | 186 'common/print_messages.cc', |
| 220 'common/print_messages.h', | 187 'common/print_messages.h', |
| 188 'common/profiling.cc', |
| 189 'common/profiling.h', |
| 221 'common/random.cc', | 190 'common/random.cc', |
| 222 'common/random.h', | 191 'common/random.h', |
| 192 'common/ref_counted_util.h', |
| 223 'common/render_messages.cc', | 193 'common/render_messages.cc', |
| 224 'common/render_messages.h', | 194 'common/render_messages.h', |
| 195 'common/safe_browsing/safebrowsing_messages.h', |
| 225 'common/scoped_co_mem.h', | 196 'common/scoped_co_mem.h', |
| 226 'common/search_provider.h', | 197 'common/search_provider.h', |
| 227 'common/service_messages.h', | 198 'common/service_messages.h', |
| 228 'common/service_process_util.cc', | 199 'common/service_process_util.cc', |
| 229 'common/service_process_util.h', | 200 'common/service_process_util.h', |
| 230 'common/service_process_util_linux.cc', | 201 'common/service_process_util_linux.cc', |
| 231 'common/service_process_util_mac.mm', | 202 'common/service_process_util_mac.mm', |
| 232 'common/service_process_util_posix.cc', | 203 'common/service_process_util_posix.cc', |
| 233 'common/service_process_util_posix.h', | 204 'common/service_process_util_posix.h', |
| 234 'common/service_process_util_win.cc', | 205 'common/service_process_util_win.cc', |
| 235 'common/spellcheck_common.cc', | 206 'common/spellcheck_common.cc', |
| 236 'common/spellcheck_common.h', | 207 'common/spellcheck_common.h', |
| 237 'common/spellcheck_messages.h', | 208 'common/spellcheck_messages.h', |
| 209 'common/switch_utils.cc', |
| 210 'common/switch_utils.h', |
| 238 'common/thumbnail_score.cc', | 211 'common/thumbnail_score.cc', |
| 239 'common/thumbnail_score.h', | 212 'common/thumbnail_score.h', |
| 213 'common/time_format.cc', |
| 214 'common/time_format.h', |
| 240 'common/url_constants.cc', | 215 'common/url_constants.cc', |
| 241 'common/url_constants.h', | 216 'common/url_constants.h', |
| 242 'common/visitedlink_common.cc', | 217 'common/visitedlink_common.cc', |
| 243 'common/visitedlink_common.h', | 218 'common/visitedlink_common.h', |
| 244 'common/web_apps.cc', | 219 'common/web_apps.cc', |
| 245 'common/web_apps.h', | 220 'common/web_apps.h', |
| 246 'common/web_resource/web_resource_unpacker.cc', | 221 'common/web_resource/web_resource_unpacker.cc', |
| 247 'common/web_resource/web_resource_unpacker.h', | 222 'common/web_resource/web_resource_unpacker.h', |
| 248 'common/worker_thread_ticker.cc', | 223 'common/worker_thread_ticker.cc', |
| 249 'common/worker_thread_ticker.h', | 224 'common/worker_thread_ticker.h', |
| 250 'common/zip.cc', # Requires zlib directly. | 225 'common/zip.cc', # Requires zlib directly. |
| 251 'common/zip.h', | 226 'common/zip.h', |
| 252 ], | 227 ], |
| 253 'conditions': [ | 228 'conditions': [ |
| 229 ['OS=="win"', { |
| 230 'include_dirs': [ |
| 231 '<(DEPTH)/third_party/wtl/include', |
| 232 ], |
| 233 }], |
| 254 ['toolkit_uses_gtk == 1', { | 234 ['toolkit_uses_gtk == 1', { |
| 255 'dependencies': [ | 235 'dependencies': [ |
| 256 '../build/linux/system.gyp:gtk', | 236 '../build/linux/system.gyp:gtk', |
| 257 ], | 237 ], |
| 258 'export_dependent_settings': [ | 238 'export_dependent_settings': [ |
| 259 '../third_party/sqlite/sqlite.gyp:sqlite', | 239 '../third_party/sqlite/sqlite.gyp:sqlite', |
| 260 ], | 240 ], |
| 261 'link_settings': { | 241 'link_settings': { |
| 262 'libraries': [ | 242 'libraries': [ |
| 263 '-lX11', | 243 '-lX11', |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 'common/safe_browsing/client_model.proto', | 402 'common/safe_browsing/client_model.proto', |
| 423 'common/safe_browsing/csd.proto' | 403 'common/safe_browsing/csd.proto' |
| 424 ], | 404 ], |
| 425 'variables': { | 405 'variables': { |
| 426 'proto_in_dir': 'common/safe_browsing', | 406 'proto_in_dir': 'common/safe_browsing', |
| 427 'proto_out_dir': 'chrome/common/safe_browsing', | 407 'proto_out_dir': 'chrome/common/safe_browsing', |
| 428 }, | 408 }, |
| 429 'includes': [ '../build/protoc.gypi' ], | 409 'includes': [ '../build/protoc.gypi' ], |
| 430 }, | 410 }, |
| 431 ], | 411 ], |
| 432 'conditions': [ | |
| 433 ['OS=="win"', { | |
| 434 'targets': [ | |
| 435 { | |
| 436 'target_name': 'common_nacl_win64', | |
| 437 'type': 'static_library', | |
| 438 'variables': { | |
| 439 'chrome_common_target': 1, | |
| 440 }, | |
| 441 'dependencies': [ | |
| 442 # TODO(gregoryd): chrome_resources and chrome_strings could be | |
| 443 # shared with the 32-bit target, but it does not work due to a gyp | |
| 444 # issue. | |
| 445 'chrome_resources', | |
| 446 'chrome_strings', | |
| 447 'common_constants_win64', | |
| 448 'app/policy/cloud_policy_codegen.gyp:policy_win64', | |
| 449 '../base/base.gyp:base_nacl_win64', | |
| 450 '../ipc/ipc.gyp:ipc_win64', | |
| 451 '../third_party/libxml/libxml.gyp:libxml', | |
| 452 '../ui/ui.gyp:ui_nacl_win64', | |
| 453 '../ui/ui.gyp:ui_resources', | |
| 454 '../ui/ui.gyp:ui_resources_standard', | |
| 455 ], | |
| 456 'include_dirs': [ | |
| 457 '../third_party/icu/public/i18n', | |
| 458 '../third_party/icu/public/common', | |
| 459 # We usually get these skia directories by adding a dependency on | |
| 460 # skia, bu we don't need it for NaCl's 64-bit Windows support. The | |
| 461 # directories are required for resolving the includes in any case. | |
| 462 '../third_party/skia/include/config', | |
| 463 '../third_party/skia/include/core', | |
| 464 '../skia/config', | |
| 465 '../skia/config/win', | |
| 466 ], | |
| 467 'defines': [ | |
| 468 '<@(nacl_win64_defines)', | |
| 469 ], | |
| 470 'sources': [ | |
| 471 '../webkit/glue/webkit_glue_dummy.cc', | |
| 472 'common/url_constants.cc', | |
| 473 # TODO(bradnelson): once automatic generation of 64 bit targets on | |
| 474 # Windows is ready, take this out and add a dependency on | |
| 475 # content_common.gypi. | |
| 476 '../content/common/file_system/file_system_dispatcher_dummy.cc', | |
| 477 '../content/common/message_router.cc', | |
| 478 '../content/common/quota_dispatcher_dummy.cc', | |
| 479 '../content/common/resource_dispatcher_dummy.cc', | |
| 480 '../content/common/socket_stream_dispatcher_dummy.cc', | |
| 481 ], | |
| 482 'export_dependent_settings': [ | |
| 483 'app/policy/cloud_policy_codegen.gyp:policy_win64', | |
| 484 ], | |
| 485 # TODO(gregoryd): This could be shared with the 32-bit target, but | |
| 486 # it does not work due to a gyp issue. | |
| 487 'direct_dependent_settings': { | |
| 488 'include_dirs': [ | |
| 489 '..', | |
| 490 ], | |
| 491 }, | |
| 492 'configurations': { | |
| 493 'Common_Base': { | |
| 494 'msvs_target_platform': 'x64', | |
| 495 }, | |
| 496 }, | |
| 497 }, | |
| 498 ], | |
| 499 }], | |
| 500 ], | |
| 501 } | 412 } |
| OLD | NEW |