| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'target_defaults': { | 6 'variables': { |
| 7 'variables': { | 7 'chromium_code': 1, |
| 8 'base_target': 0, | |
| 9 }, | |
| 10 'target_conditions': [ | |
| 11 # This part is shared between the targets defined below. | |
| 12 ['base_target==1', { | |
| 13 'sources': [ | |
| 14 '../build/build_config.h', | |
| 15 'third_party/dmg_fp/dmg_fp.h', | |
| 16 'third_party/dmg_fp/g_fmt.cc', | |
| 17 'third_party/dmg_fp/dtoa_wrapper.cc', | |
| 18 'third_party/icu/icu_utf.cc', | |
| 19 'third_party/icu/icu_utf.h', | |
| 20 'third_party/nspr/prtime.cc', | |
| 21 'third_party/nspr/prtime.h', | |
| 22 'at_exit.cc', | |
| 23 'at_exit.h', | |
| 24 'atomic_ref_count.h', | |
| 25 'atomic_sequence_num.h', | |
| 26 'atomicops.h', | |
| 27 'atomicops_internals_x86_gcc.cc', | |
| 28 'atomicops_internals_x86_msvc.h', | |
| 29 'base_api.h', | |
| 30 'base_paths.cc', | |
| 31 'base_paths.h', | |
| 32 'base_paths_mac.h', | |
| 33 'base_paths_mac.mm', | |
| 34 'base_paths_linux.cc', | |
| 35 'base_paths_win.cc', | |
| 36 'base_paths_win.h', | |
| 37 'basictypes.h', | |
| 38 'bind.h', | |
| 39 'bind_helpers.h', | |
| 40 'bind_internal.h', | |
| 41 'bind_internal_win.h', | |
| 42 'bits.h', | |
| 43 'bzip2_error_handler.cc', | |
| 44 'callback.h', | |
| 45 'callback_internal.cc', | |
| 46 'callback_internal.h', | |
| 47 'callback_old.h', | |
| 48 'command_line.cc', | |
| 49 'command_line.h', | |
| 50 'compiler_specific.h', | |
| 51 'cpu.cc', | |
| 52 'cpu.h', | |
| 53 'debug/debug_on_start_win.cc', | |
| 54 'debug/debug_on_start_win.h', | |
| 55 'debug/debugger.cc', | |
| 56 'debug/debugger.h', | |
| 57 'debug/debugger_posix.cc', | |
| 58 'debug/debugger_win.cc', | |
| 59 'debug/leak_annotations.h', | |
| 60 'debug/leak_tracker.h', | |
| 61 'debug/profiler.cc', | |
| 62 'debug/profiler.h', | |
| 63 'debug/stack_trace.cc', | |
| 64 'debug/stack_trace.h', | |
| 65 'debug/stack_trace_posix.cc', | |
| 66 'debug/stack_trace_win.cc', | |
| 67 'debug/trace_event_win.cc', | |
| 68 'debug/trace_event.cc', | |
| 69 'debug/trace_event.h', | |
| 70 'dir_reader_fallback.h', | |
| 71 'dir_reader_linux.h', | |
| 72 'dir_reader_posix.h', | |
| 73 'environment.cc', | |
| 74 'environment.h', | |
| 75 'file_path.cc', | |
| 76 'file_path.h', | |
| 77 'file_util.cc', | |
| 78 'file_util.h', | |
| 79 'file_util_deprecated.h', | |
| 80 'file_util_linux.cc', | |
| 81 'file_util_mac.mm', | |
| 82 'file_util_posix.cc', | |
| 83 'file_util_win.cc', | |
| 84 'file_util_proxy.cc', | |
| 85 'file_util_proxy.h', | |
| 86 'file_version_info.h', | |
| 87 'file_version_info_mac.h', | |
| 88 'file_version_info_mac.mm', | |
| 89 'file_version_info_win.cc', | |
| 90 'file_version_info_win.h', | |
| 91 'fix_wp64.h', | |
| 92 'float_util.h', | |
| 93 'foundation_utils_mac.h', | |
| 94 'global_descriptors_posix.cc', | |
| 95 'global_descriptors_posix.h', | |
| 96 'gtest_prod_util.h', | |
| 97 'hash_tables.h', | |
| 98 'id_map.h', | |
| 99 'json/json_reader.cc', | |
| 100 'json/json_reader.h', | |
| 101 'json/json_writer.cc', | |
| 102 'json/json_writer.h', | |
| 103 'json/string_escape.cc', | |
| 104 'json/string_escape.h', | |
| 105 'lazy_instance.cc', | |
| 106 'lazy_instance.h', | |
| 107 'linked_list.h', | |
| 108 'logging.cc', | |
| 109 'logging.h', | |
| 110 'logging_win.cc', | |
| 111 'logging_win.h', | |
| 112 'mac/cocoa_protocols.h', | |
| 113 'mac/foundation_util.h', | |
| 114 'mac/foundation_util.mm', | |
| 115 'mac/mac_util.h', | |
| 116 'mac/mac_util.mm', | |
| 117 'mac/os_crash_dumps.cc', | |
| 118 'mac/os_crash_dumps.h', | |
| 119 'mac/scoped_aedesc.h', | |
| 120 'mac/scoped_cftyperef.h', | |
| 121 'mac/scoped_nsautorelease_pool.h', | |
| 122 'mac/scoped_nsautorelease_pool.mm', | |
| 123 'mach_ipc_mac.h', | |
| 124 'mach_ipc_mac.mm', | |
| 125 'memory/linked_ptr.h', | |
| 126 'memory/memory_debug.cc', | |
| 127 'memory/memory_debug.h', | |
| 128 'memory/raw_scoped_refptr_mismatch_checker.h', | |
| 129 'memory/ref_counted.cc', | |
| 130 'memory/ref_counted.h', | |
| 131 'memory/ref_counted_memory.cc', | |
| 132 'memory/ref_counted_memory.h', | |
| 133 'memory/scoped_callback_factory.h', | |
| 134 'memory/scoped_handle.h', | |
| 135 'memory/scoped_native_library.cc', | |
| 136 'memory/scoped_native_library.h', | |
| 137 'memory/scoped_nsobject.h', | |
| 138 'memory/scoped_open_process.h', | |
| 139 'memory/scoped_ptr.h', | |
| 140 'memory/scoped_temp_dir.cc', | |
| 141 'memory/scoped_temp_dir.h', | |
| 142 'memory/scoped_vector.h', | |
| 143 'memory/singleton.h', | |
| 144 'memory/weak_ptr.cc', | |
| 145 'memory/weak_ptr.h', | |
| 146 'message_loop.cc', | |
| 147 'message_loop.h', | |
| 148 'message_loop_proxy.cc', | |
| 149 'message_loop_proxy.h', | |
| 150 'message_loop_proxy_impl.cc', | |
| 151 'message_loop_proxy_impl.h', | |
| 152 'message_pump.cc', | |
| 153 'message_pump.h', | |
| 154 'message_pump_default.cc', | |
| 155 'message_pump_default.h', | |
| 156 'message_pump_win.cc', | |
| 157 'message_pump_win.h', | |
| 158 'metrics/histogram.cc', | |
| 159 'metrics/histogram.h', | |
| 160 'metrics/nacl_histogram.cc', | |
| 161 'metrics/nacl_histogram.h', | |
| 162 'metrics/stats_counters.cc', | |
| 163 'metrics/stats_counters.h', | |
| 164 'metrics/stats_table.cc', | |
| 165 'metrics/stats_table.h', | |
| 166 'mime_util.h', | |
| 167 'mime_util_xdg.cc', | |
| 168 'native_library.h', | |
| 169 'native_library_linux.cc', | |
| 170 'native_library_mac.mm', | |
| 171 'native_library_win.cc', | |
| 172 'observer_list.h', | |
| 173 'observer_list_threadsafe.h', | |
| 174 'path_service.cc', | |
| 175 'path_service.h', | |
| 176 'pickle.cc', | |
| 177 'pickle.h', | |
| 178 'platform_file.cc', | |
| 179 'platform_file.h', | |
| 180 'platform_file_posix.cc', | |
| 181 'platform_file_win.cc', | |
| 182 'port.h', | |
| 183 'process.h', | |
| 184 'process_linux.cc', | |
| 185 'process_posix.cc', | |
| 186 'process_util.cc', | |
| 187 'process_util.h', | |
| 188 'process_util_linux.cc', | |
| 189 'process_util_mac.mm', | |
| 190 'process_util_posix.cc', | |
| 191 'process_util_win.cc', | |
| 192 'process_win.cc', | |
| 193 'rand_util.cc', | |
| 194 'rand_util.h', | |
| 195 'rand_util_posix.cc', | |
| 196 'rand_util_win.cc', | |
| 197 'resource_util.cc', | |
| 198 'resource_util.h', | |
| 199 'safe_strerror_posix.cc', | |
| 200 'safe_strerror_posix.h', | |
| 201 'scoped_ptr.h', | |
| 202 'sha1.h', | |
| 203 'sha1_portable.cc', | |
| 204 'sha1_win.cc', | |
| 205 'shared_memory.h', | |
| 206 'shared_memory_posix.cc', | |
| 207 'shared_memory_win.cc', | |
| 208 'spin_wait.h', | |
| 209 'stack_container.h', | |
| 210 'stl_util-inl.h', | |
| 211 'string_number_conversions.cc', | |
| 212 'string_number_conversions.h', | |
| 213 'string_piece.cc', | |
| 214 'string_piece.h', | |
| 215 'string_split.cc', | |
| 216 'string_split.h', | |
| 217 'string_tokenizer.h', | |
| 218 'string_util.cc', | |
| 219 'string_util.h', | |
| 220 'string_util_win.h', | |
| 221 'stringize_macros.h', | |
| 222 'stringprintf.cc', | |
| 223 'stringprintf.h', | |
| 224 'synchronization/cancellation_flag.cc', | |
| 225 'synchronization/cancellation_flag.h', | |
| 226 'synchronization/condition_variable.h', | |
| 227 'synchronization/condition_variable_posix.cc', | |
| 228 'synchronization/condition_variable_win.cc', | |
| 229 'synchronization/lock.cc', | |
| 230 'synchronization/lock.h', | |
| 231 'synchronization/lock_impl.h', | |
| 232 'synchronization/lock_impl_posix.cc', | |
| 233 'synchronization/lock_impl_win.cc', | |
| 234 'synchronization/waitable_event.h', | |
| 235 'synchronization/waitable_event_posix.cc', | |
| 236 'synchronization/waitable_event_watcher.h', | |
| 237 'synchronization/waitable_event_watcher_posix.cc', | |
| 238 'synchronization/waitable_event_watcher_win.cc', | |
| 239 'synchronization/waitable_event_win.cc', | |
| 240 'sys_info.h', | |
| 241 'sys_info_chromeos.cc', | |
| 242 'sys_info_freebsd.cc', | |
| 243 'sys_info_linux.cc', | |
| 244 'sys_info_mac.cc', | |
| 245 'sys_info_openbsd.cc', | |
| 246 'sys_info_posix.cc', | |
| 247 'sys_info_win.cc', | |
| 248 'sys_string_conversions.h', | |
| 249 'sys_string_conversions_linux.cc', | |
| 250 'sys_string_conversions_mac.mm', | |
| 251 'sys_string_conversions_win.cc', | |
| 252 'task.cc', | |
| 253 'task.h', | |
| 254 'task_queue.cc', | |
| 255 'task_queue.h', | |
| 256 'template_util.h', | |
| 257 'threading/non_thread_safe.h', | |
| 258 'threading/non_thread_safe_impl.cc', | |
| 259 'threading/non_thread_safe_impl.h', | |
| 260 'threading/platform_thread.h', | |
| 261 'threading/platform_thread_mac.mm', | |
| 262 'threading/platform_thread_posix.cc', | |
| 263 'threading/platform_thread_win.cc', | |
| 264 'threading/simple_thread.cc', | |
| 265 'threading/simple_thread.h', | |
| 266 'threading/thread.cc', | |
| 267 'threading/thread.h', | |
| 268 'threading/thread_checker.h', | |
| 269 'threading/thread_checker_impl.cc', | |
| 270 'threading/thread_checker_impl.h', | |
| 271 'threading/thread_collision_warner.cc', | |
| 272 'threading/thread_collision_warner.h', | |
| 273 'threading/thread_local.h', | |
| 274 'threading/thread_local_posix.cc', | |
| 275 'threading/thread_local_storage.h', | |
| 276 'threading/thread_local_storage_posix.cc', | |
| 277 'threading/thread_local_storage_win.cc', | |
| 278 'threading/thread_local_win.cc', | |
| 279 'threading/thread_restrictions.h', | |
| 280 'threading/thread_restrictions.cc', | |
| 281 'threading/watchdog.cc', | |
| 282 'threading/watchdog.h', | |
| 283 'threading/worker_pool.h', | |
| 284 'threading/worker_pool_posix.cc', | |
| 285 'threading/worker_pool_posix.h', | |
| 286 'threading/worker_pool_win.cc', | |
| 287 'time.cc', | |
| 288 'time.h', | |
| 289 'time_win.cc', | |
| 290 'timer.cc', | |
| 291 'timer.h', | |
| 292 'tracked.cc', | |
| 293 'tracked.h', | |
| 294 'tracked_objects.cc', | |
| 295 'tracked_objects.h', | |
| 296 'tuple.h', | |
| 297 'utf_offset_string_conversions.cc', | |
| 298 'utf_offset_string_conversions.h', | |
| 299 'utf_string_conversion_utils.cc', | |
| 300 'utf_string_conversion_utils.h', | |
| 301 'utf_string_conversions.cc', | |
| 302 'utf_string_conversions.h', | |
| 303 'values.cc', | |
| 304 'values.h', | |
| 305 'value_conversions.cc', | |
| 306 'value_conversions.h', | |
| 307 'version.cc', | |
| 308 'version.h', | |
| 309 'vlog.cc', | |
| 310 'vlog.h', | |
| 311 'win/event_trace_consumer.h', | |
| 312 'win/event_trace_controller.cc', | |
| 313 'win/event_trace_controller.h', | |
| 314 'win/event_trace_provider.cc', | |
| 315 'win/event_trace_provider.h', | |
| 316 'win/i18n.cc', | |
| 317 'win/i18n.h', | |
| 318 'win/object_watcher.cc', | |
| 319 'win/object_watcher.h', | |
| 320 'win/registry.cc', | |
| 321 'win/registry.h', | |
| 322 'win/scoped_bstr.cc', | |
| 323 'win/scoped_bstr.h', | |
| 324 'win/scoped_comptr.h', | |
| 325 'win/scoped_gdi_object.h', | |
| 326 'win/scoped_handle.h', | |
| 327 'win/scoped_hdc.h', | |
| 328 'win/scoped_hglobal.h', | |
| 329 'win/scoped_variant.cc', | |
| 330 'win/scoped_variant.h', | |
| 331 'win/win_util.cc', | |
| 332 'win/win_util.h', | |
| 333 'win/windows_version.cc', | |
| 334 'win/windows_version.h', | |
| 335 'win/wrapped_window_proc.cc', | |
| 336 'win/wrapped_window_proc.h', | |
| 337 'nix/xdg_util.h', | |
| 338 'nix/xdg_util.cc', | |
| 339 ], | |
| 340 'include_dirs': [ | |
| 341 '..', | |
| 342 ], | |
| 343 # These warnings are needed for the files in third_party\dmg_fp. | |
| 344 'msvs_disabled_warnings': [ | |
| 345 4244, 4554, 4018, 4102, | |
| 346 ], | |
| 347 'mac_framework_dirs': [ | |
| 348 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Fr
ameworks', | |
| 349 ], | |
| 350 'conditions': [ | |
| 351 [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "so
laris"', { | |
| 352 'sources/': [ | |
| 353 ['exclude', '^nix/'], | |
| 354 ], | |
| 355 'sources!': [ | |
| 356 'atomicops_internals_x86_gcc.cc', | |
| 357 'message_pump_glib.cc', | |
| 358 'message_pump_glib_x.cc', | |
| 359 ], | |
| 360 }], | |
| 361 [ 'OS != "linux"', { | |
| 362 'sources!': [ | |
| 363 # Not automatically excluded by the *linux.cc rules. | |
| 364 'gtk_util.cc', | |
| 365 'gtk_util.h', | |
| 366 'linux_util.cc', | |
| 367 ], | |
| 368 }, | |
| 369 ], | |
| 370 [ 'OS != "mac"', { | |
| 371 'sources!': [ | |
| 372 'scoped_aedesc.h' | |
| 373 ], | |
| 374 }], | |
| 375 # For now, just test the *BSD platforms enough to exclude them. | |
| 376 # Subsequent changes will include them further. | |
| 377 [ 'OS != "freebsd"', { | |
| 378 'sources/': [ ['exclude', '_freebsd\\.cc$'] ], | |
| 379 }, | |
| 380 ], | |
| 381 [ 'OS != "openbsd"', { | |
| 382 'sources/': [ ['exclude', '_openbsd\\.cc$'] ], | |
| 383 }, | |
| 384 ], | |
| 385 ['OS != "win"', { | |
| 386 'sources/': [ ['exclude', '^win/'] ], | |
| 387 }, | |
| 388 ], | |
| 389 [ 'OS == "win"', { | |
| 390 'include_dirs': [ | |
| 391 '<(DEPTH)/third_party/wtl/include', | |
| 392 ], | |
| 393 'sources!': [ | |
| 394 'event_recorder_stubs.cc', | |
| 395 'file_descriptor_shuffle.cc', | |
| 396 'message_pump_libevent.cc', | |
| 397 # Not using sha1_win.cc because it may have caused a | |
| 398 # regression to page cycler moz. | |
| 399 'sha1_win.cc', | |
| 400 'string16.cc', | |
| 401 'debug/trace_event.cc', | |
| 402 ], | |
| 403 },], | |
| 404 ], | |
| 405 }], | |
| 406 ], | |
| 407 }, | 8 }, |
| 408 'targets': [ | 9 'targets': [ |
| 409 { | 10 { |
| 410 'target_name': 'base', | 11 'target_name': 'crypto', |
| 411 'type': '<(library)', | 12 'type': '<(library)', |
| 412 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165', | |
| 413 'variables': { | |
| 414 'base_target': 1, | |
| 415 }, | |
| 416 'dependencies': [ | 13 'dependencies': [ |
| 417 'base_static', | 14 '../base/base.gyp:base', |
| 418 '../third_party/modp_b64/modp_b64.gyp:modp_b64', | |
| 419 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotat
ions', | |
| 420 ], | 15 ], |
| 421 # TODO(gregoryd): direct_dependent_settings should be shared with the | 16 'msvs_disabled_warnings': [ |
| 422 # 64-bit target, but it doesn't work due to a bug in gyp | 17 4018, |
| 423 'direct_dependent_settings': { | 18 ], |
| 424 'include_dirs': [ | |
| 425 '..', | |
| 426 ], | |
| 427 }, | |
| 428 'conditions': [ | 19 'conditions': [ |
| 429 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris
"', { | 20 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris
"', { |
| 430 'conditions': [ | 21 'conditions': [ |
| 431 [ 'chromeos==1', { | 22 [ 'chromeos==1', { |
| 432 'sources/': [ ['include', '_chromeos\\.cc$'] ] | 23 'sources/': [ ['include', '_chromeos\\.cc$'] ] |
| 433 }, | 24 }, |
| 434 ], | 25 ], |
| 435 [ 'linux_use_tcmalloc==0', { | |
| 436 'defines': [ | |
| 437 'NO_TCMALLOC', | |
| 438 ], | |
| 439 'direct_dependent_settings': { | |
| 440 'defines': [ | |
| 441 'NO_TCMALLOC', | |
| 442 ], | |
| 443 }, | |
| 444 }, | |
| 445 ], | |
| 446 [ 'use_openssl==1', { | 26 [ 'use_openssl==1', { |
| 447 'dependencies': [ | 27 'dependencies': [ |
| 448 '../third_party/openssl/openssl.gyp:openssl', | 28 '../third_party/openssl/openssl.gyp:openssl', |
| 449 ], | 29 ], |
| 450 }, { # use_openssl==0 | 30 }, { # use_openssl==0 |
| 451 'sources': [ | 31 'sources': [ |
| 452 'base/crypto/scoped_nss_types.h', | 32 'base/crypto/scoped_nss_types.h', |
| 453 ], | 33 ], |
| 454 'dependencies': [ | 34 'dependencies': [ |
| 455 '../build/linux/system.gyp:nss', | 35 '../build/linux/system.gyp:nss', |
| 456 ], | 36 ], |
| 457 'export_dependent_settings': [ | 37 'export_dependent_settings': [ |
| 458 '../build/linux/system.gyp:nss', | 38 '../build/linux/system.gyp:nss', |
| 459 ], | 39 ], |
| 460 } | 40 } |
| 461 ], | 41 ], |
| 462 ], | 42 ], |
| 463 'dependencies': [ | |
| 464 'symbolize', | |
| 465 '../build/util/build_util.gyp:lastchange', | |
| 466 '../build/linux/system.gyp:gtk', | |
| 467 '../build/linux/system.gyp:x11', | |
| 468 'xdg_mime', | |
| 469 ], | |
| 470 'defines': [ | |
| 471 'USE_SYMBOLIZE', | |
| 472 ], | |
| 473 'cflags': [ | |
| 474 '-Wno-write-strings', | |
| 475 ], | |
| 476 'export_dependent_settings': [ | |
| 477 '../build/linux/system.gyp:gtk', | |
| 478 '../build/linux/system.gyp:x11', | |
| 479 ], | |
| 480 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS !=
"solaris" | 43 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS !=
"solaris" |
| 481 'sources/': [ | 44 'sources/': [ |
| 482 ['exclude', '/xdg_user_dirs/'], | |
| 483 ['exclude', '_nss\.cc$'], | 45 ['exclude', '_nss\.cc$'], |
| 484 ], | 46 ], |
| 485 }], | 47 }], |
| 486 [ 'OS == "freebsd" or OS == "openbsd"', { | 48 [ 'OS == "freebsd" or OS == "openbsd"', { |
| 487 'link_settings': { | 49 'link_settings': { |
| 488 'libraries': [ | 50 'libraries': [ |
| 489 '-L/usr/local/lib -lexecinfo', | 51 '-L/usr/local/lib -lexecinfo', |
| 490 ], | 52 ], |
| 491 }, | 53 }, |
| 492 }, | 54 }, |
| 493 ], | 55 ], |
| 494 [ 'OS == "linux"', { | |
| 495 'link_settings': { | |
| 496 'libraries': [ | |
| 497 # We need rt for clock_gettime(). | |
| 498 '-lrt', | |
| 499 # For 'native_library_linux.cc' | |
| 500 '-ldl', | |
| 501 ], | |
| 502 }, | |
| 503 }], | |
| 504 [ 'OS == "mac"', { | 56 [ 'OS == "mac"', { |
| 505 'link_settings': { | 57 'link_settings': { |
| 506 'libraries': [ | 58 'libraries': [ |
| 507 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', | |
| 508 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', | |
| 509 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', | |
| 510 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | |
| 511 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework', | |
| 512 '$(SDKROOT)/System/Library/Frameworks/Security.framework', | 59 '$(SDKROOT)/System/Library/Frameworks/Security.framework', |
| 513 ], | 60 ], |
| 514 }, | 61 }, |
| 515 }, { # OS != "mac" | 62 }, { # OS != "mac" |
| 516 'sources!': [ | 63 'sources!': [ |
| 517 'crypto/cssm_init.cc', | 64 'cssm_init.cc', |
| 518 'crypto/cssm_init.h', | 65 'cssm_init.h', |
| 519 'crypto/mac_security_services_lock.cc', | 66 'mac_security_services_lock.cc', |
| 520 'crypto/mac_security_services_lock.h', | 67 'mac_security_services_lock.h', |
| 521 ], | 68 ], |
| 522 }], | 69 }], |
| 523 [ 'OS == "mac" or OS == "win"', { | 70 [ 'OS == "mac" or OS == "win"', { |
| 524 'dependencies': [ | 71 'dependencies': [ |
| 525 '../third_party/nss/nss.gyp:nss', | 72 '../third_party/nss/nss.gyp:nss', |
| 526 ], | 73 ], |
| 527 },], | 74 },], |
| 528 [ 'OS != "win"', { | 75 [ 'OS != "win"', { |
| 529 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'], | |
| 530 'sources!': [ | 76 'sources!': [ |
| 531 'third_party/purify/pure_api.c', | 77 'capi_util.h', |
| 532 'base_drag_source.cc', | 78 'capi_util.cc', |
| 533 'base_drop_target.cc', | |
| 534 'crypto/capi_util.h', | |
| 535 'crypto/capi_util.cc', | |
| 536 'event_recorder.cc', | |
| 537 'file_version_info.cc', | |
| 538 'registry.cc', | |
| 539 'resource_util.cc', | |
| 540 'win_util.cc', | |
| 541 ], | 79 ], |
| 542 },], | 80 },], |
| 543 [ 'use_openssl==1', { | 81 [ 'use_openssl==1', { |
| 544 # TODO(joth): Use a glob to match exclude patterns once the | 82 # TODO(joth): Use a glob to match exclude patterns once the |
| 545 # OpenSSL file set is complete. | 83 # OpenSSL file set is complete. |
| 546 'sources!': [ | 84 'sources!': [ |
| 547 'crypto/encryptor_nss.cc', | 85 'encryptor_nss.cc', |
| 548 'crypto/rsa_private_key_nss.cc', | |
| 549 'crypto/secure_hash_default.cc', | |
| 550 'crypto/signature_creator_nss.cc', | |
| 551 'crypto/signature_verifier_nss.cc', | |
| 552 'crypto/symmetric_key_nss.cc', | |
| 553 'hmac_nss.cc', | 86 'hmac_nss.cc', |
| 554 'nss_util.cc', | 87 'nss_util.cc', |
| 555 'nss_util.h', | 88 'nss_util.h', |
| 89 'rsa_private_key_nss.cc', |
| 90 'secure_hash_default.cc', |
| 556 # Note that sha2.cc depends on the NSS files bundled into | 91 # Note that sha2.cc depends on the NSS files bundled into |
| 557 # chromium; it does not have the _nss postfix as it is required | 92 # chromium; it does not have the _nss postfix as it is required |
| 558 # on platforms besides linux and *bsd. | 93 # on platforms besides linux and *bsd. |
| 559 'sha2.cc', | 94 'sha2.cc', |
| 95 'signature_creator_nss.cc', |
| 96 'signature_verifier_nss.cc', |
| 97 'symmetric_key_nss.cc', |
| 560 'third_party/nss/blapi.h', | 98 'third_party/nss/blapi.h', |
| 561 'third_party/nss/blapit.h', | 99 'third_party/nss/blapit.h', |
| 562 'third_party/nss/sha256.h', | 100 'third_party/nss/sha256.h', |
| 563 'third_party/nss/sha512.cc', | 101 'third_party/nss/sha512.cc', |
| 564 ], | 102 ], |
| 565 }, { | 103 }, { |
| 566 'sources!': [ | 104 'sources!': [ |
| 567 'crypto/encryptor_openssl.cc', | 105 'encryptor_openssl.cc', |
| 568 'crypto/rsa_private_key_openssl.cc', | |
| 569 'crypto/secure_hash_openssl.cc', | |
| 570 'crypto/signature_creator_openssl.cc', | |
| 571 'crypto/signature_verifier_openssl.cc', | |
| 572 'crypto/symmetric_key_openssl.cc', | |
| 573 'hmac_openssl.cc', | 106 'hmac_openssl.cc', |
| 574 'openssl_util.cc', | 107 'openssl_util.cc', |
| 575 'openssl_util.h', | 108 'openssl_util.h', |
| 109 'rsa_private_key_openssl.cc', |
| 110 'secure_hash_openssl.cc', |
| 576 'sha2_openssl.cc', | 111 'sha2_openssl.cc', |
| 112 'signature_creator_openssl.cc', |
| 113 'signature_verifier_openssl.cc', |
| 114 'symmetric_key_openssl.cc', |
| 577 ], | 115 ], |
| 578 },], | 116 },], |
| 579 ], | 117 ], |
| 580 'sources': [ | 118 'sources': [ |
| 581 'crypto/capi_util.cc', | 119 'capi_util.cc', |
| 582 'crypto/capi_util.h', | 120 'capi_util.h', |
| 583 'crypto/crypto_module_blocking_password_delegate.h', | 121 'crypto_module_blocking_password_delegate.h', |
| 584 'crypto/cssm_init.cc', | 122 'cssm_init.cc', |
| 585 'crypto/cssm_init.h', | 123 'cssm_init.h', |
| 586 'crypto/encryptor.h', | 124 'encryptor.h', |
| 587 'crypto/encryptor_mac.cc', | 125 'encryptor_mac.cc', |
| 588 'crypto/encryptor_nss.cc', | 126 'encryptor_nss.cc', |
| 589 'crypto/encryptor_openssl.cc', | 127 'encryptor_openssl.cc', |
| 590 'crypto/encryptor_win.cc', | 128 'encryptor_win.cc', |
| 591 'crypto/mac_security_services_lock.cc', | |
| 592 'crypto/mac_security_services_lock.h', | |
| 593 'crypto/rsa_private_key.h', | |
| 594 'crypto/rsa_private_key.cc', | |
| 595 'crypto/rsa_private_key_mac.cc', | |
| 596 'crypto/rsa_private_key_nss.cc', | |
| 597 'crypto/rsa_private_key_openssl.cc', | |
| 598 'crypto/rsa_private_key_win.cc', | |
| 599 'crypto/secure_hash.h', | |
| 600 'crypto/secure_hash_default.cc', | |
| 601 'crypto/secure_hash_openssl.cc', | |
| 602 'crypto/signature_creator.h', | |
| 603 'crypto/signature_creator_mac.cc', | |
| 604 'crypto/signature_creator_nss.cc', | |
| 605 'crypto/signature_creator_openssl.cc', | |
| 606 'crypto/signature_creator_win.cc', | |
| 607 'crypto/signature_verifier.h', | |
| 608 'crypto/signature_verifier_mac.cc', | |
| 609 'crypto/signature_verifier_nss.cc', | |
| 610 'crypto/signature_verifier_openssl.cc', | |
| 611 'crypto/signature_verifier_win.cc', | |
| 612 'crypto/symmetric_key.h', | |
| 613 'crypto/symmetric_key_mac.cc', | |
| 614 'crypto/symmetric_key_nss.cc', | |
| 615 'crypto/symmetric_key_openssl.cc', | |
| 616 'crypto/symmetric_key_win.cc', | |
| 617 'third_party/nspr/prcpucfg.h', | |
| 618 'third_party/nspr/prcpucfg_win.h', | |
| 619 'third_party/nspr/prtypes.h', | |
| 620 'third_party/nss/blapi.h', | |
| 621 'third_party/nss/blapit.h', | |
| 622 'third_party/nss/sha256.h', | |
| 623 'third_party/nss/sha512.cc', | |
| 624 'third_party/purify/pure.h', | |
| 625 'third_party/purify/pure_api.c', | |
| 626 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc', | |
| 627 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h', | |
| 628 'auto_reset.h', | |
| 629 'base64.cc', | |
| 630 'base64.h', | |
| 631 'event_recorder.cc', | |
| 632 'event_recorder.h', | |
| 633 'event_recorder_stubs.cc', | |
| 634 'file_descriptor_shuffle.cc', | |
| 635 'file_descriptor_shuffle.h', | |
| 636 'hmac.h', | 129 'hmac.h', |
| 637 'hmac_mac.cc', | 130 'hmac_mac.cc', |
| 638 'hmac_nss.cc', | 131 'hmac_nss.cc', |
| 639 'hmac_openssl.cc', | 132 'hmac_openssl.cc', |
| 640 'hmac_win.cc', | 133 'hmac_win.cc', |
| 641 'linux_util.cc', | 134 'mac_security_services_lock.cc', |
| 642 'linux_util.h', | 135 'mac_security_services_lock.h', |
| 643 'md5.cc', | 136 'openssl_util.cc', |
| 644 'md5.h', | 137 'openssl_util.h', |
| 645 'message_pump_glib.cc', | |
| 646 'message_pump_glib.h', | |
| 647 'message_pump_glib_x.cc', | |
| 648 'message_pump_glib_x.h', | |
| 649 'message_pump_glib_x_dispatch.h', | |
| 650 'message_pump_libevent.cc', | |
| 651 'message_pump_libevent.h', | |
| 652 'message_pump_mac.h', | |
| 653 'message_pump_mac.mm', | |
| 654 'metrics/field_trial.cc', | |
| 655 'metrics/field_trial.h', | |
| 656 'nss_util.cc', | 138 'nss_util.cc', |
| 657 'nss_util.h', | 139 'nss_util.h', |
| 658 'openssl_util.cc', | 140 'nss_util_internal.h', |
| 659 'openssl_util.h', | 141 'rsa_private_key.h', |
| 142 'rsa_private_key.cc', |
| 143 'rsa_private_key_mac.cc', |
| 144 'rsa_private_key_nss.cc', |
| 145 'rsa_private_key_openssl.cc', |
| 146 'rsa_private_key_win.cc', |
| 147 'scoped_capi_types.h', |
| 148 'scoped_nss_types.h', |
| 149 'secure_hash.h', |
| 150 'secure_hash_default.cc', |
| 151 'secure_hash_openssl.cc', |
| 660 'sha2.cc', | 152 'sha2.cc', |
| 661 'sha2.h', | 153 'sha2.h', |
| 662 'sha2_openssl.cc', | 154 'sha2_openssl.cc', |
| 663 'string16.cc', | 155 'signature_creator.h', |
| 664 'string16.h', | 156 'signature_creator_mac.cc', |
| 665 'sync_socket.h', | 157 'signature_creator_nss.cc', |
| 666 'sync_socket_win.cc', | 158 'signature_creator_openssl.cc', |
| 667 'sync_socket_posix.cc', | 159 'signature_creator_win.cc', |
| 668 'time_mac.cc', | 160 'signature_verifier.h', |
| 669 'time_posix.cc', | 161 'signature_verifier_mac.cc', |
| 162 'signature_verifier_nss.cc', |
| 163 'signature_verifier_openssl.cc', |
| 164 'signature_verifier_win.cc', |
| 165 'symmetric_key.h', |
| 166 'symmetric_key_mac.cc', |
| 167 'symmetric_key_nss.cc', |
| 168 'symmetric_key_openssl.cc', |
| 169 'symmetric_key_win.cc', |
| 170 'third_party/nss/blapi.h', |
| 171 'third_party/nss/blapit.h', |
| 172 'third_party/nss/sha256.h', |
| 173 'third_party/nss/sha512.cc', |
| 174 ], |
| 175 }, |
| 176 { |
| 177 'target_name': 'crypto_unittests', |
| 178 'type': 'executable', |
| 179 'sources': [ |
| 180 # Infrastructure files. |
| 181 'run_all_unittests.cc', |
| 182 |
| 183 # Tests. |
| 184 'encryptor_unittest.cc', |
| 185 'hmac_unittest.cc', |
| 186 'rsa_private_key_unittest.cc', |
| 187 'rsa_private_key_nss_unittest.cc', |
| 188 'secure_hash_unittest.cc', |
| 189 'sha2_unittest.cc', |
| 190 'signature_creator_unittest.cc', |
| 191 'signature_verifier_unittest.cc', |
| 192 'symmetric_key_unittest.cc', |
| 193 ], |
| 194 'dependencies': [ |
| 195 'crypto', |
| 196 '../base/base.gyp:base', |
| 197 '../base/base.gyp:test_support_base', |
| 198 '../testing/gmock.gyp:gmock', |
| 199 '../testing/gtest.gyp:gtest', |
| 200 ], |
| 201 'conditions': [ |
| 202 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris
"', { |
| 203 'conditions': [ |
| 204 [ 'linux_use_tcmalloc==1', { |
| 205 'dependencies': [ |
| 206 'allocator/allocator.gyp:allocator', |
| 207 ], |
| 208 }, |
| 209 ], |
| 210 8], |
| 211 'dependencies': [ |
| 212 '../build/linux/system.gyp:nss', |
| 213 ], |
| 214 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS !=
"solaris" |
| 215 'sources!': [ |
| 216 'rsa_private_key_nss_unittest.cc', |
| 217 ] |
| 218 }], |
| 219 [ 'OS == "mac" or OS == "win"', { |
| 220 'dependencies': [ |
| 221 '../third_party/nss/nss.gyp:nss', |
| 222 ], |
| 223 }], |
| 224 [ 'use_openssl==1', { |
| 225 'sources!': [ |
| 226 'rsa_private_key_nss_unittest.cc', |
| 227 ], |
| 228 }], |
| 670 ], | 229 ], |
| 671 }, | 230 }, |
| 672 ], | 231 ], |
| 673 'conditions': [ | |
| 674 [ 'OS == "win"', { | |
| 675 'targets': [ | |
| 676 { | |
| 677 'target_name': 'base_nacl_win64', | |
| 678 'type': '<(library)', | |
| 679 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE', | |
| 680 'variables': { | |
| 681 'base_target': 1, | |
| 682 }, | |
| 683 'dependencies': [ | |
| 684 'base_static_win64', | |
| 685 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_ann
otations_win64', | |
| 686 ], | |
| 687 # TODO(gregoryd): direct_dependent_settings should be shared with the | |
| 688 # 32-bit target, but it doesn't work due to a bug in gyp | |
| 689 'direct_dependent_settings': { | |
| 690 'include_dirs': [ | |
| 691 '..', | |
| 692 ], | |
| 693 }, | |
| 694 'defines': [ | |
| 695 '<@(nacl_win64_defines)', | |
| 696 ], | |
| 697 'sources': [ | |
| 698 'i18n/icu_util_nacl_win64.cc', | |
| 699 ], | |
| 700 'configurations': { | |
| 701 'Common_Base': { | |
| 702 'msvs_target_platform': 'x64', | |
| 703 }, | |
| 704 }, | |
| 705 }, | |
| 706 ], | |
| 707 }], | |
| 708 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"',
{ | |
| 709 'targets': [ | |
| 710 { | |
| 711 'target_name': 'symbolize', | |
| 712 'type': '<(library)', | |
| 713 'variables': { | |
| 714 'chromium_code': 0, | |
| 715 }, | |
| 716 'conditions': [ | |
| 717 [ 'OS == "solaris"', { | |
| 718 'include_dirs': [ | |
| 719 '/usr/gnu/include', | |
| 720 '/usr/gnu/include/libelf', | |
| 721 ], | |
| 722 },], | |
| 723 ], | |
| 724 'cflags': [ | |
| 725 '-Wno-sign-compare', | |
| 726 ], | |
| 727 'cflags!': [ | |
| 728 '-Wextra', | |
| 729 ], | |
| 730 'sources': [ | |
| 731 'third_party/symbolize/symbolize.cc', | |
| 732 'third_party/symbolize/demangle.cc', | |
| 733 ], | |
| 734 }, | |
| 735 { | |
| 736 'target_name': 'xdg_mime', | |
| 737 'type': '<(library)', | |
| 738 'variables': { | |
| 739 'chromium_code': 0, | |
| 740 }, | |
| 741 'cflags!': [ | |
| 742 '-Wextra', | |
| 743 ], | |
| 744 'sources': [ | |
| 745 'third_party/xdg_mime/xdgmime.c', | |
| 746 'third_party/xdg_mime/xdgmime.h', | |
| 747 'third_party/xdg_mime/xdgmimealias.c', | |
| 748 'third_party/xdg_mime/xdgmimealias.h', | |
| 749 'third_party/xdg_mime/xdgmimecache.c', | |
| 750 'third_party/xdg_mime/xdgmimecache.h', | |
| 751 'third_party/xdg_mime/xdgmimeglob.c', | |
| 752 'third_party/xdg_mime/xdgmimeglob.h', | |
| 753 'third_party/xdg_mime/xdgmimeicon.c', | |
| 754 'third_party/xdg_mime/xdgmimeicon.h', | |
| 755 'third_party/xdg_mime/xdgmimeint.c', | |
| 756 'third_party/xdg_mime/xdgmimeint.h', | |
| 757 'third_party/xdg_mime/xdgmimemagic.c', | |
| 758 'third_party/xdg_mime/xdgmimemagic.h', | |
| 759 'third_party/xdg_mime/xdgmimeparent.c', | |
| 760 'third_party/xdg_mime/xdgmimeparent.h', | |
| 761 ], | |
| 762 }, | |
| 763 ], | |
| 764 }], | |
| 765 ], | |
| 766 } | 232 } |
| OLD | NEW |