[email protected] | e284e6d8 | 2010-01-29 19:49:45 | [diff] [blame] | 1 | # Copyright (c) 2010 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] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 30 | 'common/bindings_policy.h', |
| 31 | 'common/child_process.cc', |
| 32 | 'common/child_process.h', |
| 33 | 'common/child_process_info.cc', |
| 34 | 'common/child_process_info.h', |
| 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', |
| 39 | 'common/child_thread.cc', |
| 40 | 'common/child_thread.h', |
| 41 | 'common/chrome_counters.cc', |
| 42 | 'common/chrome_counters.h', |
| 43 | 'common/common_param_traits.cc', |
| 44 | 'common/common_param_traits.h', |
[email protected] | aee541e | 2010-03-19 01:52:45 | [diff] [blame] | 45 | 'common/content_settings.cc', |
| 46 | 'common/content_settings.h', |
[email protected] | f895131a | 2010-07-23 05:36:02 | [diff] [blame] | 47 | 'common/content_settings_helper.cc', |
| 48 | 'common/content_settings_helper.h', |
[email protected] | aee541e | 2010-03-19 01:52:45 | [diff] [blame] | 49 | 'common/content_settings_types.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 50 | 'common/debug_flags.cc', |
| 51 | 'common/debug_flags.h', |
[email protected] | 7a4de7a6 | 2010-08-17 18:38:24 | [diff] [blame] | 52 | 'common/devtools_messages.cc', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 53 | 'common/devtools_messages.h', |
| 54 | 'common/devtools_messages_internal.h', |
[email protected] | 52785d4c | 2010-08-25 19:44:49 | [diff] [blame] | 55 | 'common/file_system/webfilesystem_impl.cc', |
| 56 | 'common/file_system/webfilesystem_impl.h', |
[email protected] | 2019966 | 2010-06-17 03:29:26 | [diff] [blame] | 57 | 'common/font_descriptor_mac.h', |
| 58 | 'common/font_descriptor_mac.mm', |
[email protected] | 58c321d | 2010-02-19 12:11:28 | [diff] [blame] | 59 | 'common/geoposition.cc', |
[email protected] | 7c927b6 | 2010-02-24 09:54:13 | [diff] [blame] | 60 | 'common/geoposition.h', |
[email protected] | 1bf14bc | 2010-07-09 16:10:43 | [diff] [blame] | 61 | 'common/gpu_info.h', |
| 62 | 'common/gpu_info.cc', |
[email protected] | 7a4de7a6 | 2010-08-17 18:38:24 | [diff] [blame] | 63 | 'common/gpu_messages.cc', |
[email protected] | c0fc094 | 2010-01-13 00:55:37 | [diff] [blame] | 64 | 'common/gpu_messages.h', |
| 65 | 'common/gpu_messages_internal.h', |
[email protected] | ee68378a | 2010-08-10 01:05:41 | [diff] [blame] | 66 | 'common/gpu_video_common.cc', |
| 67 | 'common/gpu_video_common.h', |
[email protected] | 5c71640c | 2010-07-14 14:29:40 | [diff] [blame] | 68 | 'common/indexed_db_key.cc', |
| 69 | 'common/indexed_db_key.h', |
[email protected] | 67a78516 | 2010-08-18 13:54:59 | [diff] [blame] | 70 | 'common/indexed_param_traits.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 71 | 'common/logging_chrome.cc', |
| 72 | 'common/logging_chrome.h', |
| 73 | 'common/main_function_params.h', |
| 74 | 'common/message_router.cc', |
| 75 | 'common/message_router.h', |
[email protected] | 1226abb | 2010-06-10 18:01:28 | [diff] [blame] | 76 | 'common/metrics_helpers.cc', |
[email protected] | 3e0f7d52 | 2010-06-18 04:09:14 | [diff] [blame] | 77 | 'common/metrics_helpers.h', |
[email protected] | 103607e | 2010-02-01 18:57:09 | [diff] [blame] | 78 | 'common/nacl_cmd_line.cc', |
| 79 | 'common/nacl_cmd_line.h', |
[email protected] | 7a4de7a6 | 2010-08-17 18:38:24 | [diff] [blame] | 80 | 'common/nacl_messages.cc', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 81 | 'common/nacl_messages.h', |
[email protected] | 0cfe5dae | 2010-08-17 00:24:54 | [diff] [blame] | 82 | 'common/nacl_messages_internal.h', |
[email protected] | 7a4de7a6 | 2010-08-17 18:38:24 | [diff] [blame] | 83 | 'common/nacl_types.h', |
[email protected] | 20136647 | 2010-07-16 17:22:49 | [diff] [blame] | 84 | 'common/notification_details.cc', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 85 | 'common/notification_details.h', |
| 86 | 'common/notification_observer.h', |
| 87 | 'common/notification_registrar.cc', |
| 88 | 'common/notification_registrar.h', |
| 89 | 'common/notification_service.cc', |
| 90 | 'common/notification_service.h', |
[email protected] | 20136647 | 2010-07-16 17:22:49 | [diff] [blame] | 91 | 'common/notification_source.cc', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 92 | 'common/notification_source.h', |
| 93 | 'common/notification_type.h', |
[email protected] | ed17c7b | 2010-07-14 12:03:33 | [diff] [blame] | 94 | 'common/plugin_group.cc', |
| 95 | 'common/plugin_group.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 96 | 'common/process_watcher_mac.cc', |
| 97 | 'common/process_watcher_posix.cc', |
| 98 | 'common/process_watcher_win.cc', |
| 99 | 'common/process_watcher.h', |
| 100 | 'common/property_bag.cc', |
| 101 | 'common/property_bag.h', |
| 102 | 'common/ref_counted_util.h', |
[email protected] | 7c927b6 | 2010-02-24 09:54:13 | [diff] [blame] | 103 | 'common/resource_response.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 104 | 'common/result_codes.h', |
| 105 | 'common/sandbox_init_wrapper.h', |
| 106 | 'common/sandbox_init_wrapper_linux.cc', |
| 107 | 'common/sandbox_init_wrapper_mac.cc', |
| 108 | 'common/sandbox_init_wrapper_win.cc', |
| 109 | 'common/sandbox_mac.h', |
| 110 | 'common/sandbox_mac.mm', |
[email protected] | 382abc2 | 2010-01-17 10:09:39 | [diff] [blame] | 111 | 'common/sandbox_policy.cc', |
| 112 | 'common/sandbox_policy.h', |
[email protected] | 5c71640c | 2010-07-14 14:29:40 | [diff] [blame] | 113 | 'common/serialized_script_value.cc', |
| 114 | 'common/serialized_script_value.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 115 | 'common/time_format.cc', |
| 116 | 'common/time_format.h', |
[email protected] | 4641d3c | 2010-08-26 21:44:13 | [diff] [blame^] | 117 | 'common/chrome_version_info.h', |
| 118 | 'common/chrome_version_info.cc', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 119 | 'common/win_safe_util.cc', |
| 120 | 'common/win_safe_util.h', |
| 121 | ], |
| 122 | }], |
| 123 | ], |
| 124 | }, |
| 125 | 'targets': [ |
| 126 | { |
| 127 | 'target_name': 'common', |
| 128 | 'type': '<(library)', |
| 129 | 'msvs_guid': '899F1280-3441-4D1F-BA04-CCD6208D9146', |
| 130 | 'variables': { |
| 131 | 'chrome_common_target': 1, |
| 132 | }, |
| 133 | # TODO(gregoryd): This could be shared with the 64-bit target, but |
| 134 | # it does not work due to a gyp issue. |
| 135 | 'direct_dependent_settings': { |
| 136 | 'include_dirs': [ |
| 137 | '..', |
| 138 | ], |
| 139 | }, |
| 140 | 'dependencies': [ |
| 141 | # TODO(gregoryd): chrome_resources and chrome_strings could be |
| 142 | # shared with the 64-bit target, but it does not work due to a gyp |
| 143 | # issue. |
| 144 | 'chrome_resources', |
| 145 | 'chrome_strings', |
| 146 | 'common_constants', |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 147 | 'common_net', |
[email protected] | 0d64bb7 | 2010-07-07 05:36:38 | [diff] [blame] | 148 | 'default_plugin/default_plugin.gyp:default_plugin', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 149 | 'theme_resources', |
| 150 | '../app/app.gyp:app_base', |
| 151 | '../app/app.gyp:app_resources', |
| 152 | '../base/base.gyp:base', |
| 153 | '../base/base.gyp:base_i18n', |
| 154 | '../build/temp_gyp/googleurl.gyp:googleurl', |
| 155 | '../ipc/ipc.gyp:ipc', |
| 156 | '../net/net.gyp:net', |
[email protected] | 1309540 | 2010-07-20 00:15:43 | [diff] [blame] | 157 | '../printing/printing.gyp:printing', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 158 | '../skia/skia.gyp:skia', |
[email protected] | 423bfef | 2010-06-18 17:17:28 | [diff] [blame] | 159 | '../third_party/bzip2/bzip2.gyp:bzip2', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 160 | '../third_party/icu/icu.gyp:icui18n', |
| 161 | '../third_party/icu/icu.gyp:icuuc', |
| 162 | '../third_party/libxml/libxml.gyp:libxml', |
| 163 | '../third_party/sqlite/sqlite.gyp:sqlite', |
| 164 | '../third_party/zlib/zlib.gyp:zlib', |
| 165 | '../third_party/npapi/npapi.gyp:npapi', |
[email protected] | 69d3dfe8 | 2010-05-14 03:21:55 | [diff] [blame] | 166 | '../webkit/support/webkit_support.gyp:appcache', |
| 167 | '../webkit/support/webkit_support.gyp:glue', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 168 | ], |
| 169 | 'sources': [ |
| 170 | # .cc, .h, and .mm files under chrome/common that are not required for |
| 171 | # building 64-bit Windows targets. Test files are not included. |
| 172 | 'common/desktop_notifications/active_notification_tracker.h', |
| 173 | 'common/desktop_notifications/active_notification_tracker.cc', |
| 174 | 'common/extensions/extension.cc', |
| 175 | 'common/extensions/extension.h', |
[email protected] | 7c927b6 | 2010-02-24 09:54:13 | [diff] [blame] | 176 | 'common/extensions/extension_action.cc', |
| 177 | 'common/extensions/extension_action.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 178 | 'common/extensions/extension_constants.cc', |
| 179 | 'common/extensions/extension_constants.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 180 | 'common/extensions/extension_error_utils.cc', |
| 181 | 'common/extensions/extension_error_utils.h', |
[email protected] | 867a73e1 | 2010-03-19 20:45:46 | [diff] [blame] | 182 | 'common/extensions/extension_extent.cc', |
| 183 | 'common/extensions/extension_extent.h', |
[email protected] | 7c927b6 | 2010-02-24 09:54:13 | [diff] [blame] | 184 | 'common/extensions/extension_file_util.cc', |
| 185 | 'common/extensions/extension_file_util.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 186 | 'common/extensions/extension_l10n_util.cc', |
| 187 | 'common/extensions/extension_l10n_util.h', |
[email protected] | 8a58f9a | 2010-05-18 18:38:09 | [diff] [blame] | 188 | 'common/extensions/extension_localization_peer.cc', |
| 189 | 'common/extensions/extension_localization_peer.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 190 | 'common/extensions/extension_message_bundle.cc', |
| 191 | 'common/extensions/extension_message_bundle.h', |
| 192 | 'common/extensions/extension_resource.cc', |
| 193 | 'common/extensions/extension_resource.h', |
| 194 | 'common/extensions/extension_unpacker.cc', |
| 195 | 'common/extensions/extension_unpacker.h', |
| 196 | 'common/extensions/update_manifest.cc', |
| 197 | 'common/extensions/update_manifest.h', |
| 198 | 'common/extensions/url_pattern.cc', |
| 199 | 'common/extensions/url_pattern.h', |
| 200 | 'common/extensions/user_script.cc', |
| 201 | 'common/extensions/user_script.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 202 | 'common/web_resource/web_resource_unpacker.cc', |
| 203 | 'common/web_resource/web_resource_unpacker.h', |
| 204 | 'common/appcache/appcache_backend_proxy.cc', |
| 205 | 'common/appcache/appcache_backend_proxy.h', |
| 206 | 'common/appcache/appcache_dispatcher.cc', |
| 207 | 'common/appcache/appcache_dispatcher.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 208 | 'common/automation_constants.cc', |
| 209 | 'common/automation_constants.h', |
[email protected] | d27893f6 | 2010-07-03 05:47:42 | [diff] [blame] | 210 | 'common/child_process_host.cc', |
| 211 | 'common/child_process_host.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 212 | 'common/chrome_descriptors.h', |
| 213 | 'common/chrome_plugin_api.h', |
| 214 | 'common/chrome_plugin_lib.cc', |
| 215 | 'common/chrome_plugin_lib.h', |
| 216 | 'common/chrome_plugin_util.cc', |
| 217 | 'common/chrome_plugin_util.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 218 | 'common/common_glue.cc', |
| 219 | 'common/css_colors.h', |
[email protected] | 2b437e23 | 2010-04-02 01:30:08 | [diff] [blame] | 220 | 'common/database_util.cc', |
| 221 | 'common/database_util.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 222 | 'common/db_message_filter.cc', |
| 223 | 'common/db_message_filter.h', |
[email protected] | 2290cb86 | 2010-06-02 16:50:58 | [diff] [blame] | 224 | 'common/default_plugin.cc', |
| 225 | 'common/default_plugin.h', |
[email protected] | 106113b3 | 2010-04-26 22:17:37 | [diff] [blame] | 226 | 'common/deprecated/event_sys-inl.h', |
| 227 | 'common/deprecated/event_sys.h', |
[email protected] | 2290cb86 | 2010-06-02 16:50:58 | [diff] [blame] | 228 | 'common/dom_storage_common.h', |
[email protected] | 52785d4c | 2010-08-25 19:44:49 | [diff] [blame] | 229 | 'common/file_system/file_system_dispatcher.cc', |
| 230 | 'common/file_system/file_system_dispatcher.h', |
[email protected] | 865f3792 | 2010-05-23 16:43:44 | [diff] [blame] | 231 | 'common/font_loader_mac.h', |
| 232 | 'common/font_loader_mac.mm', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 233 | 'common/gears_api.h', |
| 234 | 'common/gpu_plugin.cc', |
| 235 | 'common/gpu_plugin.h', |
[email protected] | 6658ca8 | 2010-05-20 18:20:29 | [diff] [blame] | 236 | 'common/important_file_writer.cc', |
| 237 | 'common/important_file_writer.h', |
[email protected] | ea587b0 | 2010-05-21 15:01:35 | [diff] [blame] | 238 | 'common/json_pref_store.cc', |
| 239 | 'common/json_pref_store.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 240 | 'common/jstemplate_builder.cc', |
| 241 | 'common/jstemplate_builder.h', |
| 242 | 'common/libxml_utils.cc', |
| 243 | 'common/libxml_utils.h', |
| 244 | 'common/mru_cache.h', |
| 245 | 'common/navigation_gesture.h', |
| 246 | 'common/navigation_types.h', |
| 247 | 'common/native_web_keyboard_event.h', |
| 248 | 'common/native_web_keyboard_event_linux.cc', |
| 249 | 'common/native_web_keyboard_event_mac.mm', |
| 250 | 'common/native_web_keyboard_event_win.cc', |
| 251 | 'common/native_window_notification_source.h', |
[email protected] | bb0a6a0 | 2010-04-01 21:17:00 | [diff] [blame] | 252 | 'common/page_transition_types.cc', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 253 | 'common/page_transition_types.h', |
| 254 | 'common/page_zoom.h', |
[email protected] | 4e0616e | 2010-05-28 14:55:53 | [diff] [blame] | 255 | 'common/pepper_plugin_registry.cc', |
| 256 | 'common/pepper_plugin_registry.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 257 | 'common/plugin_carbon_interpose_constants_mac.h', |
| 258 | 'common/plugin_carbon_interpose_constants_mac.cc', |
[email protected] | 7a4de7a6 | 2010-08-17 18:38:24 | [diff] [blame] | 259 | 'common/plugin_messages.cc', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 260 | 'common/plugin_messages.h', |
| 261 | 'common/plugin_messages_internal.h', |
[email protected] | 7a4de7a6 | 2010-08-17 18:38:24 | [diff] [blame] | 262 | 'common/render_messages.cc', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 263 | 'common/render_messages.h', |
[email protected] | 939856a | 2010-08-24 20:29:02 | [diff] [blame] | 264 | 'common/render_messages_params.cc', |
| 265 | 'common/render_messages_params.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 266 | 'common/render_messages_internal.h', |
| 267 | 'common/renderer_preferences.h', |
| 268 | 'common/resource_dispatcher.cc', |
| 269 | 'common/resource_dispatcher.h', |
| 270 | 'common/security_filter_peer.cc', |
| 271 | 'common/security_filter_peer.h', |
[email protected] | 7a4de7a6 | 2010-08-17 18:38:24 | [diff] [blame] | 272 | 'common/service_messages.cc', |
[email protected] | 38fe196 | 2010-07-31 07:57:00 | [diff] [blame] | 273 | 'common/service_messages.h', |
| 274 | 'common/services_messages_internal.h', |
[email protected] | 7a4de7a6 | 2010-08-17 18:38:24 | [diff] [blame] | 275 | 'common/service_process_type.h', |
| 276 | 'common/service_process_util.cc', |
| 277 | 'common/service_process_util.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 278 | 'common/socket_stream_dispatcher.cc', |
| 279 | 'common/socket_stream_dispatcher.h', |
| 280 | 'common/spellcheck_common.cc', |
| 281 | 'common/spellcheck_common.h', |
| 282 | 'common/sqlite_compiled_statement.cc', |
| 283 | 'common/sqlite_compiled_statement.h', |
| 284 | 'common/sqlite_utils.cc', |
| 285 | 'common/sqlite_utils.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 286 | 'common/thumbnail_score.cc', |
| 287 | 'common/thumbnail_score.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 288 | 'common/url_constants.cc', |
| 289 | 'common/url_constants.h', |
[email protected] | 7a4de7a6 | 2010-08-17 18:38:24 | [diff] [blame] | 290 | 'common/utility_messages.cc', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 291 | 'common/utility_messages.h', |
| 292 | 'common/utility_messages_internal.h', |
| 293 | 'common/view_types.cc', |
| 294 | 'common/view_types.h', |
| 295 | 'common/visitedlink_common.cc', |
| 296 | 'common/visitedlink_common.h', |
[email protected] | 2b437e23 | 2010-04-02 01:30:08 | [diff] [blame] | 297 | 'common/web_database_observer_impl.cc', |
| 298 | 'common/web_database_observer_impl.h', |
[email protected] | 7a4de7a6 | 2010-08-17 18:38:24 | [diff] [blame] | 299 | 'common/webkit_param_traits.cc', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 300 | 'common/webkit_param_traits.h', |
| 301 | 'common/webmessageportchannel_impl.cc', |
| 302 | 'common/webmessageportchannel_impl.h', |
[email protected] | 534c66c | 2010-04-28 22:53:11 | [diff] [blame] | 303 | 'common/window_container_type.cc', |
| 304 | 'common/window_container_type.h', |
[email protected] | 7a4de7a6 | 2010-08-17 18:38:24 | [diff] [blame] | 305 | 'common/worker_messages.cc', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 306 | 'common/worker_messages.h', |
| 307 | 'common/worker_messages_internal.h', |
| 308 | 'common/worker_thread_ticker.cc', |
| 309 | 'common/worker_thread_ticker.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 310 | 'common/zip.cc', # Requires zlib directly. |
| 311 | 'common/zip.h', |
| 312 | ], |
| 313 | 'conditions': [ |
[email protected] | 6f5b3b29 | 2010-02-22 20:56:15 | [diff] [blame] | 314 | ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 315 | 'dependencies': [ |
| 316 | '../build/linux/system.gyp:gtk', |
| 317 | ], |
| 318 | 'export_dependent_settings': [ |
| 319 | '../third_party/sqlite/sqlite.gyp:sqlite', |
| 320 | ], |
| 321 | 'link_settings': { |
| 322 | 'libraries': [ |
| 323 | '-lX11', |
| 324 | '-lXrender', |
[email protected] | 8b46c13b | 2010-01-26 19:50:54 | [diff] [blame] | 325 | '-lXss', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 326 | '-lXext', |
| 327 | ], |
| 328 | }, |
| 329 | },], |
[email protected] | 4641d3c | 2010-08-26 21:44:13 | [diff] [blame^] | 330 | [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { |
| 331 | 'include_dirs': [ |
| 332 | '<(SHARED_INTERMEDIATE_DIR)', |
| 333 | ], |
| 334 | 'actions': [ |
| 335 | { |
| 336 | 'action_name': 'posix_version', |
| 337 | 'variables': { |
| 338 | 'lastchange_path': |
| 339 | '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE', |
| 340 | 'version_py_path': 'tools/build/version.py', |
| 341 | 'version_path': 'VERSION', |
| 342 | 'template_input_path': 'common/chrome_version_info_posix.h.version', |
| 343 | }, |
| 344 | 'conditions': [ |
| 345 | [ 'branding == "Chrome"', { |
| 346 | 'variables': { |
| 347 | 'branding_path': |
| 348 | 'app/theme/google_chrome/BRANDING', |
| 349 | }, |
| 350 | }, { # else branding!="Chrome" |
| 351 | 'variables': { |
| 352 | 'branding_path': |
| 353 | 'app/theme/chromium/BRANDING', |
| 354 | }, |
| 355 | }], |
| 356 | ], |
| 357 | 'inputs': [ |
| 358 | '<(template_input_path)', |
| 359 | '<(version_path)', |
| 360 | '<(branding_path)', |
| 361 | '<(lastchange_path)', |
| 362 | ], |
| 363 | 'outputs': [ |
| 364 | '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version_info_posix.h', |
| 365 | ], |
| 366 | 'action': [ |
| 367 | 'python', |
| 368 | '<(version_py_path)', |
| 369 | '-f', '<(version_path)', |
| 370 | '-f', '<(branding_path)', |
| 371 | '-f', '<(lastchange_path)', |
| 372 | '<(template_input_path)', |
| 373 | '<@(_outputs)', |
| 374 | ], |
| 375 | 'message': 'Generating version information', |
| 376 | }, |
| 377 | ], |
| 378 | }], |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 379 | ['OS=="linux" and selinux==1', { |
| 380 | 'dependencies': [ |
| 381 | '../build/linux/system.gyp:selinux', |
| 382 | ], |
| 383 | }], |
| 384 | ['OS=="mac"', { |
| 385 | 'sources!': [ |
| 386 | 'common/process_watcher_posix.cc', |
| 387 | ], |
[email protected] | 1e652d02 | 2010-04-16 19:09:11 | [diff] [blame] | 388 | 'link_settings': { |
| 389 | 'mac_bundle_resources': [ |
| 390 | 'common/common.sb', |
| 391 | ], |
| 392 | }, |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 393 | }], |
[email protected] | 382abc2 | 2010-01-17 10:09:39 | [diff] [blame] | 394 | ['OS!="win"', { |
| 395 | 'sources!': [ |
| 396 | 'common/sandbox_policy.cc', |
| 397 | ], |
| 398 | }], |
[email protected] | 8cc9dd62 | 2010-06-28 15:13:10 | [diff] [blame] | 399 | ['remoting==1', { |
| 400 | 'dependencies': [ |
| 401 | '../remoting/remoting.gyp:chromoting_plugin', |
| 402 | ], |
| 403 | }], |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 404 | ], |
| 405 | 'export_dependent_settings': [ |
| 406 | '../app/app.gyp:app_base', |
| 407 | ], |
| 408 | }, |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 409 | { |
| 410 | 'target_name': 'common_net', |
| 411 | 'type': '<(library)', |
| 412 | 'sources': [ |
[email protected] | f3d0174 | 2010-05-07 02:53:55 | [diff] [blame] | 413 | 'common/net/http_return.h', |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 414 | 'common/net/net_resource_provider.cc', |
| 415 | 'common/net/net_resource_provider.h', |
[email protected] | 3530cd9 | 2010-06-27 06:22:01 | [diff] [blame] | 416 | 'common/net/predictor_common.h', |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 417 | 'common/net/socket_stream.h', |
[email protected] | 68d2a05f | 2010-05-07 21:39:55 | [diff] [blame] | 418 | 'common/net/url_fetcher.cc', |
| 419 | 'common/net/url_fetcher.h', |
| 420 | 'common/net/url_fetcher_protect.cc', |
| 421 | 'common/net/url_fetcher_protect.h', |
| 422 | 'common/net/url_request_context_getter.cc', |
| 423 | 'common/net/url_request_context_getter.h', |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 424 | 'common/net/url_request_intercept_job.cc', |
| 425 | 'common/net/url_request_intercept_job.h', |
[email protected] | a0e7704 | 2010-07-01 22:28:23 | [diff] [blame] | 426 | 'common/net/gaia/gaia_auth_consumer.h', |
[email protected] | f3d0174 | 2010-05-07 02:53:55 | [diff] [blame] | 427 | 'common/net/gaia/gaia_authenticator.cc', |
| 428 | 'common/net/gaia/gaia_authenticator.h', |
[email protected] | a0e7704 | 2010-07-01 22:28:23 | [diff] [blame] | 429 | 'common/net/gaia/gaia_authenticator2.cc', |
| 430 | 'common/net/gaia/gaia_authenticator2.h', |
[email protected] | 99074c5 | 2010-08-19 18:44:19 | [diff] [blame] | 431 | 'common/net/gaia/google_service_auth_error.h', |
[email protected] | f3d0174 | 2010-05-07 02:53:55 | [diff] [blame] | 432 | 'common/net/gaia/signin.h', |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 433 | ], |
| 434 | 'dependencies': [ |
| 435 | 'chrome_resources', |
| 436 | 'chrome_strings', |
[email protected] | 8dc64b4 | 2010-05-14 07:26:42 | [diff] [blame] | 437 | '../app/app.gyp:app_base', |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 438 | '../base/base.gyp:base', |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 439 | '../net/net.gyp:net_resources', |
[email protected] | 8dc64b4 | 2010-05-14 07:26:42 | [diff] [blame] | 440 | '../net/net.gyp:net', |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 441 | ], |
| 442 | }, |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 443 | ], |
| 444 | 'conditions': [ |
| 445 | ['OS=="win"', { |
| 446 | 'targets': [ |
| 447 | { |
| 448 | 'target_name': 'common_nacl_win64', |
| 449 | 'type': '<(library)', |
| 450 | 'msvs_guid': '3AB5C5E9-470C-419B-A0AE-C7381FB632FA', |
| 451 | 'variables': { |
| 452 | 'chrome_common_target': 1, |
| 453 | }, |
| 454 | 'dependencies': [ |
| 455 | # TODO(gregoryd): chrome_resources and chrome_strings could be |
| 456 | # shared with the 32-bit target, but it does not work due to a gyp |
| 457 | # issue. |
| 458 | 'chrome_resources', |
| 459 | 'chrome_strings', |
| 460 | 'common_constants_win64', |
| 461 | '../app/app.gyp:app_base_nacl_win64', |
| 462 | '../app/app.gyp:app_resources', |
| 463 | '../base/base.gyp:base_nacl_win64', |
| 464 | '../ipc/ipc.gyp:ipc_win64', |
[email protected] | 3e0f7d52 | 2010-06-18 04:09:14 | [diff] [blame] | 465 | '../third_party/libxml/libxml.gyp:libxml', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 466 | ], |
| 467 | 'include_dirs': [ |
| 468 | '../third_party/npapi', |
| 469 | '../third_party/icu/public/i18n', |
| 470 | '../third_party/icu/public/common', |
| 471 | # We usually get these skia directories by adding a dependency on |
| 472 | # skia, bu we don't need it for NaCl's 64-bit Windows support. The |
| 473 | # directories are required for resolving the includes in any case. |
| 474 | '../third_party/skia/include/core', |
| 475 | '../skia/config', |
| 476 | ], |
| 477 | 'defines': [ |
| 478 | 'EXCLUDE_SKIA_DEPENDENCIES', |
| 479 | '<@(nacl_win64_defines)', |
| 480 | ], |
| 481 | 'sources': [ |
| 482 | '../webkit/glue/webkit_glue_dummy.cc', |
[email protected] | 52785d4c | 2010-08-25 19:44:49 | [diff] [blame] | 483 | 'common/file_system/file_system_dispatcher_dummy.cc', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 484 | 'common/resource_dispatcher_dummy.cc', |
| 485 | 'common/socket_stream_dispatcher_dummy.cc', |
[email protected] | 7fc13ed | 2010-03-06 05:06:20 | [diff] [blame] | 486 | 'common/url_constants.cc', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 487 | ], |
| 488 | 'export_dependent_settings': [ |
| 489 | '../app/app.gyp:app_base_nacl_win64', |
| 490 | ], |
| 491 | # TODO(gregoryd): This could be shared with the 32-bit target, but |
| 492 | # it does not work due to a gyp issue. |
| 493 | 'direct_dependent_settings': { |
| 494 | 'include_dirs': [ |
| 495 | '..', |
| 496 | ], |
| 497 | }, |
| 498 | 'configurations': { |
| 499 | 'Common_Base': { |
| 500 | 'msvs_target_platform': 'x64', |
| 501 | }, |
| 502 | }, |
| 503 | }, |
| 504 | ], |
| 505 | }], |
| 506 | ], |
| 507 | } |