Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / tools / tools.gyp
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   'includes': [
11     '../build/common.gypi',
12   ],
13   'targets': [
14     {
15       'target_name': 'video_quality_analysis',
16       'type': 'static_library',
17       'dependencies': [
18         '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',
19       ],
20       'export_dependent_settings': [
21         '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',
22       ],
23       'sources': [
24         'frame_analyzer/video_quality_analysis.h',
25         'frame_analyzer/video_quality_analysis.cc',
26       ],
27     }, # video_quality_analysis
28     {
29       'target_name': 'frame_analyzer',
30       'type': 'executable',
31       'dependencies': [
32         '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
33         'video_quality_analysis',
34       ],
35       'sources': [
36         'frame_analyzer/frame_analyzer.cc',
37       ],
38     }, # frame_analyzer
39     {
40       'target_name': 'psnr_ssim_analyzer',
41       'type': 'executable',
42       'dependencies': [
43         '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
44         'video_quality_analysis',
45       ],
46       'sources': [
47         'psnr_ssim_analyzer/psnr_ssim_analyzer.cc',
48       ],
49     }, # psnr_ssim_analyzer
50     {
51       'target_name': 'rgba_to_i420_converter',
52       'type': 'executable',
53       'dependencies': [
54         '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
55         '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',
56       ],
57       'sources': [
58         'converter/converter.h',
59         'converter/converter.cc',
60         'converter/rgba_to_i420_converter.cc',
61       ],
62     }, # rgba_to_i420_converter
63     {
64       'target_name': 'frame_editing_lib',
65       'type': 'static_library',
66       'dependencies': [
67         '<(webrtc_root)/common_video/common_video.gyp:common_video',
68       ],
69       'sources': [
70         'frame_editing/frame_editing_lib.cc',
71         'frame_editing/frame_editing_lib.h',
72       ],
73       # Disable warnings to enable Win64 build, issue 1323.
74       'msvs_disabled_warnings': [
75         4267,  # size_t to int truncation.
76       ],
77     }, # frame_editing_lib
78     {
79       'target_name': 'frame_editor',
80       'type': 'executable',
81       'dependencies': [
82         '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
83         'frame_editing_lib',
84       ],
85       'sources': [
86         'frame_editing/frame_editing.cc',
87       ],
88     }, # frame_editing
89     {
90       'target_name': 'force_mic_volume_max',
91       'type': 'executable',
92       'dependencies': [
93         '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
94         '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:field_trial_default',
95       ],
96       'sources': [
97         'force_mic_volume_max/force_mic_volume_max.cc',
98       ],
99     }, # force_mic_volume_max
100   ],
101   'conditions': [
102     ['include_tests==1', {
103       'targets' : [
104         {
105           'target_name': 'audio_e2e_harness',
106           'type': 'executable',
107           'dependencies': [
108             '<(webrtc_root)/test/test.gyp:channel_transport',
109             '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
110             '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:field_trial_default',
111             '<(DEPTH)/testing/gtest.gyp:gtest',
112             '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
113           ],
114           'sources': [
115             'e2e_quality/audio/audio_e2e_harness.cc',
116           ],
117         }, # audio_e2e_harness
118         {
119           'target_name': 'tools_unittests',
120           'type': '<(gtest_target_type)',
121           'dependencies': [
122             'frame_editing_lib',
123             'video_quality_analysis',
124             '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
125             '<(webrtc_root)/test/test.gyp:test_support_main',
126             '<(DEPTH)/testing/gtest.gyp:gtest',
127           ],
128           'sources': [
129             'simple_command_line_parser_unittest.cc',
130             'frame_editing/frame_editing_unittest.cc',
131             'frame_analyzer/video_quality_analysis_unittest.cc',
132           ],
133           # Disable warnings to enable Win64 build, issue 1323.
134           'msvs_disabled_warnings': [
135             4267,  # size_t to int truncation.
136           ],
137           'conditions': [
138             ['OS=="android"', {
139               'dependencies': [
140                 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
141               ],
142             }],
143           ],
144         }, # tools_unittests
145       ], # targets
146       'conditions': [
147         ['OS=="android"', {
148           'targets': [
149             {
150               'target_name': 'tools_unittests_apk_target',
151               'type': 'none',
152               'dependencies': [
153                 '<(apk_tests_path):tools_unittests_apk',
154               ],
155             },
156           ],
157         }],
158         ['test_isolation_mode != "noop"', {
159           'targets': [
160             {
161               'target_name': 'tools_unittests_run',
162               'type': 'none',
163               'dependencies': [
164                 'tools_unittests',
165               ],
166               'includes': [
167                 '../build/isolate.gypi',
168                 'tools_unittests.isolate',
169               ],
170               'sources': [
171                 'tools_unittests.isolate',
172               ],
173             },
174           ],
175         }],
176       ],
177     }], # include_tests
178   ], # conditions
179 }