- add third_party src.
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / video_engine / video_engine_core.gypi
1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
2 #
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
5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS.  All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree.
8
9 {
10   'targets': [
11     {
12       'target_name': 'video_engine_core',
13       'type': 'static_library',
14       'dependencies': [
15
16         # common_video
17        '<(webrtc_root)/common_video/common_video.gyp:common_video',
18
19         # ModulesShared
20         '<(webrtc_root)/modules/modules.gyp:media_file',
21         '<(webrtc_root)/modules/modules.gyp:rtp_rtcp',
22         '<(webrtc_root)/modules/modules.gyp:webrtc_utility',
23
24         # ModulesVideo
25         '<(webrtc_root)/modules/modules.gyp:bitrate_controller',
26         '<(webrtc_root)/modules/modules.gyp:video_capture_module',
27         '<(webrtc_root)/modules/modules.gyp:webrtc_video_coding',
28         '<(webrtc_root)/modules/modules.gyp:video_processing',
29         '<(webrtc_root)/modules/modules.gyp:video_render_module',
30
31         # VoiceEngine
32         '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
33
34         # system_wrappers
35         '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
36       ],
37       'sources': [
38         # interface
39         'include/vie_base.h',
40         'include/vie_capture.h',
41         'include/vie_codec.h',
42         'include/vie_encryption.h',
43         'include/vie_errors.h',
44         'include/vie_external_codec.h',
45         'include/vie_image_process.h',
46         'include/vie_network.h',
47         'include/vie_render.h',
48         'include/vie_rtp_rtcp.h',
49
50         # headers
51         'call_stats.h',
52         'encoder_state_feedback.h',
53         'overuse_frame_detector.h',
54         'stream_synchronization.h',
55         'vie_base_impl.h',
56         'vie_capture_impl.h',
57         'vie_codec_impl.h',
58         'vie_defines.h',
59         'vie_encryption_impl.h',
60         'vie_external_codec_impl.h',
61         'vie_image_process_impl.h',
62         'vie_impl.h',
63         'vie_network_impl.h',
64         'vie_ref_count.h',
65         'vie_remb.h',
66         'vie_render_impl.h',
67         'vie_rtp_rtcp_impl.h',
68         'vie_shared_data.h',
69         'vie_capturer.h',
70         'vie_channel.h',
71         'vie_channel_group.h',
72         'vie_channel_manager.h',
73         'vie_encoder.h',
74         'vie_file_image.h',
75         'vie_frame_provider_base.h',
76         'vie_input_manager.h',
77         'vie_manager_base.h',
78         'vie_receiver.h',
79         'vie_renderer.h',
80         'vie_render_manager.h',
81         'vie_sender.h',
82         'vie_sync_module.h',
83
84         # ViE
85         'call_stats.cc',
86         'encoder_state_feedback.cc',
87         'overuse_frame_detector.cc',
88         'stream_synchronization.cc',
89         'vie_base_impl.cc',
90         'vie_capture_impl.cc',
91         'vie_codec_impl.cc',
92         'vie_encryption_impl.cc',
93         'vie_external_codec_impl.cc',
94         'vie_image_process_impl.cc',
95         'vie_impl.cc',
96         'vie_network_impl.cc',
97         'vie_ref_count.cc',
98         'vie_render_impl.cc',
99         'vie_rtp_rtcp_impl.cc',
100         'vie_shared_data.cc',
101         'vie_capturer.cc',
102         'vie_channel.cc',
103         'vie_channel_group.cc',
104         'vie_channel_manager.cc',
105         'vie_encoder.cc',
106         'vie_file_image.cc',
107         'vie_frame_provider_base.cc',
108         'vie_input_manager.cc',
109         'vie_manager_base.cc',
110         'vie_receiver.cc',
111         'vie_remb.cc',
112         'vie_renderer.cc',
113         'vie_render_manager.cc',
114         'vie_sender.cc',
115         'vie_sync_module.cc',
116       ], # source
117       # TODO(jschuh): Bug 1348: fix size_t to int truncations.
118       'msvs_disabled_warnings': [ 4267, ],
119     },
120   ], # targets
121   'conditions': [
122     ['include_tests==1', {
123       'targets': [
124         {
125           'target_name': 'video_engine_core_unittests',
126           'type': '<(gtest_target_type)',
127           'dependencies': [
128             'video_engine_core',
129             '<(DEPTH)/testing/gtest.gyp:gtest',
130             '<(DEPTH)/testing/gmock.gyp:gmock',
131             '<(webrtc_root)/test/test.gyp:test_support_main',
132           ],
133           'sources': [
134             'call_stats_unittest.cc',
135             'encoder_state_feedback_unittest.cc',
136             'overuse_frame_detector_unittest.cc',
137             'stream_synchronization_unittest.cc',
138             'vie_remb_unittest.cc',
139           ],
140           'conditions': [
141             # TODO(henrike): remove build_with_chromium==1 when the bots are
142             # using Chromium's buildbots.
143             ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
144               'dependencies': [
145                 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
146               ],
147             }],
148           ],
149         },
150       ], # targets
151       'conditions': [
152         # TODO(henrike): remove build_with_chromium==1 when the bots are using
153         # Chromium's buildbots.
154         ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
155           'targets': [
156             {
157               'target_name': 'video_engine_core_unittests_apk_target',
158               'type': 'none',
159               'dependencies': [
160                 '<(apk_tests_path):video_engine_core_unittests_apk',
161               ],
162             },
163           ],
164         }],
165         ['test_isolation_mode != "noop"', {
166           'targets': [
167             {
168               'target_name': 'video_engine_core_unittests_run',
169               'type': 'none',
170               'dependencies': [
171                 'video_engine_core_unittests',
172               ],
173               'includes': [
174                 '../build/isolate.gypi',
175                 'video_engine_core_unittests.isolate',
176               ],
177               'sources': [
178                 'video_engine_core_unittests.isolate',
179               ],
180             },
181           ],
182         }],
183       ],
184     }], # include_tests
185   ], # conditions
186 }