blob: fa790469da2926f7856266ac8997adb82098d3c3 [file] [log] [blame]
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +00001# 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 {
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000015 'target_name': 'video_quality_analysis',
wjia@webrtc.org0a7fc8d2013-01-18 17:13:47 +000016 'type': 'static_library',
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000017 'dependencies': [
18 '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',
19 ],
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000020 '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': [
phoglund@webrtc.orgde93f2c2013-05-17 11:52:08 +000032 '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000033 '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': [
phoglund@webrtc.orgde93f2c2013-05-17 11:52:08 +000043 '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000044 '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': [
phoglund@webrtc.orgde93f2c2013-05-17 11:52:08 +000054 '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000055 '<(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
brykt@google.comd9b18e92012-11-27 13:44:07 +000063 {
brykt@google.comf8b1da22012-12-20 11:42:45 +000064 'target_name': 'frame_editing_lib',
wjia@webrtc.org0a7fc8d2013-01-18 17:13:47 +000065 'type': 'static_library',
brykt@google.comd9b18e92012-11-27 13:44:07 +000066 'dependencies': [
andrew@webrtc.orgad2a55a2012-11-30 02:28:27 +000067 '<(webrtc_root)/common_video/common_video.gyp:common_video',
brykt@google.comd9b18e92012-11-27 13:44:07 +000068 ],
69 'sources': [
brykt@google.comf8b1da22012-12-20 11:42:45 +000070 'frame_editing/frame_editing_lib.cc',
71 'frame_editing/frame_editing_lib.h',
brykt@google.comd9b18e92012-11-27 13:44:07 +000072 ],
kjellander@webrtc.org1e7f77a2013-02-04 10:07:17 +000073 # Disable warnings to enable Win64 build, issue 1323.
74 'msvs_disabled_warnings': [
75 4267, # size_t to int truncation.
76 ],
brykt@google.comf8b1da22012-12-20 11:42:45 +000077 }, # frame_editing_lib
brykt@google.comd9b18e92012-11-27 13:44:07 +000078 {
brykt@google.comf8b1da22012-12-20 11:42:45 +000079 'target_name': 'frame_editor',
brykt@google.comd9b18e92012-11-27 13:44:07 +000080 'type': 'executable',
81 'dependencies': [
phoglund@webrtc.orgde93f2c2013-05-17 11:52:08 +000082 '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
brykt@google.comf8b1da22012-12-20 11:42:45 +000083 'frame_editing_lib',
brykt@google.comd9b18e92012-11-27 13:44:07 +000084 ],
85 'sources': [
brykt@google.comf8b1da22012-12-20 11:42:45 +000086 'frame_editing/frame_editing.cc',
brykt@google.comd9b18e92012-11-27 13:44:07 +000087 ],
brykt@google.comf8b1da22012-12-20 11:42:45 +000088 }, # frame_editing
phoglund@webrtc.orgde93f2c2013-05-17 11:52:08 +000089 {
90 'target_name': 'force_mic_volume_max',
91 'type': 'executable',
92 'dependencies': [
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +000093 '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
phoglund@webrtc.orgde93f2c2013-05-17 11:52:08 +000094 ],
95 'sources': [
96 'force_mic_volume_max/force_mic_volume_max.cc',
97 ],
98 }, # force_mic_volume_max
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000099 ],
brykt@google.comd9b18e92012-11-27 13:44:07 +0000100 'conditions': [
101 ['include_tests==1', {
102 'targets' : [
103 {
104 'target_name': 'tools_unittests',
henrike@webrtc.orgacb00f52013-08-02 16:53:47 +0000105 'type': '<(gtest_target_type)',
brykt@google.comd9b18e92012-11-27 13:44:07 +0000106 'dependencies': [
brykt@google.comf8b1da22012-12-20 11:42:45 +0000107 'frame_editing_lib',
kjellander@webrtc.org3524ade2013-09-10 12:10:01 +0000108 'video_quality_analysis',
phoglund@webrtc.orgde93f2c2013-05-17 11:52:08 +0000109 '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
brykt@google.comd9b18e92012-11-27 13:44:07 +0000110 '<(webrtc_root)/test/test.gyp:test_support_main',
111 '<(DEPTH)/testing/gtest.gyp:gtest',
112 ],
113 'sources': [
kjellander@webrtc.orgf6a2efa2013-01-26 16:36:40 +0000114 'simple_command_line_parser_unittest.cc',
brykt@google.comf8b1da22012-12-20 11:42:45 +0000115 'frame_editing/frame_editing_unittest.cc',
kjellander@webrtc.org3524ade2013-09-10 12:10:01 +0000116 'frame_analyzer/video_quality_analysis_unittest.cc',
brykt@google.comd9b18e92012-11-27 13:44:07 +0000117 ],
kjellander@webrtc.org1e7f77a2013-02-04 10:07:17 +0000118 # Disable warnings to enable Win64 build, issue 1323.
119 'msvs_disabled_warnings': [
120 4267, # size_t to int truncation.
121 ],
henrike@webrtc.orgacb00f52013-08-02 16:53:47 +0000122 'conditions': [
123 # TODO(henrike): remove build_with_chromium==1 when the bots are
124 # using Chromium's buildbots.
125 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
126 'dependencies': [
127 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
128 ],
129 }],
130 ],
brykt@google.comd9b18e92012-11-27 13:44:07 +0000131 }, # tools_unittests
132 ], # targets
henrike@webrtc.orgacb00f52013-08-02 16:53:47 +0000133 # TODO(henrike): remove build_with_chromium==1 when the bots are using
134 # Chromium's buildbots.
135 'conditions': [
136 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
137 'targets': [
138 {
139 'target_name': 'tools_unittests_apk_target',
140 'type': 'none',
141 'dependencies': [
142 '<(apk_tests_path):tools_unittests_apk',
143 ],
144 },
145 ],
146 }],
kjellander@webrtc.org3540c822013-08-22 07:57:00 +0000147 ['test_isolation_mode != "noop"', {
148 'targets': [
149 {
150 'target_name': 'tools_unittests_run',
151 'type': 'none',
152 'dependencies': [
kjellander@webrtc.org3540c822013-08-22 07:57:00 +0000153 'tools_unittests',
154 ],
155 'includes': [
kjellander@webrtc.org22a28932013-10-02 19:31:16 +0000156 '../build/isolate.gypi',
kjellander@webrtc.org3540c822013-08-22 07:57:00 +0000157 'tools_unittests.isolate',
158 ],
159 'sources': [
160 'tools_unittests.isolate',
161 ],
162 },
163 ],
164 }],
henrike@webrtc.orgacb00f52013-08-02 16:53:47 +0000165 ],
brykt@google.comd9b18e92012-11-27 13:44:07 +0000166 }], # include_tests
167 ], # conditions
wjia@webrtc.org0a7fc8d2013-01-18 17:13:47 +0000168}