blob: 04ebd5e1b1df32dd074a59e7dbefa47ee77e1c03 [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 ],
20 'include_dirs': [
21 'frame_analyzer',
22 ],
23 'direct_dependent_settings': {
24 'include_dirs': [
25 'frame_analyzer',
26 ],
27 },
28 'export_dependent_settings': [
29 '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',
30 ],
31 'sources': [
32 'frame_analyzer/video_quality_analysis.h',
33 'frame_analyzer/video_quality_analysis.cc',
34 ],
35 }, # video_quality_analysis
36 {
37 'target_name': 'frame_analyzer',
38 'type': 'executable',
39 'dependencies': [
phoglund@webrtc.orgde93f2c2013-05-17 11:52:08 +000040 '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000041 'video_quality_analysis',
42 ],
43 'sources': [
44 'frame_analyzer/frame_analyzer.cc',
45 ],
46 }, # frame_analyzer
47 {
48 'target_name': 'psnr_ssim_analyzer',
49 'type': 'executable',
50 'dependencies': [
phoglund@webrtc.orgde93f2c2013-05-17 11:52:08 +000051 '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000052 'video_quality_analysis',
53 ],
54 'sources': [
55 'psnr_ssim_analyzer/psnr_ssim_analyzer.cc',
56 ],
57 }, # psnr_ssim_analyzer
58 {
59 'target_name': 'rgba_to_i420_converter',
60 'type': 'executable',
61 'dependencies': [
phoglund@webrtc.orgde93f2c2013-05-17 11:52:08 +000062 '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000063 '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',
64 ],
65 'sources': [
66 'converter/converter.h',
67 'converter/converter.cc',
68 'converter/rgba_to_i420_converter.cc',
69 ],
70 }, # rgba_to_i420_converter
brykt@google.comd9b18e92012-11-27 13:44:07 +000071 {
brykt@google.comf8b1da22012-12-20 11:42:45 +000072 'target_name': 'frame_editing_lib',
wjia@webrtc.org0a7fc8d2013-01-18 17:13:47 +000073 'type': 'static_library',
brykt@google.comd9b18e92012-11-27 13:44:07 +000074 'dependencies': [
andrew@webrtc.orgad2a55a2012-11-30 02:28:27 +000075 '<(webrtc_root)/common_video/common_video.gyp:common_video',
brykt@google.comd9b18e92012-11-27 13:44:07 +000076 ],
77 'sources': [
brykt@google.comf8b1da22012-12-20 11:42:45 +000078 'frame_editing/frame_editing_lib.cc',
79 'frame_editing/frame_editing_lib.h',
brykt@google.comd9b18e92012-11-27 13:44:07 +000080 ],
kjellander@webrtc.org1e7f77a2013-02-04 10:07:17 +000081 # Disable warnings to enable Win64 build, issue 1323.
82 'msvs_disabled_warnings': [
83 4267, # size_t to int truncation.
84 ],
brykt@google.comf8b1da22012-12-20 11:42:45 +000085 }, # frame_editing_lib
brykt@google.comd9b18e92012-11-27 13:44:07 +000086 {
brykt@google.comf8b1da22012-12-20 11:42:45 +000087 'target_name': 'frame_editor',
brykt@google.comd9b18e92012-11-27 13:44:07 +000088 'type': 'executable',
89 'dependencies': [
phoglund@webrtc.orgde93f2c2013-05-17 11:52:08 +000090 '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
brykt@google.comf8b1da22012-12-20 11:42:45 +000091 'frame_editing_lib',
brykt@google.comd9b18e92012-11-27 13:44:07 +000092 ],
93 'sources': [
brykt@google.comf8b1da22012-12-20 11:42:45 +000094 'frame_editing/frame_editing.cc',
brykt@google.comd9b18e92012-11-27 13:44:07 +000095 ],
brykt@google.comf8b1da22012-12-20 11:42:45 +000096 }, # frame_editing
phoglund@webrtc.orgde93f2c2013-05-17 11:52:08 +000097 {
98 'target_name': 'force_mic_volume_max',
99 'type': 'executable',
100 'dependencies': [
andrew@webrtc.org5221d1c2013-05-29 00:38:02 +0000101 '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
phoglund@webrtc.orgde93f2c2013-05-17 11:52:08 +0000102 ],
103 'sources': [
104 'force_mic_volume_max/force_mic_volume_max.cc',
105 ],
106 }, # force_mic_volume_max
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +0000107 ],
brykt@google.comd9b18e92012-11-27 13:44:07 +0000108 'conditions': [
109 ['include_tests==1', {
110 'targets' : [
111 {
112 'target_name': 'tools_unittests',
henrike@webrtc.orgacb00f52013-08-02 16:53:47 +0000113 'type': '<(gtest_target_type)',
brykt@google.comd9b18e92012-11-27 13:44:07 +0000114 'dependencies': [
brykt@google.comf8b1da22012-12-20 11:42:45 +0000115 'frame_editing_lib',
phoglund@webrtc.orgde93f2c2013-05-17 11:52:08 +0000116 '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
brykt@google.comd9b18e92012-11-27 13:44:07 +0000117 '<(webrtc_root)/test/test.gyp:test_support_main',
118 '<(DEPTH)/testing/gtest.gyp:gtest',
119 ],
120 'sources': [
kjellander@webrtc.orgf6a2efa2013-01-26 16:36:40 +0000121 'simple_command_line_parser_unittest.cc',
brykt@google.comf8b1da22012-12-20 11:42:45 +0000122 'frame_editing/frame_editing_unittest.cc',
brykt@google.comd9b18e92012-11-27 13:44:07 +0000123 ],
kjellander@webrtc.org1e7f77a2013-02-04 10:07:17 +0000124 # Disable warnings to enable Win64 build, issue 1323.
125 'msvs_disabled_warnings': [
126 4267, # size_t to int truncation.
127 ],
henrike@webrtc.orgacb00f52013-08-02 16:53:47 +0000128 'conditions': [
129 # TODO(henrike): remove build_with_chromium==1 when the bots are
130 # using Chromium's buildbots.
131 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
132 'dependencies': [
133 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
134 ],
135 }],
136 ],
brykt@google.comd9b18e92012-11-27 13:44:07 +0000137 }, # tools_unittests
138 ], # targets
henrike@webrtc.orgacb00f52013-08-02 16:53:47 +0000139 # TODO(henrike): remove build_with_chromium==1 when the bots are using
140 # Chromium's buildbots.
141 'conditions': [
142 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
143 'targets': [
144 {
145 'target_name': 'tools_unittests_apk_target',
146 'type': 'none',
147 'dependencies': [
148 '<(apk_tests_path):tools_unittests_apk',
149 ],
150 },
151 ],
152 }],
kjellander@webrtc.org3540c822013-08-22 07:57:00 +0000153 ['test_isolation_mode != "noop"', {
154 'targets': [
155 {
156 'target_name': 'tools_unittests_run',
157 'type': 'none',
158 'dependencies': [
159 '<(import_isolate_path):import_isolate_gypi',
160 'tools_unittests',
161 ],
162 'includes': [
163 'tools_unittests.isolate',
164 ],
165 'sources': [
166 'tools_unittests.isolate',
167 ],
168 },
169 ],
170 }],
henrike@webrtc.orgacb00f52013-08-02 16:53:47 +0000171 ],
brykt@google.comd9b18e92012-11-27 13:44:07 +0000172 }], # include_tests
173 ], # conditions
wjia@webrtc.org0a7fc8d2013-01-18 17:13:47 +0000174}