[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 | { |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 6 | 'targets': [ |
| 7 | { |
| 8 | 'target_name': 'common', |
[email protected] | 5a54733 | 2011-05-19 23:18:53 | [diff] [blame] | 9 | 'type': 'static_library', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 10 | 'variables': { |
| 11 | 'chrome_common_target': 1, |
[email protected] | 1cd90f7 | 2011-11-21 18:02:44 | [diff] [blame^] | 12 | # TODO(thakis): Turn this on. Blocked on g_log_function_mapping in |
| 13 | # ipc_message_macros.h. http://crbug.com/101600 |
| 14 | #'enable_wexit_time_destructors': 1, |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 15 | }, |
[email protected] | 93156cec | 2011-09-12 21:14:44 | [diff] [blame] | 16 | 'include_dirs': [ |
| 17 | '..', |
| 18 | ], |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 19 | 'direct_dependent_settings': { |
| 20 | 'include_dirs': [ |
| 21 | '..', |
| 22 | ], |
| 23 | }, |
| 24 | 'dependencies': [ |
| 25 | # TODO(gregoryd): chrome_resources and chrome_strings could be |
| 26 | # shared with the 64-bit target, but it does not work due to a gyp |
| 27 | # issue. |
[email protected] | f8636972 | 2011-02-17 13:25:23 | [diff] [blame] | 28 | 'app/policy/cloud_policy_codegen.gyp:policy', |
[email protected] | ebee6770 | 2011-11-03 19:27:33 | [diff] [blame] | 29 | 'chrome_resources.gyp:chrome_resources', |
| 30 | 'chrome_resources.gyp:chrome_strings', |
| 31 | 'chrome_resources.gyp:theme_resources', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 32 | 'common_constants', |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 33 | 'common_net', |
[email protected] | b9bbf553 | 2011-11-03 07:35:22 | [diff] [blame] | 34 | 'common_version', |
[email protected] | 0d64bb7 | 2010-07-07 05:36:38 | [diff] [blame] | 35 | 'default_plugin/default_plugin.gyp:default_plugin', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 36 | '../base/base.gyp:base', |
| 37 | '../base/base.gyp:base_i18n', |
[email protected] | 23bb71f | 2011-04-21 22:22:10 | [diff] [blame] | 38 | '../base/base.gyp:base_static', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 39 | '../build/temp_gyp/googleurl.gyp:googleurl', |
[email protected] | 6c54e7e4 | 2011-03-02 20:52:34 | [diff] [blame] | 40 | '../content/content.gyp:content_common', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 41 | '../ipc/ipc.gyp:ipc', |
| 42 | '../net/net.gyp:net', |
[email protected] | 1309540 | 2010-07-20 00:15:43 | [diff] [blame] | 43 | '../printing/printing.gyp:printing', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 44 | '../skia/skia.gyp:skia', |
[email protected] | 423bfef | 2010-06-18 17:17:28 | [diff] [blame] | 45 | '../third_party/bzip2/bzip2.gyp:bzip2', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 46 | '../third_party/icu/icu.gyp:icui18n', |
| 47 | '../third_party/icu/icu.gyp:icuuc', |
| 48 | '../third_party/libxml/libxml.gyp:libxml', |
| 49 | '../third_party/sqlite/sqlite.gyp:sqlite', |
| 50 | '../third_party/zlib/zlib.gyp:zlib', |
[email protected] | 29b25d09 | 2011-06-29 20:57:34 | [diff] [blame] | 51 | '../ui/ui.gyp:ui_resources', |
[email protected] | 51bf161 | 2011-08-16 23:19:06 | [diff] [blame] | 52 | '../ui/ui.gyp:ui_resources_standard', |
[email protected] | 69d3dfe8 | 2010-05-14 03:21:55 | [diff] [blame] | 53 | '../webkit/support/webkit_support.gyp:glue', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 54 | ], |
| 55 | 'sources': [ |
[email protected] | 93156cec | 2011-09-12 21:14:44 | [diff] [blame] | 56 | 'common/about_handler.cc', |
| 57 | 'common/about_handler.h', |
[email protected] | 4a6d7415 | 2011-09-26 20:42:30 | [diff] [blame] | 58 | 'common/all_messages.h', |
[email protected] | 93156cec | 2011-09-12 21:14:44 | [diff] [blame] | 59 | 'common/attrition_experiments.h', |
| 60 | 'common/auto_start_linux.cc', |
| 61 | 'common/auto_start_linux.h', |
| 62 | 'common/autofill_messages.h', |
[email protected] | cdb8bc28 | 2010-11-22 19:23:06 | [diff] [blame] | 63 | 'common/automation_constants.cc', |
| 64 | 'common/automation_constants.h', |
| 65 | 'common/automation_messages.cc', |
| 66 | 'common/automation_messages.h', |
| 67 | 'common/automation_messages_internal.h', |
| 68 | 'common/badge_util.cc', |
| 69 | 'common/badge_util.h', |
[email protected] | 23bb71f | 2011-04-21 22:22:10 | [diff] [blame] | 70 | 'common/bzip2_error_handler.cc', |
[email protected] | 93156cec | 2011-09-12 21:14:44 | [diff] [blame] | 71 | 'common/child_process_logging.h', |
| 72 | 'common/child_process_logging_linux.cc', |
| 73 | 'common/child_process_logging_mac.mm', |
| 74 | 'common/child_process_logging_win.cc', |
[email protected] | 50e52cd | 2011-03-10 00:57:29 | [diff] [blame] | 75 | 'common/chrome_content_client.cc', |
| 76 | 'common/chrome_content_client.h', |
[email protected] | 93156cec | 2011-09-12 21:14:44 | [diff] [blame] | 77 | 'common/chrome_notification_types.h', |
[email protected] | 208d3b7 | 2011-08-31 22:35:13 | [diff] [blame] | 78 | 'common/chrome_plugin_messages.h', |
[email protected] | c530c85 | 2011-10-24 18:18:34 | [diff] [blame] | 79 | 'common/chrome_result_codes.h', |
[email protected] | 19a5c744 | 2011-10-21 20:00:41 | [diff] [blame] | 80 | 'common/chrome_utility_messages.h', |
[email protected] | 93156cec | 2011-09-12 21:14:44 | [diff] [blame] | 81 | 'common/chrome_version_info.cc', |
| 82 | 'common/chrome_version_info_linux.cc', |
| 83 | 'common/chrome_version_info_mac.mm', |
| 84 | 'common/chrome_version_info_win.cc', |
| 85 | 'common/chrome_version_info.h', |
[email protected] | 13aec6c4 | 2011-10-27 21:22:08 | [diff] [blame] | 86 | 'common/cloud_print/cloud_print_class_mac.h', |
| 87 | 'common/cloud_print/cloud_print_class_mac.mm', |
[email protected] | de119cf2 | 2011-05-11 20:41:35 | [diff] [blame] | 88 | 'common/cloud_print/cloud_print_proxy_info.cc', |
| 89 | 'common/cloud_print/cloud_print_proxy_info.h', |
[email protected] | ceee766 | 2011-05-12 21:06:00 | [diff] [blame] | 90 | 'common/common_api.h', |
[email protected] | fffaf97 | 2011-03-24 01:34:35 | [diff] [blame] | 91 | 'common/common_message_generator.cc', |
| 92 | 'common/common_message_generator.h', |
[email protected] | 79d68c6 | 2011-04-15 21:07:03 | [diff] [blame] | 93 | 'common/common_param_traits.cc', |
| 94 | 'common/common_param_traits.h', |
[email protected] | 93156cec | 2011-09-12 21:14:44 | [diff] [blame] | 95 | 'common/content_settings.cc', |
| 96 | 'common/content_settings.h', |
| 97 | 'common/content_settings_helper.cc', |
| 98 | 'common/content_settings_helper.h', |
[email protected] | 1d03fa3 | 2011-09-21 08:19:27 | [diff] [blame] | 99 | 'common/content_settings_pattern.cc', |
| 100 | 'common/content_settings_pattern.h', |
| 101 | 'common/content_settings_pattern_parser.cc', |
| 102 | 'common/content_settings_pattern_parser.h', |
[email protected] | 93156cec | 2011-09-12 21:14:44 | [diff] [blame] | 103 | 'common/content_settings_types.h', |
[email protected] | 083917c8 | 2011-07-13 00:34:35 | [diff] [blame] | 104 | 'common/custom_handlers/protocol_handler.cc', |
| 105 | 'common/custom_handlers/protocol_handler.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 106 | 'common/extensions/extension.cc', |
| 107 | 'common/extensions/extension.h', |
[email protected] | 7c927b6 | 2010-02-24 09:54:13 | [diff] [blame] | 108 | 'common/extensions/extension_action.cc', |
| 109 | 'common/extensions/extension_action.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 110 | 'common/extensions/extension_constants.cc', |
| 111 | 'common/extensions/extension_constants.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 112 | 'common/extensions/extension_error_utils.cc', |
| 113 | 'common/extensions/extension_error_utils.h', |
[email protected] | 7c927b6 | 2010-02-24 09:54:13 | [diff] [blame] | 114 | 'common/extensions/extension_file_util.cc', |
| 115 | 'common/extensions/extension_file_util.h', |
[email protected] | 807871f | 2010-09-16 01:04:48 | [diff] [blame] | 116 | 'common/extensions/extension_icon_set.cc', |
| 117 | 'common/extensions/extension_icon_set.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 118 | 'common/extensions/extension_l10n_util.cc', |
| 119 | 'common/extensions/extension_l10n_util.h', |
[email protected] | 8a58f9a | 2010-05-18 18:38:09 | [diff] [blame] | 120 | 'common/extensions/extension_localization_peer.cc', |
| 121 | 'common/extensions/extension_localization_peer.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 122 | 'common/extensions/extension_message_bundle.cc', |
| 123 | 'common/extensions/extension_message_bundle.h', |
[email protected] | 44c49c9 | 2011-03-28 16:17:23 | [diff] [blame] | 124 | 'common/extensions/extension_messages.cc', |
| 125 | 'common/extensions/extension_messages.h', |
[email protected] | 0d3e4a2 | 2011-06-23 19:02:52 | [diff] [blame] | 126 | 'common/extensions/extension_permission_set.cc', |
| 127 | 'common/extensions/extension_permission_set.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 128 | 'common/extensions/extension_resource.cc', |
| 129 | 'common/extensions/extension_resource.h', |
[email protected] | ec7db28 | 2011-01-29 01:11:36 | [diff] [blame] | 130 | 'common/extensions/extension_set.cc', |
| 131 | 'common/extensions/extension_set.h', |
[email protected] | e2dffe0 | 2011-01-20 20:30:06 | [diff] [blame] | 132 | 'common/extensions/extension_sidebar_defaults.h', |
| 133 | 'common/extensions/extension_sidebar_utils.cc', |
| 134 | 'common/extensions/extension_sidebar_utils.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 135 | 'common/extensions/extension_unpacker.cc', |
| 136 | 'common/extensions/extension_unpacker.h', |
[email protected] | b6b805e9 | 2011-04-16 09:24:14 | [diff] [blame] | 137 | 'common/extensions/file_browser_handler.cc', |
[email protected] | 3381f17 | 2011-05-25 00:20:42 | [diff] [blame] | 138 | 'common/extensions/file_browser_handler.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 139 | 'common/extensions/update_manifest.cc', |
| 140 | 'common/extensions/update_manifest.h', |
| 141 | 'common/extensions/url_pattern.cc', |
| 142 | 'common/extensions/url_pattern.h', |
[email protected] | cced75a | 2011-05-20 08:31:12 | [diff] [blame] | 143 | 'common/extensions/url_pattern_set.cc', |
| 144 | 'common/extensions/url_pattern_set.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 145 | 'common/extensions/user_script.cc', |
| 146 | 'common/extensions/user_script.h', |
[email protected] | 83820d4 | 2011-11-12 22:03:11 | [diff] [blame] | 147 | 'common/extensions/api/extension_api.cc', |
| 148 | 'common/extensions/api/extension_api.h', |
[email protected] | 93156cec | 2011-09-12 21:14:44 | [diff] [blame] | 149 | 'common/external_ipc_fuzzer.h', |
| 150 | 'common/external_ipc_fuzzer.cc', |
[email protected] | ae4efe4 | 2011-04-18 21:28:05 | [diff] [blame] | 151 | 'common/favicon_url.cc', |
| 152 | 'common/favicon_url.h', |
[email protected] | 93156cec | 2011-09-12 21:14:44 | [diff] [blame] | 153 | 'common/guid.cc', |
| 154 | 'common/guid.h', |
| 155 | 'common/guid_posix.cc', |
| 156 | 'common/guid_win.cc', |
| 157 | 'common/icon_messages.h', |
[email protected] | 6658ca8 | 2010-05-20 18:20:29 | [diff] [blame] | 158 | 'common/important_file_writer.cc', |
| 159 | 'common/important_file_writer.h', |
[email protected] | 93156cec | 2011-09-12 21:14:44 | [diff] [blame] | 160 | 'common/instant_types.h', |
[email protected] | ea587b0 | 2010-05-21 15:01:35 | [diff] [blame] | 161 | 'common/json_pref_store.cc', |
| 162 | 'common/json_pref_store.h', |
[email protected] | 639e671 | 2010-11-11 22:21:43 | [diff] [blame] | 163 | 'common/json_schema_validator.cc', |
| 164 | 'common/json_schema_validator.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 165 | 'common/jstemplate_builder.cc', |
| 166 | 'common/jstemplate_builder.h', |
[email protected] | 93156cec | 2011-09-12 21:14:44 | [diff] [blame] | 167 | 'common/logging_chrome.cc', |
| 168 | 'common/logging_chrome.h', |
[email protected] | 4682124 | 2011-08-19 13:59:59 | [diff] [blame] | 169 | 'common/mac/app_mode_common.h', |
| 170 | 'common/mac/app_mode_common.mm', |
[email protected] | 00ecec5 | 2011-08-19 20:01:24 | [diff] [blame] | 171 | 'common/mac/cfbundle_blocker.h', |
| 172 | 'common/mac/cfbundle_blocker.mm', |
[email protected] | 4682124 | 2011-08-19 13:59:59 | [diff] [blame] | 173 | 'common/mac/launchd.h', |
| 174 | 'common/mac/launchd.mm', |
[email protected] | d02437b | 2011-09-06 17:25:15 | [diff] [blame] | 175 | 'common/mac/objc_method_swizzle.h', |
| 176 | 'common/mac/objc_method_swizzle.mm', |
| 177 | 'common/mac/objc_zombie.h', |
| 178 | 'common/mac/objc_zombie.mm', |
[email protected] | 93156cec | 2011-09-12 21:14:44 | [diff] [blame] | 179 | 'common/metrics_helpers.cc', |
| 180 | 'common/metrics_helpers.h', |
[email protected] | cac267c | 2011-09-29 15:18:10 | [diff] [blame] | 181 | 'common/metrics_log_manager.cc', |
| 182 | 'common/metrics_log_manager.h', |
[email protected] | 93156cec | 2011-09-12 21:14:44 | [diff] [blame] | 183 | 'common/multi_process_lock.h', |
| 184 | 'common/multi_process_lock_linux.cc', |
| 185 | 'common/multi_process_lock_mac.cc', |
| 186 | 'common/multi_process_lock_win.cc', |
| 187 | 'common/nacl_cmd_line.cc', |
| 188 | 'common/nacl_cmd_line.h', |
| 189 | 'common/nacl_messages.cc', |
| 190 | 'common/nacl_messages.h', |
| 191 | 'common/nacl_types.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 192 | 'common/libxml_utils.cc', |
| 193 | 'common/libxml_utils.h', |
[email protected] | f2d1f61 | 2010-12-09 15:10:17 | [diff] [blame] | 194 | 'common/persistent_pref_store.h', |
[email protected] | 0f1afed | 2010-12-15 17:22:28 | [diff] [blame] | 195 | 'common/pref_store.cc', |
[email protected] | ce1850e9 | 2010-10-15 08:40:58 | [diff] [blame] | 196 | 'common/pref_store.h', |
[email protected] | b4bd67a | 2011-08-22 19:04:09 | [diff] [blame] | 197 | 'common/print_messages.cc', |
[email protected] | 1375e3ab | 2011-03-24 17:07:22 | [diff] [blame] | 198 | 'common/print_messages.h', |
[email protected] | 93156cec | 2011-09-12 21:14:44 | [diff] [blame] | 199 | 'common/profiling.cc', |
| 200 | 'common/profiling.h', |
[email protected] | 51a0181 | 2011-05-05 08:46:11 | [diff] [blame] | 201 | 'common/random.cc', |
| 202 | 'common/random.h', |
[email protected] | 93156cec | 2011-09-12 21:14:44 | [diff] [blame] | 203 | 'common/ref_counted_util.h', |
[email protected] | 7a4de7a6 | 2010-08-17 18:38:24 | [diff] [blame] | 204 | 'common/render_messages.cc', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 205 | 'common/render_messages.h', |
[email protected] | 93156cec | 2011-09-12 21:14:44 | [diff] [blame] | 206 | 'common/safe_browsing/safebrowsing_messages.h', |
[email protected] | c08e793 | 2011-03-29 04:08:14 | [diff] [blame] | 207 | 'common/search_provider.h', |
[email protected] | 38fe196 | 2010-07-31 07:57:00 | [diff] [blame] | 208 | 'common/service_messages.h', |
[email protected] | 7a4de7a6 | 2010-08-17 18:38:24 | [diff] [blame] | 209 | 'common/service_process_util.cc', |
| 210 | 'common/service_process_util.h', |
[email protected] | 56f0f26 | 2011-02-24 17:14:36 | [diff] [blame] | 211 | 'common/service_process_util_linux.cc', |
| 212 | 'common/service_process_util_mac.mm', |
[email protected] | 14635494 | 2010-10-13 20:27:04 | [diff] [blame] | 213 | 'common/service_process_util_posix.cc', |
[email protected] | 56f0f26 | 2011-02-24 17:14:36 | [diff] [blame] | 214 | 'common/service_process_util_posix.h', |
[email protected] | 14635494 | 2010-10-13 20:27:04 | [diff] [blame] | 215 | 'common/service_process_util_win.cc', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 216 | 'common/spellcheck_common.cc', |
| 217 | 'common/spellcheck_common.h', |
[email protected] | 3e26719 | 2011-03-25 01:55:45 | [diff] [blame] | 218 | 'common/spellcheck_messages.h', |
[email protected] | e917a28 | 2011-10-27 14:35:38 | [diff] [blame] | 219 | 'common/string_ordinal.cc', |
| 220 | 'common/string_ordinal.h', |
[email protected] | 93156cec | 2011-09-12 21:14:44 | [diff] [blame] | 221 | 'common/switch_utils.cc', |
| 222 | 'common/switch_utils.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 223 | 'common/thumbnail_score.cc', |
| 224 | 'common/thumbnail_score.h', |
[email protected] | 93156cec | 2011-09-12 21:14:44 | [diff] [blame] | 225 | 'common/time_format.cc', |
| 226 | 'common/time_format.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 227 | 'common/url_constants.cc', |
| 228 | 'common/url_constants.h', |
[email protected] | ee162d8 | 2011-10-06 06:35:37 | [diff] [blame] | 229 | 'common/chrome_view_types.cc', |
| 230 | 'common/chrome_view_types.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 231 | 'common/visitedlink_common.cc', |
| 232 | 'common/visitedlink_common.h', |
[email protected] | 38789d8 | 2010-11-17 06:03:44 | [diff] [blame] | 233 | 'common/web_apps.cc', |
| 234 | 'common/web_apps.h', |
[email protected] | cdb8bc28 | 2010-11-22 19:23:06 | [diff] [blame] | 235 | 'common/web_resource/web_resource_unpacker.cc', |
| 236 | 'common/web_resource/web_resource_unpacker.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 237 | 'common/worker_thread_ticker.cc', |
| 238 | 'common/worker_thread_ticker.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 239 | 'common/zip.cc', # Requires zlib directly. |
| 240 | 'common/zip.h', |
[email protected] | 79b2024f | 2011-11-09 19:32:12 | [diff] [blame] | 241 | 'common/zip_internal.cc', |
| 242 | 'common/zip_internal.h', |
[email protected] | 198e7782 | 2011-11-11 18:50:03 | [diff] [blame] | 243 | 'common/zip_reader.cc', |
| 244 | 'common/zip_reader.h', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 245 | ], |
| 246 | 'conditions': [ |
[email protected] | 93156cec | 2011-09-12 21:14:44 | [diff] [blame] | 247 | ['OS=="win"', { |
| 248 | 'include_dirs': [ |
| 249 | '<(DEPTH)/third_party/wtl/include', |
| 250 | ], |
| 251 | }], |
[email protected] | cb5e507 | 2011-05-19 21:49:41 | [diff] [blame] | 252 | ['toolkit_uses_gtk == 1', { |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 253 | 'dependencies': [ |
| 254 | '../build/linux/system.gyp:gtk', |
| 255 | ], |
| 256 | 'export_dependent_settings': [ |
| 257 | '../third_party/sqlite/sqlite.gyp:sqlite', |
| 258 | ], |
| 259 | 'link_settings': { |
| 260 | 'libraries': [ |
| 261 | '-lX11', |
| 262 | '-lXrender', |
[email protected] | 8b46c13b | 2010-01-26 19:50:54 | [diff] [blame] | 263 | '-lXss', |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 264 | '-lXext', |
| 265 | ], |
| 266 | }, |
| 267 | },], |
[email protected] | 0ce3485 | 2011-09-23 20:00:51 | [diff] [blame] | 268 | ['use_aura==1', { |
| 269 | 'dependencies!': [ |
| 270 | 'default_plugin/default_plugin.gyp:default_plugin', |
| 271 | ], |
| 272 | }], |
[email protected] | b9bbf553 | 2011-11-03 07:35:22 | [diff] [blame] | 273 | ['OS=="linux" and selinux==1', { |
| 274 | 'dependencies': [ |
| 275 | '../build/linux/system.gyp:selinux', |
[email protected] | 4641d3c | 2010-08-26 21:44:13 | [diff] [blame] | 276 | ], |
[email protected] | b9bbf553 | 2011-11-03 07:35:22 | [diff] [blame] | 277 | }], |
| 278 | ['OS=="mac"', { |
| 279 | 'dependencies': [ |
| 280 | '../third_party/mach_override/mach_override.gyp:mach_override', |
| 281 | ], |
| 282 | 'include_dirs': [ |
| 283 | '../third_party/GTM', |
| 284 | ], |
| 285 | }], |
| 286 | ['remoting==1', { |
| 287 | 'dependencies': [ |
| 288 | '../remoting/remoting.gyp:remoting_client_plugin', |
| 289 | ], |
| 290 | }], |
| 291 | ], |
| 292 | 'export_dependent_settings': [ |
| 293 | '../base/base.gyp:base', |
| 294 | ], |
| 295 | }, |
| 296 | { |
| 297 | 'target_name': 'common_version', |
| 298 | 'type': 'none', |
| 299 | 'conditions': [ |
| 300 | ['os_posix == 1 and OS != "mac"', { |
| 301 | 'direct_dependent_settings': { |
| 302 | 'include_dirs': [ |
| 303 | '<(SHARED_INTERMEDIATE_DIR)', |
| 304 | ], |
| 305 | }, |
[email protected] | 79440c5 | 2010-08-27 22:53:02 | [diff] [blame] | 306 | # Because posix_version generates a header, we must set the |
| 307 | # hard_dependency flag. |
| 308 | 'hard_dependency': 1, |
[email protected] | 4641d3c | 2010-08-26 21:44:13 | [diff] [blame] | 309 | 'actions': [ |
| 310 | { |
| 311 | 'action_name': 'posix_version', |
| 312 | 'variables': { |
| 313 | 'lastchange_path': |
| 314 | '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE', |
| 315 | 'version_py_path': 'tools/build/version.py', |
| 316 | 'version_path': 'VERSION', |
| 317 | 'template_input_path': 'common/chrome_version_info_posix.h.version', |
| 318 | }, |
| 319 | 'conditions': [ |
| 320 | [ 'branding == "Chrome"', { |
| 321 | 'variables': { |
| 322 | 'branding_path': |
| 323 | 'app/theme/google_chrome/BRANDING', |
| 324 | }, |
| 325 | }, { # else branding!="Chrome" |
| 326 | 'variables': { |
| 327 | 'branding_path': |
| 328 | 'app/theme/chromium/BRANDING', |
| 329 | }, |
| 330 | }], |
| 331 | ], |
| 332 | 'inputs': [ |
| 333 | '<(template_input_path)', |
| 334 | '<(version_path)', |
| 335 | '<(branding_path)', |
| 336 | '<(lastchange_path)', |
| 337 | ], |
| 338 | 'outputs': [ |
| 339 | '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version_info_posix.h', |
| 340 | ], |
| 341 | 'action': [ |
| 342 | 'python', |
| 343 | '<(version_py_path)', |
| 344 | '-f', '<(version_path)', |
| 345 | '-f', '<(branding_path)', |
| 346 | '-f', '<(lastchange_path)', |
| 347 | '<(template_input_path)', |
| 348 | '<@(_outputs)', |
| 349 | ], |
| 350 | 'message': 'Generating version information', |
| 351 | }, |
| 352 | ], |
| 353 | }], |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 354 | ], |
| 355 | }, |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 356 | { |
| 357 | 'target_name': 'common_net', |
[email protected] | 5a54733 | 2011-05-19 23:18:53 | [diff] [blame] | 358 | 'type': 'static_library', |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 359 | 'sources': [ |
[email protected] | f3d0174 | 2010-05-07 02:53:55 | [diff] [blame] | 360 | 'common/net/http_return.h', |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 361 | 'common/net/net_resource_provider.cc', |
| 362 | 'common/net/net_resource_provider.h', |
[email protected] | 3530cd9 | 2010-06-27 06:22:01 | [diff] [blame] | 363 | 'common/net/predictor_common.h', |
[email protected] | d2f05d0 | 2011-01-27 18:51:01 | [diff] [blame] | 364 | 'common/net/gaia/gaia_auth_consumer.cc', |
[email protected] | a0e7704 | 2010-07-01 22:28:23 | [diff] [blame] | 365 | 'common/net/gaia/gaia_auth_consumer.h', |
[email protected] | 1d8fe71 | 2010-11-10 22:47:26 | [diff] [blame] | 366 | 'common/net/gaia/gaia_auth_fetcher.cc', |
| 367 | 'common/net/gaia/gaia_auth_fetcher.h', |
[email protected] | f3d0174 | 2010-05-07 02:53:55 | [diff] [blame] | 368 | 'common/net/gaia/gaia_authenticator.cc', |
| 369 | 'common/net/gaia/gaia_authenticator.h', |
[email protected] | 8fbfe66 | 2011-03-22 00:02:19 | [diff] [blame] | 370 | 'common/net/gaia/gaia_oauth_client.cc', |
| 371 | 'common/net/gaia/gaia_oauth_client.h', |
[email protected] | 63411a01 | 2011-06-15 19:14:24 | [diff] [blame] | 372 | 'common/net/gaia/gaia_urls.cc', |
| 373 | 'common/net/gaia/gaia_urls.h', |
[email protected] | 2b85b67a | 2011-02-10 23:41:40 | [diff] [blame] | 374 | 'common/net/gaia/google_service_auth_error.cc', |
[email protected] | 99074c5 | 2010-08-19 18:44:19 | [diff] [blame] | 375 | 'common/net/gaia/google_service_auth_error.h', |
[email protected] | 69c14c30 | 2011-06-19 23:40:35 | [diff] [blame] | 376 | 'common/net/gaia/oauth_request_signer.cc', |
| 377 | 'common/net/gaia/oauth_request_signer.h', |
[email protected] | b1c2a554 | 2010-10-08 12:44:40 | [diff] [blame] | 378 | 'common/net/x509_certificate_model.cc', |
| 379 | 'common/net/x509_certificate_model_nss.cc', |
| 380 | 'common/net/x509_certificate_model_openssl.cc', |
| 381 | 'common/net/x509_certificate_model.h', |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 382 | ], |
| 383 | 'dependencies': [ |
[email protected] | ebee6770 | 2011-11-03 19:27:33 | [diff] [blame] | 384 | 'chrome_resources.gyp:chrome_resources', |
| 385 | 'chrome_resources.gyp:chrome_strings', |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 386 | '../base/base.gyp:base', |
[email protected] | 56af6721 | 2011-06-29 20:53:11 | [diff] [blame] | 387 | '../crypto/crypto.gyp:crypto', |
[email protected] | f56279c | 2011-02-02 18:12:31 | [diff] [blame] | 388 | '../gpu/gpu.gyp:gpu_ipc', |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 389 | '../net/net.gyp:net_resources', |
[email protected] | 8dc64b4 | 2010-05-14 07:26:42 | [diff] [blame] | 390 | '../net/net.gyp:net', |
[email protected] | b1c2a554 | 2010-10-08 12:44:40 | [diff] [blame] | 391 | '../third_party/icu/icu.gyp:icui18n', |
| 392 | '../third_party/icu/icu.gyp:icuuc', |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 393 | ], |
[email protected] | b1c2a554 | 2010-10-08 12:44:40 | [diff] [blame] | 394 | 'conditions': [ |
[email protected] | cb5e507 | 2011-05-19 21:49:41 | [diff] [blame] | 395 | ['os_posix == 1 and OS != "mac"', { |
[email protected] | 638e9df4 | 2011-05-31 17:19:30 | [diff] [blame] | 396 | 'dependencies': [ |
| 397 | '../build/linux/system.gyp:ssl', |
[email protected] | b1c2a554 | 2010-10-08 12:44:40 | [diff] [blame] | 398 | ], |
| 399 | }, |
| 400 | { # else: OS is not in the above list |
| 401 | 'sources!': [ |
| 402 | 'common/net/x509_certificate_model_nss.cc', |
| 403 | 'common/net/x509_certificate_model_openssl.cc', |
| 404 | ], |
| 405 | }, |
| 406 | ], |
| 407 | ['use_openssl==1', { |
| 408 | 'sources!': [ |
| 409 | 'common/net/x509_certificate_model_nss.cc', |
| 410 | ], |
| 411 | }, |
| 412 | { # else !use_openssl: remove the unneeded files |
| 413 | 'sources!': [ |
| 414 | 'common/net/x509_certificate_model_openssl.cc', |
| 415 | ], |
| 416 | }, |
| 417 | ], |
| 418 | ], |
[email protected] | 3c3065d | 2010-05-06 21:59:55 | [diff] [blame] | 419 | }, |
[email protected] | 13313977 | 2011-04-14 22:14:13 | [diff] [blame] | 420 | { |
[email protected] | 1c20dd6 | 2011-08-19 21:54:33 | [diff] [blame] | 421 | # Protobuf compiler / generator for the safebrowsing client |
| 422 | # model proto and the client-side detection (csd) request |
| 423 | # protocol buffer. |
[email protected] | cae64fe | 2011-06-17 17:54:50 | [diff] [blame] | 424 | 'target_name': 'safe_browsing_proto', |
[email protected] | 1c20dd6 | 2011-08-19 21:54:33 | [diff] [blame] | 425 | 'type': 'static_library', |
| 426 | 'sources': [ |
| 427 | 'common/safe_browsing/client_model.proto', |
| 428 | 'common/safe_browsing/csd.proto' |
[email protected] | cae64fe | 2011-06-17 17:54:50 | [diff] [blame] | 429 | ], |
[email protected] | 1c20dd6 | 2011-08-19 21:54:33 | [diff] [blame] | 430 | 'variables': { |
| 431 | 'proto_in_dir': 'common/safe_browsing', |
| 432 | 'proto_out_dir': 'chrome/common/safe_browsing', |
[email protected] | cae64fe | 2011-06-17 17:54:50 | [diff] [blame] | 433 | }, |
[email protected] | 1c20dd6 | 2011-08-19 21:54:33 | [diff] [blame] | 434 | 'includes': [ '../build/protoc.gypi' ], |
[email protected] | 13313977 | 2011-04-14 22:14:13 | [diff] [blame] | 435 | }, |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 436 | ], |
[email protected] | dd36368 | 2009-12-28 20:30:46 | [diff] [blame] | 437 | } |