OLD | NEW |
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 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 'target_defaults': { |
7 'variables': { | 7 'variables': { |
8 'base_target': 0, | 8 'base_target': 0, |
| 9 'base_extra_target': 0, |
9 }, | 10 }, |
10 'target_conditions': [ | 11 'target_conditions': [ |
11 # This part is shared between the targets defined below. Only files and | 12 # This part is shared between the targets defined below. Only files and |
12 # settings relevant for building the Win64 target should be added here. | 13 # settings relevant for building the Win64 target should be added here. |
13 # All the rest should be added to the 'base' target below. | 14 # All the rest should be added to the 'base' target below. |
14 ['base_target==1', { | 15 ['base_target==1', { |
15 'sources': [ | 16 'sources': [ |
16 '../build/build_config.h', | 17 '../build/build_config.h', |
17 'third_party/dmg_fp/dmg_fp.h', | 18 'third_party/dmg_fp/dmg_fp.h', |
18 'third_party/dmg_fp/dtoa.cc', | 19 'third_party/dmg_fp/dtoa.cc', |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 'sources!': [ | 346 'sources!': [ |
346 'event_recorder_stubs.cc', | 347 'event_recorder_stubs.cc', |
347 'file_descriptor_shuffle.cc', | 348 'file_descriptor_shuffle.cc', |
348 'message_pump_libevent.cc', | 349 'message_pump_libevent.cc', |
349 'string16.cc', | 350 'string16.cc', |
350 'trace_event.cc', | 351 'trace_event.cc', |
351 ], | 352 ], |
352 },], | 353 },], |
353 ], | 354 ], |
354 }], | 355 }], |
| 356 ['base_extra_target', { |
| 357 'sources': [ |
| 358 'crypto/cssm_init.cc', |
| 359 'crypto/cssm_init.h', |
| 360 'crypto/encryptor.h', |
| 361 'crypto/encryptor_mac.cc', |
| 362 'crypto/encryptor_nss.cc', |
| 363 'crypto/encryptor_win.cc', |
| 364 'crypto/rsa_private_key.h', |
| 365 'crypto/rsa_private_key.cc', |
| 366 'crypto/rsa_private_key_mac.cc', |
| 367 'crypto/rsa_private_key_nss.cc', |
| 368 'crypto/rsa_private_key_win.cc', |
| 369 'crypto/signature_creator.h', |
| 370 'crypto/signature_creator_mac.cc', |
| 371 'crypto/signature_creator_nss.cc', |
| 372 'crypto/signature_creator_win.cc', |
| 373 'crypto/signature_verifier.h', |
| 374 'crypto/signature_verifier_mac.cc', |
| 375 'crypto/signature_verifier_nss.cc', |
| 376 'crypto/signature_verifier_win.cc', |
| 377 'crypto/symmetric_key.h', |
| 378 'crypto/symmetric_key_mac.cc', |
| 379 'crypto/symmetric_key_nss.cc', |
| 380 'crypto/symmetric_key_win.cc', |
| 381 'third_party/nspr/prcpucfg.h', |
| 382 'third_party/nspr/prcpucfg_win.h', |
| 383 'third_party/nspr/prtypes.h', |
| 384 'third_party/nss/blapi.h', |
| 385 'third_party/nss/blapit.h', |
| 386 'third_party/nss/sha256.h', |
| 387 'third_party/nss/sha512.cc', |
| 388 'third_party/purify/pure.h', |
| 389 'third_party/purify/pure_api.c', |
| 390 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc', |
| 391 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h', |
| 392 'auto_reset.h', |
| 393 'base64.cc', |
| 394 'base64.h', |
| 395 'base_drag_source.cc', |
| 396 'base_drag_source.h', |
| 397 'base_drop_target.cc', |
| 398 'base_drop_target.h', |
| 399 'data_pack.cc', |
| 400 'event_recorder.cc', |
| 401 'event_recorder.h', |
| 402 'event_recorder_stubs.cc', |
| 403 'field_trial.cc', |
| 404 'field_trial.h', |
| 405 'file_descriptor_shuffle.cc', |
| 406 'file_descriptor_shuffle.h', |
| 407 'hmac.h', |
| 408 'hmac_mac.cc', |
| 409 'hmac_nss.cc', |
| 410 'hmac_win.cc', |
| 411 'image_util.cc', |
| 412 'image_util.h', |
| 413 'json/json_reader.cc', |
| 414 'json/json_reader.h', |
| 415 'json/json_writer.cc', |
| 416 'json/json_writer.h', |
| 417 'json/string_escape.cc', |
| 418 'json/string_escape.h', |
| 419 'keyboard_code_conversion_gtk.cc', |
| 420 'keyboard_code_conversion_gtk.h', |
| 421 'keyboard_codes.h', |
| 422 'keyboard_codes_win.h', |
| 423 'keyboard_codes_posix.h', |
| 424 'linux_util.cc', |
| 425 'linux_util.h', |
| 426 'md5.cc', |
| 427 'md5.h', |
| 428 'message_pump_glib.cc', |
| 429 'message_pump_glib.h', |
| 430 'message_pump_libevent.cc', |
| 431 'message_pump_libevent.h', |
| 432 'message_pump_mac.h', |
| 433 'message_pump_mac.mm', |
| 434 'nsimage_cache_mac.h', |
| 435 'nsimage_cache_mac.mm', |
| 436 'nss_util.cc', |
| 437 'nss_util.h', |
| 438 'setproctitle_linux.c', |
| 439 'setproctitle_linux.h', |
| 440 'sha2.cc', |
| 441 'sha2.h', |
| 442 'string16.cc', |
| 443 'string16.h', |
| 444 'sync_socket.h', |
| 445 'sync_socket_win.cc', |
| 446 'sync_socket_posix.cc', |
| 447 'time_mac.cc', |
| 448 'time_posix.cc', |
| 449 'version.cc', |
| 450 'version.h', |
| 451 ], |
| 452 'conditions': [ |
| 453 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { |
| 454 'conditions': [ |
| 455 [ 'chromeos==1', { |
| 456 'sources/': [ ['include', '_chromeos\\.cc$'] ] |
| 457 }, |
| 458 ], |
| 459 [ 'linux_use_tcmalloc==0', { |
| 460 'defines': [ |
| 461 'NO_TCMALLOC', |
| 462 ], |
| 463 'direct_dependent_settings': { |
| 464 'defines': [ |
| 465 'NO_TCMALLOC', |
| 466 ], |
| 467 }, |
| 468 }, |
| 469 ], |
| 470 [ 'OS == "linux"', { |
| 471 'link_settings': { |
| 472 'libraries': [ |
| 473 # We need rt for clock_gettime(). |
| 474 '-lrt', |
| 475 # For 'native_library_linux.cc' |
| 476 '-ldl', |
| 477 ], |
| 478 }, |
| 479 }], |
| 480 ], |
| 481 'defines': [ |
| 482 'USE_SYMBOLIZE', |
| 483 ], |
| 484 'cflags': [ |
| 485 '-Wno-write-strings', |
| 486 ], |
| 487 },], |
| 488 [ 'OS != "win"', { |
| 489 'sources!': [ |
| 490 'third_party/purify/pure_api.c', |
| 491 'base_drag_source.cc', |
| 492 'base_drop_target.cc', |
| 493 'cpu.cc', |
| 494 'debug_on_start.cc', |
| 495 'event_recorder.cc', |
| 496 'file_version_info.cc', |
| 497 'iat_patch.cc', |
| 498 'image_util.cc', |
| 499 'object_watcher.cc', |
| 500 'pe_image.cc', |
| 501 'registry.cc', |
| 502 'resource_util.cc', |
| 503 'win_util.cc', |
| 504 'wmi_util.cc', |
| 505 ], |
| 506 },], |
| 507 ], |
| 508 }], |
355 ], | 509 ], |
356 }, | 510 }, |
357 'targets': [ | 511 'targets': [ |
358 { | 512 { |
359 'target_name': 'base', | 513 'target_name': 'base', |
360 'type': '<(library)', | 514 'type': '<(library)', |
361 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165', | 515 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165', |
362 'variables': { | 516 'variables': { |
363 'base_target': 1, | 517 'base_target': 1, |
| 518 'base_extra_target': 1, |
364 }, | 519 }, |
365 'dependencies': [ | 520 'dependencies': [ |
366 '../third_party/modp_b64/modp_b64.gyp:modp_b64', | 521 '../third_party/modp_b64/modp_b64.gyp:modp_b64', |
367 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotat
ions', | 522 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotat
ions', |
368 ], | 523 ], |
369 # TODO(gregoryd): direct_dependent_settings should be shared with the | 524 # TODO(gregoryd): direct_dependent_settings should be shared with the |
370 # 64-bit target, but it doesn't work due to a bug in gyp | 525 # 64-bit target, but it doesn't work due to a bug in gyp |
371 'direct_dependent_settings': { | 526 'direct_dependent_settings': { |
372 'include_dirs': [ | 527 'include_dirs': [ |
373 '..', | 528 '..', |
374 ], | 529 ], |
375 }, | 530 }, |
376 # Conditions that are not relevant for Win64 build | |
377 'conditions': [ | 531 'conditions': [ |
378 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { | 532 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { |
379 'conditions': [ | 533 'conditions': [ |
380 [ 'chromeos==1', { | |
381 'sources/': [ ['include', '_chromeos\\.cc$'] ] | |
382 }, | |
383 ], | |
384 [ 'linux_use_tcmalloc==0', { | |
385 'defines': [ | |
386 'NO_TCMALLOC', | |
387 ], | |
388 'direct_dependent_settings': { | |
389 'defines': [ | |
390 'NO_TCMALLOC', | |
391 ], | |
392 }, | |
393 }, | |
394 ], | |
395 [ 'linux_use_tcmalloc==1', { | 534 [ 'linux_use_tcmalloc==1', { |
396 'dependencies': [ | 535 'dependencies': [ |
397 'allocator/allocator.gyp:allocator', | 536 'allocator/allocator.gyp:allocator', |
398 ], | 537 ], |
399 }, | 538 }, |
400 ], | 539 ], |
401 [ 'OS == "linux"', { | |
402 'link_settings': { | |
403 'libraries': [ | |
404 # We need rt for clock_gettime(). | |
405 '-lrt', | |
406 # For 'native_library_linux.cc' | |
407 '-ldl', | |
408 ], | |
409 }, | |
410 }], | |
411 ], | 540 ], |
412 'dependencies': [ | 541 'dependencies': [ |
| 542 'symbolize', |
413 '../build/util/build_util.gyp:lastchange', | 543 '../build/util/build_util.gyp:lastchange', |
414 '../build/linux/system.gyp:gtk', | 544 '../build/linux/system.gyp:gtk', |
415 '../build/linux/system.gyp:nss', | 545 '../build/linux/system.gyp:nss', |
416 'symbolize', | |
417 'xdg_mime', | 546 'xdg_mime', |
418 ], | 547 ], |
419 'defines': [ | |
420 'USE_SYMBOLIZE', | |
421 ], | |
422 'cflags': [ | |
423 '-Wno-write-strings', | |
424 ], | |
425 'export_dependent_settings': [ | 548 'export_dependent_settings': [ |
426 '../build/linux/system.gyp:gtk', | 549 '../build/linux/system.gyp:gtk', |
427 ], | 550 ], |
428 },], | 551 },], |
429 [ 'OS == "freebsd" or OS == "openbsd"', { | 552 [ 'OS == "freebsd" or OS == "openbsd"', { |
430 'link_settings': { | 553 'link_settings': { |
431 'libraries': [ | 554 'libraries': [ |
432 '-L/usr/local/lib -lexecinfo', | 555 '-L/usr/local/lib -lexecinfo', |
433 ], | 556 ], |
434 }, | 557 }, |
435 }, | 558 }, |
436 ], | 559 ], |
437 [ 'OS == "mac"', { | 560 [ 'OS == "mac"', { |
438 'link_settings': { | 561 'link_settings': { |
439 'libraries': [ | 562 'libraries': [ |
440 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', | 563 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', |
441 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', | 564 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', |
442 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', | 565 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', |
443 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | 566 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
444 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework', | 567 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework', |
445 '$(SDKROOT)/System/Library/Frameworks/Security.framework', | 568 '$(SDKROOT)/System/Library/Frameworks/Security.framework', |
446 ], | 569 ], |
447 }, | 570 }, |
448 },], | 571 },], |
449 [ 'OS == "mac" or OS == "win"', { | 572 [ 'OS == "mac" or OS == "win"', { |
450 'dependencies': [ | 573 'dependencies': [ |
451 '../third_party/nss/nss.gyp:nss', | 574 '../third_party/nss/nss.gyp:nss', |
452 ], | 575 ], |
453 },], | 576 },], |
454 [ 'OS != "win"', { | 577 [ 'OS != "win"', { |
455 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'], | 578 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'], |
456 'sources!': [ | |
457 'third_party/purify/pure_api.c', | |
458 'base_drag_source.cc', | |
459 'base_drop_target.cc', | |
460 'cpu.cc', | |
461 'debug_on_start.cc', | |
462 'event_recorder.cc', | |
463 'file_version_info.cc', | |
464 'iat_patch.cc', | |
465 'image_util.cc', | |
466 'object_watcher.cc', | |
467 'pe_image.cc', | |
468 'registry.cc', | |
469 'resource_util.cc', | |
470 'win_util.cc', | |
471 'wmi_util.cc', | |
472 ], | |
473 },], | 579 },], |
474 ], | 580 ], |
475 'sources': [ | |
476 'crypto/cssm_init.cc', | |
477 'crypto/cssm_init.h', | |
478 'crypto/encryptor.h', | |
479 'crypto/encryptor_mac.cc', | |
480 'crypto/encryptor_nss.cc', | |
481 'crypto/encryptor_win.cc', | |
482 'crypto/rsa_private_key.h', | |
483 'crypto/rsa_private_key.cc', | |
484 'crypto/rsa_private_key_mac.cc', | |
485 'crypto/rsa_private_key_nss.cc', | |
486 'crypto/rsa_private_key_win.cc', | |
487 'crypto/signature_creator.h', | |
488 'crypto/signature_creator_mac.cc', | |
489 'crypto/signature_creator_nss.cc', | |
490 'crypto/signature_creator_win.cc', | |
491 'crypto/signature_verifier.h', | |
492 'crypto/signature_verifier_mac.cc', | |
493 'crypto/signature_verifier_nss.cc', | |
494 'crypto/signature_verifier_win.cc', | |
495 'crypto/symmetric_key.h', | |
496 'crypto/symmetric_key_mac.cc', | |
497 'crypto/symmetric_key_nss.cc', | |
498 'crypto/symmetric_key_win.cc', | |
499 'third_party/nspr/prcpucfg.h', | |
500 'third_party/nspr/prcpucfg_win.h', | |
501 'third_party/nspr/prtypes.h', | |
502 'third_party/nss/blapi.h', | |
503 'third_party/nss/blapit.h', | |
504 'third_party/nss/sha256.h', | |
505 'third_party/nss/sha512.cc', | |
506 'third_party/purify/pure.h', | |
507 'third_party/purify/pure_api.c', | |
508 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc', | |
509 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h', | |
510 'auto_reset.h', | |
511 'base64.cc', | |
512 'base64.h', | |
513 'base_drag_source.cc', | |
514 'base_drag_source.h', | |
515 'base_drop_target.cc', | |
516 'base_drop_target.h', | |
517 'data_pack.cc', | |
518 'event_recorder.cc', | |
519 'event_recorder.h', | |
520 'event_recorder_stubs.cc', | |
521 'field_trial.cc', | |
522 'field_trial.h', | |
523 'file_descriptor_shuffle.cc', | |
524 'file_descriptor_shuffle.h', | |
525 'hmac.h', | |
526 'hmac_mac.cc', | |
527 'hmac_nss.cc', | |
528 'hmac_win.cc', | |
529 'image_util.cc', | |
530 'image_util.h', | |
531 'json/json_reader.cc', | |
532 'json/json_reader.h', | |
533 'json/json_writer.cc', | |
534 'json/json_writer.h', | |
535 'json/string_escape.cc', | |
536 'json/string_escape.h', | |
537 'keyboard_code_conversion_gtk.cc', | |
538 'keyboard_code_conversion_gtk.h', | |
539 'keyboard_codes.h', | |
540 'keyboard_codes_win.h', | |
541 'keyboard_codes_posix.h', | |
542 'linux_util.cc', | |
543 'linux_util.h', | |
544 'md5.cc', | |
545 'md5.h', | |
546 'message_pump_glib.cc', | |
547 'message_pump_glib.h', | |
548 'message_pump_libevent.cc', | |
549 'message_pump_libevent.h', | |
550 'message_pump_mac.h', | |
551 'message_pump_mac.mm', | |
552 'nsimage_cache_mac.h', | |
553 'nsimage_cache_mac.mm', | |
554 'nss_util.cc', | |
555 'nss_util.h', | |
556 'setproctitle_linux.c', | |
557 'setproctitle_linux.h', | |
558 'sha2.cc', | |
559 'sha2.h', | |
560 'string16.cc', | |
561 'string16.h', | |
562 'sync_socket.h', | |
563 'sync_socket_win.cc', | |
564 'sync_socket_posix.cc', | |
565 'time_mac.cc', | |
566 'time_posix.cc', | |
567 'version.cc', | |
568 'version.h', | |
569 ], | |
570 }, | 581 }, |
571 ], | 582 ], |
572 'conditions': [ | 583 'conditions': [ |
573 [ 'OS == "win"', { | 584 [ 'OS == "win"', { |
574 'targets': [ | 585 'targets': [ |
575 { | 586 { |
576 'target_name': 'base_nacl_win64', | 587 'target_name': 'base_nacl_win64', |
577 'type': '<(library)', | 588 'type': '<(library)', |
578 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE', | 589 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE', |
579 'variables': { | 590 'variables': { |
(...skipping 16 matching lines...) Expand all Loading... |
596 'i18n/icu_util_nacl_win64.cc', | 607 'i18n/icu_util_nacl_win64.cc', |
597 ], | 608 ], |
598 'configurations': { | 609 'configurations': { |
599 'Common_Base': { | 610 'Common_Base': { |
600 'msvs_target_platform': 'x64', | 611 'msvs_target_platform': 'x64', |
601 }, | 612 }, |
602 }, | 613 }, |
603 }, | 614 }, |
604 ], | 615 ], |
605 }], | 616 }], |
| 617 [ 'OS == "linux" and target_arch=="x64" and internal_pdf', { |
| 618 'targets': [ |
| 619 { |
| 620 'target_name': 'base_fpic', |
| 621 'type': '<(library)', |
| 622 'variables': { |
| 623 'base_target': 1, |
| 624 'base_extra_target': 1, |
| 625 }, |
| 626 'cflags': [ |
| 627 '-fPIC', |
| 628 ], |
| 629 'direct_dependent_settings': { |
| 630 'include_dirs': [ |
| 631 '..', |
| 632 ], |
| 633 }, |
| 634 'conditions': [ |
| 635 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { |
| 636 'dependencies': [ |
| 637 '../build/util/build_util.gyp:lastchange', |
| 638 '../build/linux/system.gyp:gtk', |
| 639 '../build/linux/system.gyp:nss', |
| 640 'xdg_mime', |
| 641 ], |
| 642 'export_dependent_settings': [ |
| 643 '../build/linux/system.gyp:gtk', |
| 644 ], |
| 645 },], |
| 646 [ 'OS == "mac" or OS == "win"', { |
| 647 'dependencies': [ |
| 648 '../third_party/nss/nss.gyp:nss', |
| 649 ], |
| 650 },], |
| 651 [ 'OS != "win"', { |
| 652 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'
], |
| 653 },], |
| 654 ], |
| 655 }, |
| 656 ], |
| 657 }], |
606 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"',
{ | 658 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"',
{ |
607 'targets': [ | 659 'targets': [ |
608 { | 660 { |
609 'target_name': 'symbolize', | 661 'target_name': 'symbolize', |
610 'type': '<(library)', | 662 'type': '<(library)', |
611 'variables': { | 663 'variables': { |
612 'chromium_code': 0, | 664 'chromium_code': 0, |
613 }, | 665 }, |
614 'conditions': [ | 666 'conditions': [ |
615 [ 'OS == "solaris"', { | 667 [ 'OS == "solaris"', { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 'third_party/xdg_mime/xdgmimemagic.c', | 707 'third_party/xdg_mime/xdgmimemagic.c', |
656 'third_party/xdg_mime/xdgmimemagic.h', | 708 'third_party/xdg_mime/xdgmimemagic.h', |
657 'third_party/xdg_mime/xdgmimeparent.c', | 709 'third_party/xdg_mime/xdgmimeparent.c', |
658 'third_party/xdg_mime/xdgmimeparent.h', | 710 'third_party/xdg_mime/xdgmimeparent.h', |
659 ], | 711 ], |
660 }, | 712 }, |
661 ], | 713 ], |
662 }], | 714 }], |
663 ], | 715 ], |
664 } | 716 } |
OLD | NEW |