Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / video_engine / test / auto_test / vie_auto_test.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': 'vie_auto_test',
13       'type': 'executable',
14       'dependencies': [
15         '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
16         '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:metrics_default',
17         '<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_impl',
18         '<(webrtc_root)/modules/modules.gyp:video_render_module_internal_impl',
19         '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
20         '<(DEPTH)/testing/gtest.gyp:gtest',
21         '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
22         '<(webrtc_root)/test/metrics.gyp:metrics',
23         '<(webrtc_root)/test/test.gyp:channel_transport',
24         '<(webrtc_root)/test/test.gyp:test_support',
25         '<(webrtc_root)/test/test.gyp:field_trial',
26         'video_engine_core',
27         'libvietest',
28       ],
29       'sources': [
30         'interface/vie_autotest.h',
31         'interface/vie_autotest_defines.h',
32         'interface/vie_autotest_linux.h',
33         'interface/vie_autotest_mac_cocoa.h',
34         'interface/vie_autotest_main.h',
35         'interface/vie_autotest_window_manager_interface.h',
36         'interface/vie_autotest_windows.h',
37         'interface/vie_file_based_comparison_tests.h',
38         'interface/vie_window_manager_factory.h',
39         'interface/vie_window_creator.h',
40
41         # New, fully automated tests
42         'automated/legacy_fixture.cc',
43         'automated/two_windows_fixture.cc',
44         'automated/vie_api_integration_test.cc',
45         'automated/vie_extended_integration_test.cc',
46         'automated/vie_network_test.cc',
47         'automated/vie_standard_integration_test.cc',
48         'automated/vie_video_verification_test.cc',
49
50         # Test primitives
51         'primitives/base_primitives.cc',
52         'primitives/base_primitives.h',
53         'primitives/choice_helpers.cc',
54         'primitives/choice_helpers.h',
55         'primitives/choice_helpers_unittest.cc',
56         'primitives/fake_stdin.h',
57         'primitives/fake_stdin.cc',
58         'primitives/framedrop_primitives.h',
59         'primitives/framedrop_primitives.cc',
60         'primitives/framedrop_primitives_unittest.cc',
61         'primitives/general_primitives.cc',
62         'primitives/general_primitives.h',
63         'primitives/input_helpers.cc',
64         'primitives/input_helpers.h',
65         'primitives/input_helpers_unittest.cc',
66
67         # Platform independent
68         'source/vie_autotest.cc',
69         'source/vie_autotest_base.cc',
70         'source/vie_autotest_capture.cc',
71         'source/vie_autotest_codec.cc',
72         'source/vie_autotest_image_process.cc',
73         'source/vie_autotest_loopback.cc',
74         'source/vie_autotest_main.cc',
75         'source/vie_autotest_render.cc',
76         'source/vie_autotest_record.cc',
77         'source/vie_autotest_rtp_rtcp.cc',
78         'source/vie_autotest_custom_call.cc',
79         'source/vie_autotest_simulcast.cc',
80         'source/vie_file_based_comparison_tests.cc',
81         'source/vie_window_creator.cc',
82
83         # Platform dependent
84         # Android
85         'source/vie_autotest_android.cc',
86         # Linux
87         'source/vie_autotest_linux.cc',
88         'source/vie_window_manager_factory_linux.cc',
89         # Mac
90         'source/vie_autotest_cocoa_mac.mm',
91         'source/vie_window_manager_factory_mac.mm',
92         # Windows
93         'source/vie_autotest_win.cc',
94         'source/vie_window_manager_factory_win.cc',
95       ],
96       'conditions': [
97         ['OS=="android"', {
98           'libraries': [
99             '-lGLESv2',
100             '-llog',
101           ],
102         }],
103         ['OS=="linux"', {
104           # TODO(andrew): These should be provided directly by the projects
105           #               which require them instead.
106           'libraries': [
107             '-lXext',
108             '-lX11',
109           ],
110         }],
111         ['OS=="mac"', {
112           'dependencies': [
113             # Use a special main for mac so we can access the webcam.
114             '<(webrtc_root)/test/test.gyp:test_support_main_threaded_mac',
115           ],
116           'xcode_settings': {
117             'OTHER_LDFLAGS': [
118               '-framework Foundation -framework AppKit -framework Cocoa -framework OpenGL -framework CoreVideo -framework CoreAudio -framework AudioToolbox',
119             ],
120           },
121         }],
122       ], # conditions
123       # Disable warnings to enable Win64 build, issue 1323.
124       'msvs_disabled_warnings': [
125         4267,  # size_t to int truncation.
126       ],
127     },
128   ],
129   'conditions': [
130     ['test_isolation_mode != "noop"', {
131       'targets': [
132         {
133           'target_name': 'vie_auto_test_run',
134           'type': 'none',
135           'dependencies': [
136             'vie_auto_test',
137           ],
138           'includes': [
139             '../../../build/isolate.gypi',
140           ],
141           'sources': [
142             'vie_auto_test.isolate',
143           ],
144         },
145       ],
146     }],
147   ],
148 }