[email protected] | b907defe | 2011-02-23 02:45:34 | [diff] [blame] | 1 | # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 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': [ |
[email protected] | cd134c8c | 2010-03-09 05:23:12 | [diff] [blame] | 18 | '<(DEPTH)/third_party/wtl/include', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 19 | ], |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 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. |
[email protected] | 3e0f7d52 | 2010-06-18 04:09:14 | [diff] [blame] | 26 | 'common/about_handler.cc', |
| 27 | 'common/about_handler.h', |
[email protected] | 646b9b9 | 2010-04-30 21:51:58 | [diff] [blame] | 28 | 'common/app_mode_common_mac.h', |
| 29 | 'common/app_mode_common_mac.mm', |
[email protected] | 0d2fbd5c | 2011-03-23 10:40:15 | [diff] [blame] | 30 | 'common/attrition_experiments.h', |
[email protected] | d4cff27 | 2011-05-02 15:46:01 | [diff] [blame] | 31 | 'common/attributed_string_coder_mac.h', |
| 32 | 'common/attributed_string_coder_mac.mm', |
[email protected] | b907defe | 2011-02-23 02:45:34 | [diff] [blame] | 33 | 'common/auto_start_linux.cc', |
| 34 | 'common/auto_start_linux.h', |
[email protected] | 19d6e1e8 | 2011-01-26 05:08:58 | [diff] [blame] | 35 | 'common/autofill_messages.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 36 | 'common/child_process_logging.h', |
| 37 | 'common/child_process_logging_linux.cc', |
| 38 | 'common/child_process_logging_mac.mm', |
| 39 | 'common/child_process_logging_win.cc', |
[email protected] | cf3ac397 | 2010-12-22 20:02:29 | [diff] [blame] | 40 | 'common/chrome_version_info.cc', |
| 41 | 'common/chrome_version_info.h', |
[email protected] | aee541e | 2010-03-19 01:52:45 | [diff] [blame] | 42 | 'common/content_settings.cc', |
| 43 | 'common/content_settings.h', |
[email protected] | f895131a | 2010-07-23 05:36:02 | [diff] [blame] | 44 | 'common/content_settings_helper.cc', |
| 45 | 'common/content_settings_helper.h', |
[email protected] | aee541e | 2010-03-19 01:52:45 | [diff] [blame] | 46 | 'common/content_settings_types.h', |
[email protected] | 8948031 | 2011-05-04 17:14:16 | [diff] [blame] | 47 | 'common/external_ipc_fuzzer.h', |
| 48 | 'common/external_ipc_fuzzer.cc', |
[email protected] | 3eb0d8f7 | 2010-12-15 23:38:25 | [diff] [blame] | 49 | 'common/guid.cc', |
[email protected] | cf3ac397 | 2010-12-22 20:02:29 | [diff] [blame] | 50 | 'common/guid.h', |
[email protected] | 3eb0d8f7 | 2010-12-15 23:38:25 | [diff] [blame] | 51 | 'common/guid_posix.cc', |
| 52 | 'common/guid_win.cc', |
[email protected] | 60f36f9 | 2011-04-12 16:18:31 | [diff] [blame] | 53 | 'common/icon_messages.h', |
[email protected] | 1c9c7fb | 2011-03-11 16:38:38 | [diff] [blame] | 54 | 'common/instant_types.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 55 | 'common/logging_chrome.cc', |
| 56 | 'common/logging_chrome.h', |
[email protected] | 1226abb | 2010-06-10 18:01:28 | [diff] [blame] | 57 | 'common/metrics_helpers.cc', |
[email protected] | 3e0f7d52 | 2010-06-18 04:09:14 | [diff] [blame] | 58 | 'common/metrics_helpers.h', |
[email protected] | 293fd7a9 | 2010-11-16 21:14:58 | [diff] [blame] | 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', |
[email protected] | 103607e | 2010-02-01 18:57:09 | [diff] [blame] | 63 | 'common/nacl_cmd_line.cc', |
| 64 | 'common/nacl_cmd_line.h', |
[email protected] | 7a4de7a6 | 2010-08-17 18:38:24 | [diff] [blame] | 65 | 'common/nacl_messages.cc', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 66 | 'common/nacl_messages.h', |
[email protected] | 7a4de7a6 | 2010-08-17 18:38:24 | [diff] [blame] | 67 | 'common/nacl_types.h', |
[email protected] | 7664ab3 | 2011-02-01 23:35:25 | [diff] [blame] | 68 | 'common/profiling.cc', |
| 69 | 'common/profiling.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 70 | 'common/ref_counted_util.h', |
[email protected] | 13313977 | 2011-04-14 22:14:13 | [diff] [blame] | 71 | 'common/safe_browsing/safebrowsing_messages.h', |
[email protected] | 5c08f22 | 2010-09-22 09:37:21 | [diff] [blame] | 72 | 'common/switch_utils.cc', |
| 73 | 'common/switch_utils.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 74 | 'common/time_format.cc', |
| 75 | 'common/time_format.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 76 | 'common/win_safe_util.cc', |
| 77 | 'common/win_safe_util.h', |
| 78 | ], |
| 79 | }], |
| 80 | ], |
| 81 | }, |
| 82 | 'targets': [ |
| 83 | { |
| 84 | 'target_name': 'common', |
[email protected] | 5a54733 | 2011-05-19 23:18:53 | [diff] [blame] | 85 | 'type': 'static_library', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 86 | 'msvs_guid': '899F1280-3441-4D1F-BA04-CCD6208D9146', |
| 87 | 'variables': { |
| 88 | 'chrome_common_target': 1, |
| 89 | }, |
| 90 | # TODO(gregoryd): This could be shared with the 64-bit target, but |
| 91 | # it does not work due to a gyp issue. |
| 92 | 'direct_dependent_settings': { |
| 93 | 'include_dirs': [ |
| 94 | '..', |
[email protected] | cae64fe | 2011-06-17 17:54:50 | [diff] [blame^] | 95 | # Allow other targets to depend on common for the SafeBrowsing |
| 96 | # protobuf generated targets. |
| 97 | '<(protoc_out_dir)', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 98 | ], |
| 99 | }, |
| 100 | 'dependencies': [ |
| 101 | # TODO(gregoryd): chrome_resources and chrome_strings could be |
| 102 | # shared with the 64-bit target, but it does not work due to a gyp |
| 103 | # issue. |
[email protected] | f8636972 | 2011-02-17 13:25:23 | [diff] [blame] | 104 | 'app/policy/cloud_policy_codegen.gyp:policy', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 105 | 'chrome_resources', |
| 106 | 'chrome_strings', |
| 107 | 'common_constants', |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 108 | 'common_net', |
[email protected] | 0d64bb7 | 2010-07-07 05:36:38 | [diff] [blame] | 109 | 'default_plugin/default_plugin.gyp:default_plugin', |
[email protected] | 9966325b | 2011-04-18 05:00:10 | [diff] [blame] | 110 | 'safe_browsing_csd_proto', |
[email protected] | cae64fe | 2011-06-17 17:54:50 | [diff] [blame^] | 111 | 'safe_browsing_proto', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 112 | 'theme_resources', |
[email protected] | 5ca37da | 2011-04-21 19:40:15 | [diff] [blame] | 113 | 'theme_resources_standard', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 114 | '../app/app.gyp:app_base', |
| 115 | '../app/app.gyp:app_resources', |
| 116 | '../base/base.gyp:base', |
| 117 | '../base/base.gyp:base_i18n', |
[email protected] | 23bb71f | 2011-04-21 22:22:10 | [diff] [blame] | 118 | '../base/base.gyp:base_static', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 119 | '../build/temp_gyp/googleurl.gyp:googleurl', |
[email protected] | 6c54e7e4 | 2011-03-02 20:52:34 | [diff] [blame] | 120 | '../content/content.gyp:content_common', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 121 | '../ipc/ipc.gyp:ipc', |
| 122 | '../net/net.gyp:net', |
[email protected] | 1309540 | 2010-07-20 00:15:43 | [diff] [blame] | 123 | '../printing/printing.gyp:printing', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 124 | '../skia/skia.gyp:skia', |
[email protected] | 423bfef | 2010-06-18 17:17:28 | [diff] [blame] | 125 | '../third_party/bzip2/bzip2.gyp:bzip2', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 126 | '../third_party/icu/icu.gyp:icui18n', |
| 127 | '../third_party/icu/icu.gyp:icuuc', |
| 128 | '../third_party/libxml/libxml.gyp:libxml', |
[email protected] | cae64fe | 2011-06-17 17:54:50 | [diff] [blame^] | 129 | '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 130 | '../third_party/sqlite/sqlite.gyp:sqlite', |
| 131 | '../third_party/zlib/zlib.gyp:zlib', |
[email protected] | 69d3dfe8 | 2010-05-14 03:21:55 | [diff] [blame] | 132 | '../webkit/support/webkit_support.gyp:glue', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 133 | ], |
| 134 | 'sources': [ |
| 135 | # .cc, .h, and .mm files under chrome/common that are not required for |
| 136 | # building 64-bit Windows targets. Test files are not included. |
[email protected] | cdb8bc28 | 2010-11-22 19:23:06 | [diff] [blame] | 137 | 'common/automation_constants.cc', |
| 138 | 'common/automation_constants.h', |
| 139 | 'common/automation_messages.cc', |
| 140 | 'common/automation_messages.h', |
| 141 | 'common/automation_messages_internal.h', |
| 142 | 'common/badge_util.cc', |
| 143 | 'common/badge_util.h', |
[email protected] | 23bb71f | 2011-04-21 22:22:10 | [diff] [blame] | 144 | 'common/bzip2_error_handler.cc', |
[email protected] | 50e52cd | 2011-03-10 00:57:29 | [diff] [blame] | 145 | 'common/chrome_content_client.cc', |
| 146 | 'common/chrome_content_client.h', |
[email protected] | 490f79c1 | 2011-03-17 22:24:43 | [diff] [blame] | 147 | 'common/chrome_content_plugin_client.cc', |
| 148 | 'common/chrome_content_plugin_client.h', |
[email protected] | de119cf2 | 2011-05-11 20:41:35 | [diff] [blame] | 149 | 'common/cloud_print/cloud_print_proxy_info.cc', |
| 150 | 'common/cloud_print/cloud_print_proxy_info.h', |
[email protected] | ceee766 | 2011-05-12 21:06:00 | [diff] [blame] | 151 | 'common/common_api.h', |
[email protected] | fffaf97 | 2011-03-24 01:34:35 | [diff] [blame] | 152 | 'common/common_message_generator.cc', |
| 153 | 'common/common_message_generator.h', |
[email protected] | 79d68c6 | 2011-04-15 21:07:03 | [diff] [blame] | 154 | 'common/common_param_traits.cc', |
| 155 | 'common/common_param_traits.h', |
[email protected] | cdb8bc28 | 2010-11-22 19:23:06 | [diff] [blame] | 156 | 'common/default_plugin.cc', |
| 157 | 'common/default_plugin.h', |
| 158 | 'common/deprecated/event_sys-inl.h', |
| 159 | 'common/deprecated/event_sys.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 160 | 'common/extensions/extension.cc', |
| 161 | 'common/extensions/extension.h', |
[email protected] | 7c927b6 | 2010-02-24 09:54:13 | [diff] [blame] | 162 | 'common/extensions/extension_action.cc', |
| 163 | 'common/extensions/extension_action.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 164 | 'common/extensions/extension_constants.cc', |
| 165 | 'common/extensions/extension_constants.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 166 | 'common/extensions/extension_error_utils.cc', |
| 167 | 'common/extensions/extension_error_utils.h', |
[email protected] | 7c927b6 | 2010-02-24 09:54:13 | [diff] [blame] | 168 | 'common/extensions/extension_file_util.cc', |
| 169 | 'common/extensions/extension_file_util.h', |
[email protected] | 807871f | 2010-09-16 01:04:48 | [diff] [blame] | 170 | 'common/extensions/extension_icon_set.cc', |
| 171 | 'common/extensions/extension_icon_set.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 172 | 'common/extensions/extension_l10n_util.cc', |
| 173 | 'common/extensions/extension_l10n_util.h', |
[email protected] | 8a58f9a | 2010-05-18 18:38:09 | [diff] [blame] | 174 | 'common/extensions/extension_localization_peer.cc', |
| 175 | 'common/extensions/extension_localization_peer.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 176 | 'common/extensions/extension_message_bundle.cc', |
| 177 | 'common/extensions/extension_message_bundle.h', |
[email protected] | 44c49c9 | 2011-03-28 16:17:23 | [diff] [blame] | 178 | 'common/extensions/extension_messages.cc', |
| 179 | 'common/extensions/extension_messages.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 180 | 'common/extensions/extension_resource.cc', |
| 181 | 'common/extensions/extension_resource.h', |
[email protected] | ec7db28 | 2011-01-29 01:11:36 | [diff] [blame] | 182 | 'common/extensions/extension_set.cc', |
| 183 | 'common/extensions/extension_set.h', |
[email protected] | e2dffe0 | 2011-01-20 20:30:06 | [diff] [blame] | 184 | 'common/extensions/extension_sidebar_defaults.h', |
| 185 | 'common/extensions/extension_sidebar_utils.cc', |
| 186 | 'common/extensions/extension_sidebar_utils.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 187 | 'common/extensions/extension_unpacker.cc', |
| 188 | 'common/extensions/extension_unpacker.h', |
[email protected] | b6b805e9 | 2011-04-16 09:24:14 | [diff] [blame] | 189 | 'common/extensions/file_browser_handler.cc', |
[email protected] | 3381f17 | 2011-05-25 00:20:42 | [diff] [blame] | 190 | 'common/extensions/file_browser_handler.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 191 | 'common/extensions/update_manifest.cc', |
| 192 | 'common/extensions/update_manifest.h', |
| 193 | 'common/extensions/url_pattern.cc', |
| 194 | 'common/extensions/url_pattern.h', |
[email protected] | cced75a | 2011-05-20 08:31:12 | [diff] [blame] | 195 | 'common/extensions/url_pattern_set.cc', |
| 196 | 'common/extensions/url_pattern_set.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 197 | 'common/extensions/user_script.cc', |
| 198 | 'common/extensions/user_script.h', |
[email protected] | ae4efe4 | 2011-04-18 21:28:05 | [diff] [blame] | 199 | 'common/favicon_url.cc', |
| 200 | 'common/favicon_url.h', |
[email protected] | 6658ca8 | 2010-05-20 18:20:29 | [diff] [blame] | 201 | 'common/important_file_writer.cc', |
| 202 | 'common/important_file_writer.h', |
[email protected] | ea587b0 | 2010-05-21 15:01:35 | [diff] [blame] | 203 | 'common/json_pref_store.cc', |
| 204 | 'common/json_pref_store.h', |
[email protected] | 639e671 | 2010-11-11 22:21:43 | [diff] [blame] | 205 | 'common/json_schema_validator.cc', |
| 206 | 'common/json_schema_validator.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 207 | 'common/jstemplate_builder.cc', |
| 208 | 'common/jstemplate_builder.h', |
[email protected] | 4130d9e | 2011-03-22 05:19:29 | [diff] [blame] | 209 | 'common/launchd_mac.h', |
| 210 | 'common/launchd_mac.mm', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 211 | 'common/libxml_utils.cc', |
| 212 | 'common/libxml_utils.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 213 | 'common/native_window_notification_source.h', |
[email protected] | f2d1f61 | 2010-12-09 15:10:17 | [diff] [blame] | 214 | 'common/persistent_pref_store.h', |
[email protected] | 0f1afed | 2010-12-15 17:22:28 | [diff] [blame] | 215 | 'common/pref_store.cc', |
[email protected] | ce1850e9 | 2010-10-15 08:40:58 | [diff] [blame] | 216 | 'common/pref_store.h', |
[email protected] | 1375e3ab | 2011-03-24 17:07:22 | [diff] [blame] | 217 | 'common/print_messages.h', |
[email protected] | 51a0181 | 2011-05-05 08:46:11 | [diff] [blame] | 218 | 'common/random.cc', |
| 219 | 'common/random.h', |
[email protected] | 7a4de7a6 | 2010-08-17 18:38:24 | [diff] [blame] | 220 | 'common/render_messages.cc', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 221 | 'common/render_messages.h', |
[email protected] | cae64fe | 2011-06-17 17:54:50 | [diff] [blame^] | 222 | '<(protoc_out_dir)/chrome/common/safe_browsing/client_model.pb.cc', |
| 223 | '<(protoc_out_dir)/chrome/common/safe_browsing/client_model.pb.h', |
[email protected] | 9966325b | 2011-04-18 05:00:10 | [diff] [blame] | 224 | '<(protoc_out_dir)/chrome/common/safe_browsing/csd.pb.cc', |
[email protected] | 13313977 | 2011-04-14 22:14:13 | [diff] [blame] | 225 | '<(protoc_out_dir)/chrome/common/safe_browsing/csd.pb.h', |
[email protected] | c08e793 | 2011-03-29 04:08:14 | [diff] [blame] | 226 | 'common/search_provider.h', |
[email protected] | 38fe196 | 2010-07-31 07:57:00 | [diff] [blame] | 227 | 'common/service_messages.h', |
[email protected] | 7a4de7a6 | 2010-08-17 18:38:24 | [diff] [blame] | 228 | 'common/service_process_util.cc', |
| 229 | 'common/service_process_util.h', |
[email protected] | 56f0f26 | 2011-02-24 17:14:36 | [diff] [blame] | 230 | 'common/service_process_util_linux.cc', |
| 231 | 'common/service_process_util_mac.mm', |
[email protected] | 14635494 | 2010-10-13 20:27:04 | [diff] [blame] | 232 | 'common/service_process_util_posix.cc', |
[email protected] | 56f0f26 | 2011-02-24 17:14:36 | [diff] [blame] | 233 | 'common/service_process_util_posix.h', |
[email protected] | 14635494 | 2010-10-13 20:27:04 | [diff] [blame] | 234 | 'common/service_process_util_win.cc', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 235 | 'common/spellcheck_common.cc', |
| 236 | 'common/spellcheck_common.h', |
[email protected] | 3e26719 | 2011-03-25 01:55:45 | [diff] [blame] | 237 | 'common/spellcheck_messages.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 238 | 'common/sqlite_utils.cc', |
| 239 | 'common/sqlite_utils.h', |
[email protected] | d4cff27 | 2011-05-02 15:46:01 | [diff] [blame] | 240 | 'common/text_input_client_messages.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 241 | 'common/thumbnail_score.cc', |
| 242 | 'common/thumbnail_score.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 243 | 'common/url_constants.cc', |
| 244 | 'common/url_constants.h', |
| 245 | 'common/utility_messages.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 246 | 'common/visitedlink_common.cc', |
| 247 | 'common/visitedlink_common.h', |
[email protected] | 38789d8 | 2010-11-17 06:03:44 | [diff] [blame] | 248 | 'common/web_apps.cc', |
| 249 | 'common/web_apps.h', |
[email protected] | cdb8bc28 | 2010-11-22 19:23:06 | [diff] [blame] | 250 | 'common/web_resource/web_resource_unpacker.cc', |
| 251 | 'common/web_resource/web_resource_unpacker.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 252 | 'common/worker_thread_ticker.cc', |
| 253 | 'common/worker_thread_ticker.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 254 | 'common/zip.cc', # Requires zlib directly. |
| 255 | 'common/zip.h', |
| 256 | ], |
| 257 | 'conditions': [ |
[email protected] | cb5e507 | 2011-05-19 21:49:41 | [diff] [blame] | 258 | ['toolkit_uses_gtk == 1', { |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 259 | 'dependencies': [ |
| 260 | '../build/linux/system.gyp:gtk', |
| 261 | ], |
| 262 | 'export_dependent_settings': [ |
| 263 | '../third_party/sqlite/sqlite.gyp:sqlite', |
| 264 | ], |
| 265 | 'link_settings': { |
| 266 | 'libraries': [ |
| 267 | '-lX11', |
| 268 | '-lXrender', |
[email protected] | 8b46c13b | 2010-01-26 19:50:54 | [diff] [blame] | 269 | '-lXss', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 270 | '-lXext', |
| 271 | ], |
| 272 | }, |
| 273 | },], |
[email protected] | cb5e507 | 2011-05-19 21:49:41 | [diff] [blame] | 274 | ['os_posix == 1 and OS != "mac"', { |
[email protected] | 4641d3c | 2010-08-26 21:44:13 | [diff] [blame] | 275 | 'include_dirs': [ |
| 276 | '<(SHARED_INTERMEDIATE_DIR)', |
| 277 | ], |
[email protected] | 79440c5 | 2010-08-27 22:53:02 | [diff] [blame] | 278 | # Because posix_version generates a header, we must set the |
| 279 | # hard_dependency flag. |
| 280 | 'hard_dependency': 1, |
[email protected] | 4641d3c | 2010-08-26 21:44:13 | [diff] [blame] | 281 | 'actions': [ |
| 282 | { |
| 283 | 'action_name': 'posix_version', |
| 284 | 'variables': { |
| 285 | 'lastchange_path': |
| 286 | '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE', |
| 287 | 'version_py_path': 'tools/build/version.py', |
| 288 | 'version_path': 'VERSION', |
| 289 | 'template_input_path': 'common/chrome_version_info_posix.h.version', |
| 290 | }, |
| 291 | 'conditions': [ |
| 292 | [ 'branding == "Chrome"', { |
| 293 | 'variables': { |
| 294 | 'branding_path': |
| 295 | 'app/theme/google_chrome/BRANDING', |
| 296 | }, |
| 297 | }, { # else branding!="Chrome" |
| 298 | 'variables': { |
| 299 | 'branding_path': |
| 300 | 'app/theme/chromium/BRANDING', |
| 301 | }, |
| 302 | }], |
| 303 | ], |
| 304 | 'inputs': [ |
| 305 | '<(template_input_path)', |
| 306 | '<(version_path)', |
| 307 | '<(branding_path)', |
| 308 | '<(lastchange_path)', |
| 309 | ], |
| 310 | 'outputs': [ |
| 311 | '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version_info_posix.h', |
| 312 | ], |
| 313 | 'action': [ |
| 314 | 'python', |
| 315 | '<(version_py_path)', |
| 316 | '-f', '<(version_path)', |
| 317 | '-f', '<(branding_path)', |
| 318 | '-f', '<(lastchange_path)', |
| 319 | '<(template_input_path)', |
| 320 | '<@(_outputs)', |
| 321 | ], |
| 322 | 'message': 'Generating version information', |
| 323 | }, |
| 324 | ], |
| 325 | }], |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 326 | ['OS=="linux" and selinux==1', { |
| 327 | 'dependencies': [ |
| 328 | '../build/linux/system.gyp:selinux', |
| 329 | ], |
| 330 | }], |
| 331 | ['OS=="mac"', { |
[email protected] | 56f0f26 | 2011-02-24 17:14:36 | [diff] [blame] | 332 | 'include_dirs': [ |
| 333 | '../third_party/GTM', |
| 334 | ], |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 335 | }], |
[email protected] | 8cc9dd62 | 2010-06-28 15:13:10 | [diff] [blame] | 336 | ['remoting==1', { |
| 337 | 'dependencies': [ |
[email protected] | 6831f8bd | 2011-05-13 21:41:09 | [diff] [blame] | 338 | '../remoting/remoting.gyp:remoting_client_plugin', |
[email protected] | 8cc9dd62 | 2010-06-28 15:13:10 | [diff] [blame] | 339 | ], |
| 340 | }], |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 341 | ], |
| 342 | 'export_dependent_settings': [ |
| 343 | '../app/app.gyp:app_base', |
[email protected] | 23bb71f | 2011-04-21 22:22:10 | [diff] [blame] | 344 | '../base/base.gyp:base', |
[email protected] | cae64fe | 2011-06-17 17:54:50 | [diff] [blame^] | 345 | '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 346 | ], |
| 347 | }, |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 348 | { |
| 349 | 'target_name': 'common_net', |
[email protected] | 5a54733 | 2011-05-19 23:18:53 | [diff] [blame] | 350 | 'type': 'static_library', |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 351 | 'sources': [ |
[email protected] | f3d0174 | 2010-05-07 02:53:55 | [diff] [blame] | 352 | 'common/net/http_return.h', |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 353 | 'common/net/net_resource_provider.cc', |
| 354 | 'common/net/net_resource_provider.h', |
[email protected] | 3530cd9 | 2010-06-27 06:22:01 | [diff] [blame] | 355 | 'common/net/predictor_common.h', |
[email protected] | d2f05d0 | 2011-01-27 18:51:01 | [diff] [blame] | 356 | 'common/net/gaia/gaia_auth_consumer.cc', |
[email protected] | a0e7704 | 2010-07-01 22:28:23 | [diff] [blame] | 357 | 'common/net/gaia/gaia_auth_consumer.h', |
[email protected] | 1d8fe71 | 2010-11-10 22:47:26 | [diff] [blame] | 358 | 'common/net/gaia/gaia_auth_fetcher.cc', |
| 359 | 'common/net/gaia/gaia_auth_fetcher.h', |
[email protected] | f3d0174 | 2010-05-07 02:53:55 | [diff] [blame] | 360 | 'common/net/gaia/gaia_authenticator.cc', |
| 361 | 'common/net/gaia/gaia_authenticator.h', |
[email protected] | 8fbfe66 | 2011-03-22 00:02:19 | [diff] [blame] | 362 | 'common/net/gaia/gaia_oauth_client.cc', |
| 363 | 'common/net/gaia/gaia_oauth_client.h', |
[email protected] | 63411a01 | 2011-06-15 19:14:24 | [diff] [blame] | 364 | 'common/net/gaia/gaia_urls.cc', |
| 365 | 'common/net/gaia/gaia_urls.h', |
[email protected] | 2b85b67a | 2011-02-10 23:41:40 | [diff] [blame] | 366 | 'common/net/gaia/google_service_auth_error.cc', |
[email protected] | 99074c5 | 2010-08-19 18:44:19 | [diff] [blame] | 367 | 'common/net/gaia/google_service_auth_error.h', |
[email protected] | b1c2a554 | 2010-10-08 12:44:40 | [diff] [blame] | 368 | 'common/net/x509_certificate_model.cc', |
| 369 | 'common/net/x509_certificate_model_nss.cc', |
| 370 | 'common/net/x509_certificate_model_openssl.cc', |
| 371 | 'common/net/x509_certificate_model.h', |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 372 | ], |
| 373 | 'dependencies': [ |
| 374 | 'chrome_resources', |
| 375 | 'chrome_strings', |
[email protected] | 8dc64b4 | 2010-05-14 07:26:42 | [diff] [blame] | 376 | '../app/app.gyp:app_base', |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 377 | '../base/base.gyp:base', |
[email protected] | f56279c | 2011-02-02 18:12:31 | [diff] [blame] | 378 | '../gpu/gpu.gyp:gpu_ipc', |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 379 | '../net/net.gyp:net_resources', |
[email protected] | 8dc64b4 | 2010-05-14 07:26:42 | [diff] [blame] | 380 | '../net/net.gyp:net', |
[email protected] | b1c2a554 | 2010-10-08 12:44:40 | [diff] [blame] | 381 | '../third_party/icu/icu.gyp:icui18n', |
| 382 | '../third_party/icu/icu.gyp:icuuc', |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 383 | ], |
[email protected] | b1c2a554 | 2010-10-08 12:44:40 | [diff] [blame] | 384 | 'conditions': [ |
[email protected] | cb5e507 | 2011-05-19 21:49:41 | [diff] [blame] | 385 | ['os_posix == 1 and OS != "mac"', { |
[email protected] | 638e9df4 | 2011-05-31 17:19:30 | [diff] [blame] | 386 | 'dependencies': [ |
| 387 | '../build/linux/system.gyp:ssl', |
[email protected] | b1c2a554 | 2010-10-08 12:44:40 | [diff] [blame] | 388 | ], |
| 389 | }, |
| 390 | { # else: OS is not in the above list |
| 391 | 'sources!': [ |
| 392 | 'common/net/x509_certificate_model_nss.cc', |
| 393 | 'common/net/x509_certificate_model_openssl.cc', |
| 394 | ], |
| 395 | }, |
| 396 | ], |
| 397 | ['use_openssl==1', { |
| 398 | 'sources!': [ |
| 399 | 'common/net/x509_certificate_model_nss.cc', |
| 400 | ], |
| 401 | }, |
| 402 | { # else !use_openssl: remove the unneeded files |
| 403 | 'sources!': [ |
| 404 | 'common/net/x509_certificate_model_openssl.cc', |
| 405 | ], |
| 406 | }, |
| 407 | ], |
| 408 | ], |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 409 | }, |
[email protected] | 13313977 | 2011-04-14 22:14:13 | [diff] [blame] | 410 | { |
[email protected] | cae64fe | 2011-06-17 17:54:50 | [diff] [blame^] | 411 | # Protobuf compiler / generator for the safebrowsing client model proto. |
| 412 | 'target_name': 'safe_browsing_proto', |
| 413 | 'type': 'none', |
| 414 | 'sources': [ 'common/safe_browsing/client_model.proto' ], |
| 415 | 'rules': [ |
| 416 | { |
| 417 | 'rule_name': 'genproto', |
| 418 | 'extension': 'proto', |
| 419 | 'inputs': [ |
| 420 | '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', |
| 421 | ], |
| 422 | 'variables': { |
| 423 | # The protoc compiler requires a proto_path argument with the |
| 424 | # directory containing the .proto file. |
| 425 | # There's no generator variable that corresponds to this, so fake |
| 426 | # it. |
| 427 | 'rule_input_relpath': 'common/safe_browsing', |
| 428 | }, |
| 429 | 'outputs': [ |
| 430 | '<(protoc_out_dir)/chrome/<(rule_input_relpath)/<(RULE_INPUT_ROOT).pb.h', |
| 431 | '<(protoc_out_dir)/chrome/<(rule_input_relpath)/<(RULE_INPUT_ROOT).pb.cc', |
| 432 | ], |
| 433 | 'action': [ |
| 434 | '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', |
| 435 | '--proto_path=./<(rule_input_relpath)', |
| 436 | './<(rule_input_relpath)/<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)', |
| 437 | '--cpp_out=<(protoc_out_dir)/chrome/<(rule_input_relpath)', |
| 438 | ], |
| 439 | 'message': 'Generating C++ code from <(RULE_INPUT_PATH)', |
| 440 | }, |
| 441 | ], |
| 442 | 'dependencies': [ |
| 443 | '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
| 444 | '../third_party/protobuf/protobuf.gyp:protoc#host', |
| 445 | ], |
| 446 | 'direct_dependent_settings': { |
| 447 | 'include_dirs': [ |
| 448 | '<(protoc_out_dir)', |
| 449 | ] |
| 450 | }, |
| 451 | 'export_dependent_settings': [ |
| 452 | '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
| 453 | ], |
| 454 | 'hard_dependency': 1, |
| 455 | }, |
| 456 | { |
[email protected] | 13313977 | 2011-04-14 22:14:13 | [diff] [blame] | 457 | # Protobuf compiler / generator for the safebrowsing client-side detection |
| 458 | # (csd) request protocol buffer which is used both in the renderer and in |
| 459 | # the browser. |
| 460 | 'target_name': 'safe_browsing_csd_proto', |
| 461 | 'type': 'none', |
| 462 | 'sources': [ 'common/safe_browsing/csd.proto' ], |
| 463 | 'rules': [ |
| 464 | { |
| 465 | 'rule_name': 'genproto', |
| 466 | 'extension': 'proto', |
| 467 | 'inputs': [ |
| 468 | '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', |
| 469 | ], |
| 470 | 'variables': { |
| 471 | # The protoc compiler requires a proto_path argument with the |
| 472 | # directory containing the .proto file. |
| 473 | # There's no generator variable that corresponds to this, so fake |
| 474 | # it. |
| 475 | 'rule_input_relpath': 'common/safe_browsing', |
| 476 | }, |
| 477 | 'outputs': [ |
| 478 | '<(protoc_out_dir)/chrome/<(rule_input_relpath)/<(RULE_INPUT_ROOT).pb.h', |
| 479 | '<(protoc_out_dir)/chrome/<(rule_input_relpath)/<(RULE_INPUT_ROOT).pb.cc', |
| 480 | ], |
| 481 | 'action': [ |
| 482 | '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', |
| 483 | '--proto_path=./<(rule_input_relpath)', |
| 484 | './<(rule_input_relpath)/<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)', |
| 485 | '--cpp_out=<(protoc_out_dir)/chrome/<(rule_input_relpath)', |
| 486 | ], |
| 487 | 'message': 'Generating C++ code from <(RULE_INPUT_PATH)', |
| 488 | }, |
| 489 | ], |
| 490 | 'dependencies': [ |
| 491 | '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
| 492 | '../third_party/protobuf/protobuf.gyp:protoc#host', |
| 493 | ], |
| 494 | 'direct_dependent_settings': { |
| 495 | 'include_dirs': [ |
| 496 | '<(protoc_out_dir)', |
| 497 | ] |
| 498 | }, |
| 499 | 'export_dependent_settings': [ |
| 500 | '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
| 501 | ], |
[email protected] | fe5cbab1 | 2011-05-26 23:39:00 | [diff] [blame] | 502 | 'hard_dependency': 1, |
[email protected] | 13313977 | 2011-04-14 22:14:13 | [diff] [blame] | 503 | }, |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 504 | ], |
| 505 | 'conditions': [ |
| 506 | ['OS=="win"', { |
| 507 | 'targets': [ |
| 508 | { |
| 509 | 'target_name': 'common_nacl_win64', |
[email protected] | 5a54733 | 2011-05-19 23:18:53 | [diff] [blame] | 510 | 'type': 'static_library', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 511 | 'msvs_guid': '3AB5C5E9-470C-419B-A0AE-C7381FB632FA', |
| 512 | 'variables': { |
| 513 | 'chrome_common_target': 1, |
| 514 | }, |
| 515 | 'dependencies': [ |
| 516 | # TODO(gregoryd): chrome_resources and chrome_strings could be |
| 517 | # shared with the 32-bit target, but it does not work due to a gyp |
| 518 | # issue. |
| 519 | 'chrome_resources', |
| 520 | 'chrome_strings', |
| 521 | 'common_constants_win64', |
[email protected] | f8636972 | 2011-02-17 13:25:23 | [diff] [blame] | 522 | 'app/policy/cloud_policy_codegen.gyp:policy_win64', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 523 | '../app/app.gyp:app_base_nacl_win64', |
| 524 | '../app/app.gyp:app_resources', |
| 525 | '../base/base.gyp:base_nacl_win64', |
| 526 | '../ipc/ipc.gyp:ipc_win64', |
[email protected] | 3e0f7d52 | 2010-06-18 04:09:14 | [diff] [blame] | 527 | '../third_party/libxml/libxml.gyp:libxml', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 528 | ], |
| 529 | 'include_dirs': [ |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 530 | '../third_party/icu/public/i18n', |
| 531 | '../third_party/icu/public/common', |
| 532 | # We usually get these skia directories by adding a dependency on |
| 533 | # skia, bu we don't need it for NaCl's 64-bit Windows support. The |
| 534 | # directories are required for resolving the includes in any case. |
[email protected] | 38789d8 | 2010-11-17 06:03:44 | [diff] [blame] | 535 | '../third_party/skia/include/config', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 536 | '../third_party/skia/include/core', |
| 537 | '../skia/config', |
[email protected] | 38789d8 | 2010-11-17 06:03:44 | [diff] [blame] | 538 | '../skia/config/win', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 539 | ], |
| 540 | 'defines': [ |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 541 | '<@(nacl_win64_defines)', |
| 542 | ], |
| 543 | 'sources': [ |
| 544 | '../webkit/glue/webkit_glue_dummy.cc', |
[email protected] | 7fc13ed | 2010-03-06 05:06:20 | [diff] [blame] | 545 | 'common/url_constants.cc', |
[email protected] | 7ef40ffe1 | 2011-03-08 05:05:28 | [diff] [blame] | 546 | # TODO(bradnelson): once automatic generation of 64 bit targets on |
| 547 | # Windows is ready, take this out and add a dependency on |
| 548 | # content_common.gypi. |
| 549 | '../content/common/file_system/file_system_dispatcher_dummy.cc', |
[email protected] | b2e375f | 2011-03-03 23:20:24 | [diff] [blame] | 550 | '../content/common/message_router.cc', |
[email protected] | 10e5cf1 | 2011-04-13 04:10:40 | [diff] [blame] | 551 | '../content/common/quota_dispatcher_dummy.cc', |
[email protected] | 620161e | 2011-03-07 18:05:26 | [diff] [blame] | 552 | '../content/common/resource_dispatcher_dummy.cc', |
[email protected] | 7ef40ffe1 | 2011-03-08 05:05:28 | [diff] [blame] | 553 | '../content/common/socket_stream_dispatcher_dummy.cc', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 554 | ], |
| 555 | 'export_dependent_settings': [ |
[email protected] | f8636972 | 2011-02-17 13:25:23 | [diff] [blame] | 556 | 'app/policy/cloud_policy_codegen.gyp:policy_win64', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 557 | ], |
| 558 | # TODO(gregoryd): This could be shared with the 32-bit target, but |
| 559 | # it does not work due to a gyp issue. |
| 560 | 'direct_dependent_settings': { |
| 561 | 'include_dirs': [ |
| 562 | '..', |
| 563 | ], |
| 564 | }, |
| 565 | 'configurations': { |
| 566 | 'Common_Base': { |
| 567 | 'msvs_target_platform': 'x64', |
| 568 | }, |
| 569 | }, |
| 570 | }, |
| 571 | ], |
| 572 | }], |
| 573 | ], |
| 574 | } |