| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | |
| 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': [ | |
| 18 'third_party/wtl/include', | |
| 19 ], | |
| 20 }, { # else: OS != "win" | |
| 21 'sources!': [ | |
| 22 'common/temp_scaffolding_stubs.h', | |
| 23 ], | |
| 24 }], | |
| 25 ['OS=="win" or OS=="linux"', { | |
| 26 'sources!': [ | |
| 27 'common/hi_res_timer_manager.cc', | |
| 28 'common/hi_res_timer_manager.h', | |
| 29 'common/temp_scaffolding_stubs.cc', | |
| 30 ], | |
| 31 }], | |
| 32 ], | |
| 33 'sources': [ | |
| 34 # .cc, .h, and .mm files under chrome/common that are used on all | |
| 35 # platforms, including both 32-bit and 64-bit Windows. | |
| 36 # Test files are not included. | |
| 37 'common/bindings_policy.h', | |
| 38 'common/child_process.cc', | |
| 39 'common/child_process.h', | |
| 40 'common/child_process_info.cc', | |
| 41 'common/child_process_info.h', | |
| 42 'common/child_process_logging.h', | |
| 43 'common/child_process_logging_linux.cc', | |
| 44 'common/child_process_logging_mac.mm', | |
| 45 'common/child_process_logging_win.cc', | |
| 46 'common/child_thread.cc', | |
| 47 'common/child_thread.h', | |
| 48 'common/chrome_counters.cc', | |
| 49 'common/chrome_counters.h', | |
| 50 'common/common_param_traits.cc', | |
| 51 'common/common_param_traits.h', | |
| 52 'common/debug_flags.cc', | |
| 53 'common/debug_flags.h', | |
| 54 'common/devtools_messages.h', | |
| 55 'common/devtools_messages_internal.h', | |
| 56 'common/logging_chrome.cc', | |
| 57 'common/logging_chrome.h', | |
| 58 'common/main_function_params.h', | |
| 59 'common/message_router.cc', | |
| 60 'common/message_router.h', | |
| 61 'common/nacl_messages.h', | |
| 62 'common/nacl_messages_internal.h', | |
| 63 'common/notification_details.h', | |
| 64 'common/notification_observer.h', | |
| 65 'common/notification_registrar.cc', | |
| 66 'common/notification_registrar.h', | |
| 67 'common/notification_service.cc', | |
| 68 'common/notification_service.h', | |
| 69 'common/notification_source.h', | |
| 70 'common/notification_type.h', | |
| 71 'common/process_watcher_mac.cc', | |
| 72 'common/process_watcher_posix.cc', | |
| 73 'common/process_watcher_win.cc', | |
| 74 'common/process_watcher.h', | |
| 75 'common/property_bag.cc', | |
| 76 'common/property_bag.h', | |
| 77 'common/ref_counted_util.h', | |
| 78 'common/result_codes.h', | |
| 79 'common/sandbox_init_wrapper.h', | |
| 80 'common/sandbox_init_wrapper_linux.cc', | |
| 81 'common/sandbox_init_wrapper_mac.cc', | |
| 82 'common/sandbox_init_wrapper_win.cc', | |
| 83 'common/sandbox_mac.h', | |
| 84 'common/sandbox_mac.mm', | |
| 85 'common/task_queue.cc', | |
| 86 'common/task_queue.h', | |
| 87 'common/time_format.cc', | |
| 88 'common/time_format.h', | |
| 89 'common/transport_dib.h', | |
| 90 'common/win_safe_util.cc', | |
| 91 'common/win_safe_util.h', | |
| 92 ], | |
| 93 }], | |
| 94 ], | |
| 95 }, | |
| 96 'targets': [ | |
| 97 { | |
| 98 'target_name': 'common', | |
| 99 'type': '<(library)', | |
| 100 'msvs_guid': '899F1280-3441-4D1F-BA04-CCD6208D9146', | |
| 101 'variables': { | |
| 102 'chrome_common_target': 1, | |
| 103 }, | |
| 104 # TODO(gregoryd): This could be shared with the 64-bit target, but | |
| 105 # it does not work due to a gyp issue. | |
| 106 'direct_dependent_settings': { | |
| 107 'include_dirs': [ | |
| 108 '..', | |
| 109 ], | |
| 110 }, | |
| 111 'dependencies': [ | |
| 112 # TODO(gregoryd): chrome_resources and chrome_strings could be | |
| 113 # shared with the 64-bit target, but it does not work due to a gyp | |
| 114 # issue. | |
| 115 'chrome_resources', | |
| 116 'chrome_strings', | |
| 117 'common_constants', | |
| 118 'theme_resources', | |
| 119 '../app/app.gyp:app_base', | |
| 120 '../app/app.gyp:app_resources', | |
| 121 '../base/base.gyp:base', | |
| 122 '../base/base.gyp:base_i18n', | |
| 123 '../build/temp_gyp/googleurl.gyp:googleurl', | |
| 124 '../ipc/ipc.gyp:ipc', | |
| 125 '../net/net.gyp:net', | |
| 126 '../net/net.gyp:net_resources', | |
| 127 '../skia/skia.gyp:skia', | |
| 128 '../third_party/icu/icu.gyp:icui18n', | |
| 129 '../third_party/icu/icu.gyp:icuuc', | |
| 130 '../third_party/libxml/libxml.gyp:libxml', | |
| 131 '../third_party/sqlite/sqlite.gyp:sqlite', | |
| 132 '../third_party/zlib/zlib.gyp:zlib', | |
| 133 '../third_party/npapi/npapi.gyp:npapi', | |
| 134 '../webkit/webkit.gyp:appcache', | |
| 135 '../webkit/webkit.gyp:glue', | |
| 136 ], | |
| 137 'sources': [ | |
| 138 # .cc, .h, and .mm files under chrome/common that are not required for | |
| 139 # building 64-bit Windows targets. Test files are not included. | |
| 140 'common/desktop_notifications/active_notification_tracker.h', | |
| 141 'common/desktop_notifications/active_notification_tracker.cc', | |
| 142 'common/extensions/extension.cc', | |
| 143 'common/extensions/extension.h', | |
| 144 'common/extensions/extension_constants.cc', | |
| 145 'common/extensions/extension_constants.h', | |
| 146 'common/extensions/extension_error_reporter.cc', | |
| 147 'common/extensions/extension_error_reporter.h', | |
| 148 'common/extensions/extension_error_utils.cc', | |
| 149 'common/extensions/extension_error_utils.h', | |
| 150 'common/extensions/extension_action.cc', | |
| 151 'common/extensions/extension_action.h', | |
| 152 'common/extensions/extension_l10n_util.cc', | |
| 153 'common/extensions/extension_l10n_util.h', | |
| 154 'common/extensions/extension_message_bundle.cc', | |
| 155 'common/extensions/extension_message_bundle.h', | |
| 156 'common/extensions/extension_resource.cc', | |
| 157 'common/extensions/extension_resource.h', | |
| 158 'common/extensions/extension_unpacker.cc', | |
| 159 'common/extensions/extension_unpacker.h', | |
| 160 'common/extensions/update_manifest.cc', | |
| 161 'common/extensions/update_manifest.h', | |
| 162 'common/extensions/url_pattern.cc', | |
| 163 'common/extensions/url_pattern.h', | |
| 164 'common/extensions/user_script.cc', | |
| 165 'common/extensions/user_script.h', | |
| 166 'common/gfx/utils.h', | |
| 167 'common/net/dns.h', | |
| 168 'common/net/net_resource_provider.cc', | |
| 169 'common/net/net_resource_provider.h', | |
| 170 'common/net/socket_stream.h', | |
| 171 'common/net/url_request_intercept_job.cc', | |
| 172 'common/net/url_request_intercept_job.h', | |
| 173 'common/web_resource/web_resource_unpacker.cc', | |
| 174 'common/web_resource/web_resource_unpacker.h', | |
| 175 'common/appcache/appcache_backend_proxy.cc', | |
| 176 'common/appcache/appcache_backend_proxy.h', | |
| 177 'common/appcache/appcache_dispatcher.cc', | |
| 178 'common/appcache/appcache_dispatcher.h', | |
| 179 'common/appcache/appcache_dispatcher_host.cc', | |
| 180 'common/appcache/appcache_dispatcher_host.h', | |
| 181 'common/appcache/appcache_frontend_proxy.cc', | |
| 182 'common/appcache/appcache_frontend_proxy.h', | |
| 183 'common/appcache/chrome_appcache_service.cc', | |
| 184 'common/appcache/chrome_appcache_service.h', | |
| 185 'common/automation_constants.cc', | |
| 186 'common/automation_constants.h', | |
| 187 'common/child_process_host.cc', | |
| 188 'common/child_process_host.h', | |
| 189 'common/chrome_descriptors.h', | |
| 190 'common/chrome_plugin_api.h', | |
| 191 'common/chrome_plugin_lib.cc', | |
| 192 'common/chrome_plugin_lib.h', | |
| 193 'common/chrome_plugin_util.cc', | |
| 194 'common/chrome_plugin_util.h', | |
| 195 'common/command_buffer_messages.h', | |
| 196 'common/command_buffer_messages_internal.h', | |
| 197 'common/common_glue.cc', | |
| 198 'common/css_colors.h', | |
| 199 'common/db_message_filter.cc', | |
| 200 'common/db_message_filter.h', | |
| 201 'common/dom_storage_type.h', | |
| 202 'common/filter_policy.h', | |
| 203 'common/gears_api.h', | |
| 204 'common/gtk_tree.cc', | |
| 205 'common/gtk_tree.h', | |
| 206 'common/gtk_util.cc', | |
| 207 'common/gtk_util.h', | |
| 208 'common/histogram_synchronizer.cc', | |
| 209 'common/histogram_synchronizer.h', | |
| 210 'common/important_file_writer.cc', | |
| 211 'common/important_file_writer.h', | |
| 212 'common/jstemplate_builder.cc', | |
| 213 'common/jstemplate_builder.h', | |
| 214 'common/libxml_utils.cc', | |
| 215 'common/libxml_utils.h', | |
| 216 'common/mru_cache.h', | |
| 217 'common/navigation_gesture.h', | |
| 218 'common/navigation_types.h', | |
| 219 'common/native_web_keyboard_event.h', | |
| 220 'common/native_web_keyboard_event_linux.cc', | |
| 221 'common/native_web_keyboard_event_mac.mm', | |
| 222 'common/native_web_keyboard_event_win.cc', | |
| 223 'common/native_window_notification_source.h', | |
| 224 'common/owned_widget_gtk.cc', | |
| 225 'common/owned_widget_gtk.h', | |
| 226 'common/page_transition_types.h', | |
| 227 'common/page_zoom.h', | |
| 228 'common/platform_util.h', | |
| 229 'common/platform_util_linux.cc', | |
| 230 'common/platform_util_mac.mm', | |
| 231 'common/platform_util_win.cc', | |
| 232 'common/plugin_carbon_interpose_constants_mac.h', | |
| 233 'common/plugin_carbon_interpose_constants_mac.cc', | |
| 234 'common/plugin_messages.h', | |
| 235 'common/plugin_messages_internal.h', | |
| 236 'common/pref_member.cc', | |
| 237 'common/pref_member.h', | |
| 238 'common/pref_service.cc', | |
| 239 'common/pref_service.h', | |
| 240 'common/render_messages.h', | |
| 241 'common/render_messages_internal.h', | |
| 242 'common/renderer_preferences.h', | |
| 243 'common/resource_dispatcher.cc', | |
| 244 'common/resource_dispatcher.h', | |
| 245 'common/security_filter_peer.cc', | |
| 246 'common/security_filter_peer.h', | |
| 247 'common/socket_stream_dispatcher.cc', | |
| 248 'common/socket_stream_dispatcher.h', | |
| 249 'common/spellcheck_common.cc', | |
| 250 'common/spellcheck_common.h', | |
| 251 'common/sqlite_compiled_statement.cc', | |
| 252 'common/sqlite_compiled_statement.h', | |
| 253 'common/sqlite_utils.cc', | |
| 254 'common/sqlite_utils.h', | |
| 255 'common/temp_scaffolding_stubs.cc', | |
| 256 'common/temp_scaffolding_stubs.h', | |
| 257 'common/thumbnail_score.cc', | |
| 258 'common/thumbnail_score.h', | |
| 259 'common/transport_dib_linux.cc', | |
| 260 'common/transport_dib_mac.cc', | |
| 261 'common/transport_dib_win.cc', | |
| 262 'common/url_constants.cc', | |
| 263 'common/url_constants.h', | |
| 264 'common/utility_messages.h', | |
| 265 'common/utility_messages_internal.h', | |
| 266 'common/view_types.cc', | |
| 267 'common/view_types.h', | |
| 268 'common/visitedlink_common.cc', | |
| 269 'common/visitedlink_common.h', | |
| 270 'common/webkit_param_traits.h', | |
| 271 'common/webmessageportchannel_impl.cc', | |
| 272 'common/webmessageportchannel_impl.h', | |
| 273 'common/worker_messages.h', | |
| 274 'common/worker_messages_internal.h', | |
| 275 'common/worker_thread_ticker.cc', | |
| 276 'common/worker_thread_ticker.h', | |
| 277 'common/x11_util.cc', | |
| 278 'common/x11_util.h', | |
| 279 'common/x11_util_internal.h', | |
| 280 'common/zip.cc', # Requires zlib directly. | |
| 281 'common/zip.h', | |
| 282 ], | |
| 283 'conditions': [ | |
| 284 ['OS=="linux"', { | |
| 285 'dependencies': [ | |
| 286 '../build/linux/system.gyp:gtk', | |
| 287 ], | |
| 288 'export_dependent_settings': [ | |
| 289 '../third_party/sqlite/sqlite.gyp:sqlite', | |
| 290 ], | |
| 291 'link_settings': { | |
| 292 'libraries': [ | |
| 293 '-lX11', | |
| 294 '-lXrender', | |
| 295 '-lXext', | |
| 296 ], | |
| 297 }, | |
| 298 },], | |
| 299 ['OS=="linux" and selinux==1', { | |
| 300 'dependencies': [ | |
| 301 '../build/linux/system.gyp:selinux', | |
| 302 ], | |
| 303 }], | |
| 304 ['OS=="mac"', { | |
| 305 'sources!': [ | |
| 306 'common/process_watcher_posix.cc', | |
| 307 ], | |
| 308 }], | |
| 309 ], | |
| 310 'export_dependent_settings': [ | |
| 311 '../app/app.gyp:app_base', | |
| 312 ], | |
| 313 }, | |
| 314 ], | |
| 315 'conditions': [ | |
| 316 ['OS=="win"', { | |
| 317 'targets': [ | |
| 318 { | |
| 319 'target_name': 'common_nacl_win64', | |
| 320 'type': '<(library)', | |
| 321 'msvs_guid': '3AB5C5E9-470C-419B-A0AE-C7381FB632FA', | |
| 322 'variables': { | |
| 323 'chrome_common_target': 1, | |
| 324 }, | |
| 325 'dependencies': [ | |
| 326 # TODO(gregoryd): chrome_resources and chrome_strings could be | |
| 327 # shared with the 32-bit target, but it does not work due to a gyp | |
| 328 # issue. | |
| 329 'chrome_resources', | |
| 330 'chrome_strings', | |
| 331 'common_constants_win64', | |
| 332 '../app/app.gyp:app_base_nacl_win64', | |
| 333 '../app/app.gyp:app_resources', | |
| 334 '../base/base.gyp:base_nacl_win64', | |
| 335 '../ipc/ipc.gyp:ipc_win64', | |
| 336 ], | |
| 337 'include_dirs': [ | |
| 338 '../third_party/npapi', | |
| 339 '../third_party/icu/public/i18n', | |
| 340 '../third_party/icu/public/common', | |
| 341 # We usually get these skia directories by adding a dependency on | |
| 342 # skia, bu we don't need it for NaCl's 64-bit Windows support. The | |
| 343 # directories are required for resolving the includes in any case. | |
| 344 '../third_party/skia/include/core', | |
| 345 '../skia/config', | |
| 346 ], | |
| 347 'defines': [ | |
| 348 'EXCLUDE_SKIA_DEPENDENCIES', | |
| 349 '<@(nacl_win64_defines)', | |
| 350 ], | |
| 351 'sources': [ | |
| 352 '../webkit/glue/webkit_glue_dummy.cc', | |
| 353 'common/resource_dispatcher_dummy.cc', | |
| 354 'common/socket_stream_dispatcher_dummy.cc', | |
| 355 ], | |
| 356 'export_dependent_settings': [ | |
| 357 '../app/app.gyp:app_base_nacl_win64', | |
| 358 ], | |
| 359 # TODO(gregoryd): This could be shared with the 32-bit target, but | |
| 360 # it does not work due to a gyp issue. | |
| 361 'direct_dependent_settings': { | |
| 362 'include_dirs': [ | |
| 363 '..', | |
| 364 ], | |
| 365 }, | |
| 366 'configurations': { | |
| 367 'Common': { | |
| 368 'msvs_target_platform': 'x64', | |
| 369 }, | |
| 370 }, | |
| 371 }, | |
| 372 ], | |
| 373 }], | |
| 374 ], | |
| 375 } | |
| OLD | NEW |