OLD | NEW |
1 # | 1 # |
2 # libjingle | 2 # libjingle |
3 # Copyright 2012 Google Inc. | 3 # Copyright 2012 Google Inc. |
4 # | 4 # |
5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
6 # modification, are permitted provided that the following conditions are met: | 6 # modification, are permitted provided that the following conditions are met: |
7 # | 7 # |
8 # 1. Redistributions of source code must retain the above copyright notice, | 8 # 1. Redistributions of source code must retain the above copyright notice, |
9 # this list of conditions and the following disclaimer. | 9 # this list of conditions and the following disclaimer. |
10 # 2. Redistributions in binary form must reproduce the above copyright notice, | 10 # 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 }, | 431 }, |
432 }], | 432 }], |
433 ], | 433 ], |
434 }, # target libjingle_peerconnection_objc | 434 }, # target libjingle_peerconnection_objc |
435 ], | 435 ], |
436 }], | 436 }], |
437 ], | 437 ], |
438 | 438 |
439 'targets': [ | 439 'targets': [ |
440 { | 440 { |
441 'target_name': 'libjingle', | |
442 'type': 'none', | |
443 'dependencies': [ | |
444 '<(webrtc_root)/base/base.gyp:rtc_base', | |
445 ], | |
446 'conditions': [ | |
447 ['build_json==1', { | |
448 'dependencies': [ | |
449 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp', | |
450 ], | |
451 'export_dependent_settings': [ | |
452 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp', | |
453 ], | |
454 }], | |
455 ['build_expat==1', { | |
456 'dependencies': [ | |
457 '<(DEPTH)/third_party/expat/expat.gyp:expat', | |
458 ], | |
459 'export_dependent_settings': [ | |
460 '<(DEPTH)/third_party/expat/expat.gyp:expat', | |
461 ], | |
462 }], | |
463 ], | |
464 }, # target libjingle | |
465 { | |
466 'target_name': 'libjingle_media', | |
467 'type': 'static_library', | |
468 'dependencies': [ | |
469 '<(webrtc_root)/common.gyp:webrtc_common', | |
470 '<(webrtc_root)/modules/modules.gyp:video_render_module', | |
471 '<(webrtc_root)/webrtc.gyp:webrtc', | |
472 '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine', | |
473 '<(webrtc_root)/sound/sound.gyp:rtc_sound', | |
474 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default', | |
475 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', | |
476 '<(webrtc_root)/libjingle/xmllite/xmllite.gyp:rtc_xmllite', | |
477 '<(webrtc_root)/libjingle/xmpp/xmpp.gyp:rtc_xmpp', | |
478 '<(webrtc_root)/p2p/p2p.gyp:rtc_p2p', | |
479 'libjingle', | |
480 ], | |
481 'direct_dependent_settings': { | |
482 'include_dirs': [ | |
483 '<(libyuv_dir)/include', | |
484 ], | |
485 }, | |
486 'sources': [ | |
487 'media/base/audioframe.h', | |
488 'media/base/audiorenderer.h', | |
489 'media/base/capturemanager.cc', | |
490 'media/base/capturemanager.h', | |
491 'media/base/capturerenderadapter.cc', | |
492 'media/base/capturerenderadapter.h', | |
493 'media/base/codec.cc', | |
494 'media/base/codec.h', | |
495 'media/base/constants.cc', | |
496 'media/base/constants.h', | |
497 'media/base/cpuid.cc', | |
498 'media/base/cpuid.h', | |
499 'media/base/cryptoparams.h', | |
500 'media/base/device.h', | |
501 'media/base/fakescreencapturerfactory.h', | |
502 'media/base/hybriddataengine.h', | |
503 'media/base/mediachannel.h', | |
504 'media/base/mediacommon.h', | |
505 'media/base/mediaengine.cc', | |
506 'media/base/mediaengine.h', | |
507 'media/base/rtpdataengine.cc', | |
508 'media/base/rtpdataengine.h', | |
509 'media/base/rtpdump.cc', | |
510 'media/base/rtpdump.h', | |
511 'media/base/rtputils.cc', | |
512 'media/base/rtputils.h', | |
513 'media/base/screencastid.h', | |
514 'media/base/streamparams.cc', | |
515 'media/base/streamparams.h', | |
516 'media/base/turnutils.cc', | |
517 'media/base/turnutils.h', | |
518 'media/base/videoadapter.cc', | |
519 'media/base/videoadapter.h', | |
520 'media/base/videocapturer.cc', | |
521 'media/base/videocapturer.h', | |
522 'media/base/videocapturerfactory.h', | |
523 'media/base/videocommon.cc', | |
524 'media/base/videocommon.h', | |
525 'media/base/videoframe.cc', | |
526 'media/base/videoframe.h', | |
527 'media/base/videoframefactory.cc', | |
528 'media/base/videoframefactory.h', | |
529 'media/base/videorenderer.h', | |
530 'media/base/yuvframegenerator.cc', | |
531 'media/base/yuvframegenerator.h', | |
532 'media/devices/deviceinfo.h', | |
533 'media/devices/devicemanager.cc', | |
534 'media/devices/devicemanager.h', | |
535 'media/devices/dummydevicemanager.h', | |
536 'media/devices/filevideocapturer.cc', | |
537 'media/devices/filevideocapturer.h', | |
538 'media/devices/videorendererfactory.h', | |
539 'media/devices/yuvframescapturer.cc', | |
540 'media/devices/yuvframescapturer.h', | |
541 'media/sctp/sctpdataengine.cc', | |
542 'media/sctp/sctpdataengine.h', | |
543 'media/webrtc/simulcast.cc', | |
544 'media/webrtc/simulcast.h', | |
545 'media/webrtc/webrtccommon.h', | |
546 'media/webrtc/webrtcmediaengine.cc', | |
547 'media/webrtc/webrtcmediaengine.h', | |
548 'media/webrtc/webrtcmediaengine.cc', | |
549 'media/webrtc/webrtcvideocapturer.cc', | |
550 'media/webrtc/webrtcvideocapturer.h', | |
551 'media/webrtc/webrtcvideocapturerfactory.h', | |
552 'media/webrtc/webrtcvideocapturerfactory.cc', | |
553 'media/webrtc/webrtcvideodecoderfactory.h', | |
554 'media/webrtc/webrtcvideoencoderfactory.h', | |
555 'media/webrtc/webrtcvideoengine2.cc', | |
556 'media/webrtc/webrtcvideoengine2.h', | |
557 'media/webrtc/webrtcvideoframe.cc', | |
558 'media/webrtc/webrtcvideoframe.h', | |
559 'media/webrtc/webrtcvideoframefactory.cc', | |
560 'media/webrtc/webrtcvideoframefactory.h', | |
561 'media/webrtc/webrtcvoe.h', | |
562 'media/webrtc/webrtcvoiceengine.cc', | |
563 'media/webrtc/webrtcvoiceengine.h', | |
564 ], | |
565 'conditions': [ | |
566 ['build_libyuv==1', { | |
567 'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',], | |
568 }], | |
569 ['build_usrsctp==1', { | |
570 'include_dirs': [ | |
571 # TODO(jiayl): move this into the direct_dependent_settings of | |
572 # usrsctp.gyp. | |
573 '<(DEPTH)/third_party/usrsctp/usrsctplib', | |
574 ], | |
575 'dependencies': [ | |
576 '<(DEPTH)/third_party/usrsctp/usrsctp.gyp:usrsctplib', | |
577 ], | |
578 }], | |
579 ['build_with_chromium==1', { | |
580 'dependencies': [ | |
581 '<(webrtc_root)/modules/modules.gyp:video_capture', | |
582 '<(webrtc_root)/modules/modules.gyp:video_render', | |
583 ], | |
584 }, { | |
585 'dependencies': [ | |
586 '<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_im
pl', | |
587 '<(webrtc_root)/modules/modules.gyp:video_render_module_internal_imp
l', | |
588 ], | |
589 }], | |
590 ['OS=="linux"', { | |
591 'sources': [ | |
592 'media/devices/libudevsymboltable.cc', | |
593 'media/devices/libudevsymboltable.h', | |
594 'media/devices/linuxdeviceinfo.cc', | |
595 'media/devices/linuxdevicemanager.cc', | |
596 'media/devices/linuxdevicemanager.h', | |
597 'media/devices/v4llookup.cc', | |
598 'media/devices/v4llookup.h', | |
599 ], | |
600 'conditions': [ | |
601 ['use_gtk==1', { | |
602 'sources': [ | |
603 'media/devices/gtkvideorenderer.cc', | |
604 'media/devices/gtkvideorenderer.h', | |
605 ], | |
606 'cflags': [ | |
607 '<!@(pkg-config --cflags gobject-2.0 gthread-2.0 gtk+-2.0)', | |
608 ], | |
609 }], | |
610 ], | |
611 'include_dirs': [ | |
612 'third_party/libudev' | |
613 ], | |
614 'libraries': [ | |
615 '-lrt', | |
616 ], | |
617 }], | |
618 ['OS=="win"', { | |
619 'sources': [ | |
620 'media/devices/gdivideorenderer.cc', | |
621 'media/devices/gdivideorenderer.h', | |
622 'media/devices/win32deviceinfo.cc', | |
623 'media/devices/win32devicemanager.cc', | |
624 'media/devices/win32devicemanager.h', | |
625 ], | |
626 'msvs_settings': { | |
627 'VCLibrarianTool': { | |
628 'AdditionalDependencies': [ | |
629 'd3d9.lib', | |
630 'gdi32.lib', | |
631 'strmiids.lib', | |
632 'winmm.lib', | |
633 ], | |
634 }, | |
635 }, | |
636 }], | |
637 ['OS=="mac"', { | |
638 'sources': [ | |
639 'media/devices/macdeviceinfo.cc', | |
640 'media/devices/macdevicemanager.cc', | |
641 'media/devices/macdevicemanager.h', | |
642 'media/devices/macdevicemanagermm.mm', | |
643 ], | |
644 'conditions': [ | |
645 ['target_arch=="ia32"', { | |
646 'sources': [ | |
647 'media/devices/carbonvideorenderer.cc', | |
648 'media/devices/carbonvideorenderer.h', | |
649 ], | |
650 'link_settings': { | |
651 'xcode_settings': { | |
652 'OTHER_LDFLAGS': [ | |
653 '-framework Carbon', | |
654 ], | |
655 }, | |
656 }, | |
657 }], | |
658 ], | |
659 'xcode_settings': { | |
660 'WARNING_CFLAGS': [ | |
661 # TODO(ronghuawu): Update macdevicemanager.cc to stop using | |
662 # deprecated functions and remove this flag. | |
663 '-Wno-deprecated-declarations', | |
664 ], | |
665 # Disable partial availability warning to prevent errors | |
666 # in macdevicemanagermm.mm using AVFoundation. | |
667 # https://code.google.com/p/webrtc/issues/detail?id=4695 | |
668 'WARNING_CFLAGS!': ['-Wpartial-availability'], | |
669 }, | |
670 'link_settings': { | |
671 'xcode_settings': { | |
672 'OTHER_LDFLAGS': [ | |
673 '-weak_framework AVFoundation', | |
674 '-framework Cocoa', | |
675 '-framework CoreAudio', | |
676 '-framework CoreVideo', | |
677 '-framework OpenGL', | |
678 '-framework QTKit', | |
679 ], | |
680 }, | |
681 }, | |
682 }], | |
683 ['OS=="ios"', { | |
684 'sources': [ | |
685 'media/devices/mobiledevicemanager.cc', | |
686 ], | |
687 'include_dirs': [ | |
688 # TODO(sjlee) Remove when vp8 is building for iOS. vp8 pulls in | |
689 # libjpeg which pulls in libyuv which currently disabled. | |
690 '../third_party/libyuv/include', | |
691 ], | |
692 }], | |
693 ['OS=="android"', { | |
694 'sources': [ | |
695 'media/devices/mobiledevicemanager.cc', | |
696 ], | |
697 }], | |
698 ], | |
699 }, # target libjingle_media | |
700 { | |
701 'target_name': 'libjingle_p2p', | 441 'target_name': 'libjingle_p2p', |
702 'type': 'static_library', | 442 'type': 'static_library', |
703 'dependencies': [ | 443 'dependencies': [ |
704 'libjingle', | 444 '<(webrtc_root)/base/base.gyp:rtc_base', |
705 'libjingle_media', | 445 '<(webrtc_root)/media/media.gyp:rtc_media', |
706 ], | 446 ], |
707 'conditions': [ | 447 'conditions': [ |
708 ['build_libsrtp==1', { | 448 ['build_libsrtp==1', { |
709 'dependencies': [ | 449 'dependencies': [ |
710 '<(DEPTH)/third_party/libsrtp/libsrtp.gyp:libsrtp', | 450 '<(DEPTH)/third_party/libsrtp/libsrtp.gyp:libsrtp', |
711 ], | 451 ], |
712 }], | 452 }], |
713 ], | 453 ], |
714 'include_dirs': [ | 454 'include_dirs': [ |
715 '<(DEPTH)/testing/gtest/include', | 455 '<(DEPTH)/testing/gtest/include', |
(...skipping 29 matching lines...) Expand all Loading... |
745 'session/media/rtcpmuxfilter.h', | 485 'session/media/rtcpmuxfilter.h', |
746 'session/media/srtpfilter.cc', | 486 'session/media/srtpfilter.cc', |
747 'session/media/srtpfilter.h', | 487 'session/media/srtpfilter.h', |
748 'session/media/voicechannel.h', | 488 'session/media/voicechannel.h', |
749 ], | 489 ], |
750 }, # target libjingle_p2p | 490 }, # target libjingle_p2p |
751 { | 491 { |
752 'target_name': 'libjingle_peerconnection', | 492 'target_name': 'libjingle_peerconnection', |
753 'type': 'static_library', | 493 'type': 'static_library', |
754 'dependencies': [ | 494 'dependencies': [ |
755 'libjingle', | 495 '<(webrtc_root)/base/base.gyp:rtc_base', |
756 'libjingle_media', | 496 '<(webrtc_root)/media/media.gyp:rtc_media', |
757 'libjingle_p2p', | 497 'libjingle_p2p', |
758 ], | 498 ], |
759 'sources': [ | 499 'sources': [ |
760 'app/webrtc/audiotrack.cc', | 500 'app/webrtc/audiotrack.cc', |
761 'app/webrtc/audiotrack.h', | 501 'app/webrtc/audiotrack.h', |
762 'app/webrtc/datachannel.cc', | 502 'app/webrtc/datachannel.cc', |
763 'app/webrtc/datachannel.h', | 503 'app/webrtc/datachannel.h', |
764 'app/webrtc/datachannelinterface.h', | 504 'app/webrtc/datachannelinterface.h', |
765 'app/webrtc/dtlsidentitystore.cc', | 505 'app/webrtc/dtlsidentitystore.cc', |
766 'app/webrtc/dtlsidentitystore.h', | 506 'app/webrtc/dtlsidentitystore.h', |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 'app/webrtc/webrtcsdp.cc', | 564 'app/webrtc/webrtcsdp.cc', |
825 'app/webrtc/webrtcsdp.h', | 565 'app/webrtc/webrtcsdp.h', |
826 'app/webrtc/webrtcsession.cc', | 566 'app/webrtc/webrtcsession.cc', |
827 'app/webrtc/webrtcsession.h', | 567 'app/webrtc/webrtcsession.h', |
828 'app/webrtc/webrtcsessiondescriptionfactory.cc', | 568 'app/webrtc/webrtcsessiondescriptionfactory.cc', |
829 'app/webrtc/webrtcsessiondescriptionfactory.h', | 569 'app/webrtc/webrtcsessiondescriptionfactory.h', |
830 ], | 570 ], |
831 }, # target libjingle_peerconnection | 571 }, # target libjingle_peerconnection |
832 ], | 572 ], |
833 } | 573 } |
OLD | NEW |