| OLD | NEW |
| 1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
| 4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
| 5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 { | 8 { |
| 9 'variables': { | |
| 10 'webrtc_all_dependencies': [ | |
| 11 'base/base.gyp:*', | |
| 12 'common.gyp:*', | |
| 13 'common_audio/common_audio.gyp:*', | |
| 14 'common_video/common_video.gyp:*', | |
| 15 'media/media.gyp:*', | |
| 16 'modules/modules.gyp:*', | |
| 17 'p2p/p2p.gyp:*', | |
| 18 'pc/pc.gyp:*', | |
| 19 'system_wrappers/system_wrappers.gyp:*', | |
| 20 'tools/tools.gyp:*', | |
| 21 'voice_engine/voice_engine.gyp:*', | |
| 22 '<(webrtc_vp8_dir)/vp8.gyp:*', | |
| 23 '<(webrtc_vp9_dir)/vp9.gyp:*', | |
| 24 ], | |
| 25 }, | |
| 26 'conditions': [ | |
| 27 ['build_with_chromium==0', { | |
| 28 # TODO(kjellander): Move this to webrtc_all_dependencies once all of talk/ | |
| 29 # has been moved to webrtc/. It can't be processed by Chromium since the | |
| 30 # reference to buid/java.gypi is using an absolute path (and includes | |
| 31 # entries cannot contain variables). | |
| 32 'variables': { | |
| 33 'webrtc_all_dependencies': [ | |
| 34 'api/api.gyp:*', | |
| 35 ], | |
| 36 }, | |
| 37 }], | |
| 38 ['build_with_chromium==0 and' | |
| 39 '(OS=="ios" or (OS=="mac" and mac_deployment_target=="10.7"))', { | |
| 40 # TODO(kjellander): Move this to webrtc_all_dependencies once all of talk/ | |
| 41 # has been moved to webrtc/. It can't be processed by Chromium since the | |
| 42 # reference to buid/java.gypi is using an absolute path (and includes | |
| 43 # entries cannot contain variables). | |
| 44 'variables': { | |
| 45 'webrtc_all_dependencies': [ | |
| 46 'sdk/sdk.gyp:*', | |
| 47 ], | |
| 48 }, | |
| 49 }], | |
| 50 ['include_tests==1', { | |
| 51 'includes': [ | |
| 52 'webrtc_tests.gypi', | |
| 53 ], | |
| 54 }], | |
| 55 ['enable_protobuf==1', { | |
| 56 'targets': [ | |
| 57 { | |
| 58 # This target should only be built if enable_protobuf is defined | |
| 59 'target_name': 'rtc_event_log_proto', | |
| 60 'type': 'static_library', | |
| 61 'sources': ['call/rtc_event_log.proto',], | |
| 62 'variables': { | |
| 63 'proto_in_dir': 'call', | |
| 64 'proto_out_dir': 'webrtc/call', | |
| 65 }, | |
| 66 'includes': ['build/protoc.gypi'], | |
| 67 }, | |
| 68 ], | |
| 69 }], | |
| 70 ['enable_protobuf==1', { | |
| 71 'targets': [ | |
| 72 { | |
| 73 'target_name': 'rtc_event_log_parser', | |
| 74 'type': 'static_library', | |
| 75 'sources': [ | |
| 76 'call/rtc_event_log_parser.cc', | |
| 77 'call/rtc_event_log_parser.h', | |
| 78 ], | |
| 79 'dependencies': [ | |
| 80 'rtc_event_log_proto', | |
| 81 ], | |
| 82 'export_dependent_settings': [ | |
| 83 'rtc_event_log_proto', | |
| 84 ], | |
| 85 }, | |
| 86 ], | |
| 87 }], | |
| 88 ['include_tests==1 and enable_protobuf==1', { | |
| 89 'targets': [ | |
| 90 { | |
| 91 'target_name': 'rtc_event_log2rtp_dump', | |
| 92 'type': 'executable', | |
| 93 'sources': ['call/rtc_event_log2rtp_dump.cc',], | |
| 94 'dependencies': [ | |
| 95 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', | |
| 96 'rtc_event_log_parser', | |
| 97 'rtc_event_log_proto', | |
| 98 'test/test.gyp:rtp_test_utils' | |
| 99 ], | |
| 100 }, | |
| 101 ], | |
| 102 }], | |
| 103 ], | |
| 104 'includes': [ | 9 'includes': [ |
| 105 'build/common.gypi', | 10 'build/common.gypi', |
| 106 'audio/webrtc_audio.gypi', | 11 'audio/webrtc_audio.gypi', |
| 107 'call/webrtc_call.gypi', | 12 'call/webrtc_call.gypi', |
| 108 'video/webrtc_video.gypi', | 13 'video/webrtc_video.gypi', |
| 109 ], | 14 ], |
| 110 'targets': [ | 15 'targets': [ |
| 111 { | 16 { |
| 112 'target_name': 'webrtc_all', | |
| 113 'type': 'none', | |
| 114 'dependencies': [ | |
| 115 '<@(webrtc_all_dependencies)', | |
| 116 'webrtc', | |
| 117 ], | |
| 118 'conditions': [ | |
| 119 ['include_tests==1', { | |
| 120 'dependencies': [ | |
| 121 'api/api_tests.gyp:*', | |
| 122 'common_video/common_video_unittests.gyp:*', | |
| 123 'rtc_unittests', | |
| 124 'system_wrappers/system_wrappers_tests.gyp:*', | |
| 125 'test/metrics.gyp:*', | |
| 126 'test/test.gyp:*', | |
| 127 'webrtc_tests', | |
| 128 ], | |
| 129 }], | |
| 130 ], | |
| 131 }, | |
| 132 { | |
| 133 'target_name': 'webrtc', | 17 'target_name': 'webrtc', |
| 134 'type': 'static_library', | 18 'type': 'static_library', |
| 135 'sources': [ | 19 'sources': [ |
| 136 'audio_receive_stream.h', | 20 'audio_receive_stream.h', |
| 137 'audio_send_stream.h', | 21 'audio_send_stream.h', |
| 138 'audio_state.h', | 22 'audio_state.h', |
| 139 'call.h', | 23 'call.h', |
| 140 'config.h', | 24 'config.h', |
| 141 'transport.h', | 25 'transport.h', |
| 142 'video_receive_stream.h', | 26 'video_receive_stream.h', |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 ['enable_protobuf==1', { | 62 ['enable_protobuf==1', { |
| 179 'dependencies': [ | 63 'dependencies': [ |
| 180 'rtc_event_log_proto', | 64 'rtc_event_log_proto', |
| 181 ], | 65 ], |
| 182 'defines': [ | 66 'defines': [ |
| 183 'ENABLE_RTC_EVENT_LOG', | 67 'ENABLE_RTC_EVENT_LOG', |
| 184 ], | 68 ], |
| 185 }], | 69 }], |
| 186 ], | 70 ], |
| 187 }, | 71 }, |
| 188 | 72 ], # targets |
| 189 ], | 73 'conditions': [ |
| 74 ['include_tests==1', { |
| 75 'includes': [ |
| 76 'webrtc_tests.gypi', |
| 77 ], |
| 78 }], |
| 79 ['enable_protobuf==1', { |
| 80 'targets': [ |
| 81 { |
| 82 # This target should only be built if enable_protobuf is defined |
| 83 'target_name': 'rtc_event_log_proto', |
| 84 'type': 'static_library', |
| 85 'sources': ['call/rtc_event_log.proto',], |
| 86 'variables': { |
| 87 'proto_in_dir': 'call', |
| 88 'proto_out_dir': 'webrtc/call', |
| 89 }, |
| 90 'includes': ['build/protoc.gypi'], |
| 91 }, |
| 92 { |
| 93 'target_name': 'rtc_event_log_parser', |
| 94 'type': 'static_library', |
| 95 'sources': [ |
| 96 'call/rtc_event_log_parser.cc', |
| 97 'call/rtc_event_log_parser.h', |
| 98 ], |
| 99 'dependencies': [ |
| 100 'rtc_event_log_proto', |
| 101 ], |
| 102 'export_dependent_settings': [ |
| 103 'rtc_event_log_proto', |
| 104 ], |
| 105 }, |
| 106 ], |
| 107 }], |
| 108 ['include_tests==1 and enable_protobuf==1', { |
| 109 'targets': [ |
| 110 { |
| 111 'target_name': 'rtc_event_log2rtp_dump', |
| 112 'type': 'executable', |
| 113 'sources': ['call/rtc_event_log2rtp_dump.cc',], |
| 114 'dependencies': [ |
| 115 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', |
| 116 'rtc_event_log_parser', |
| 117 'rtc_event_log_proto', |
| 118 'test/test.gyp:rtp_test_utils' |
| 119 ], |
| 120 }, |
| 121 ], |
| 122 }], |
| 123 ], # conditions |
| 190 } | 124 } |
| OLD | NEW |