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