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