blob: d4f2f193a536d408713798c2b33d356812d78fa6 [file] [log] [blame]
xians@google.comd3185fe2011-09-12 12:24:39 +00001# Copyright (c) 2011 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.
niklase@google.com470e71d2011-07-07 08:21:25 +00008
9{
niklase@google.com470e71d2011-07-07 08:21:25 +000010 'targets': [
11 {
12 'target_name': 'webrtc_utility',
13 'type': '<(library)',
14 'dependencies': [
xians@google.comd3185fe2011-09-12 12:24:39 +000015 'audio_coding_module',
16 '<(webrtc_root)/common_audio/common_audio.gyp:resampler',
17 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
niklase@google.com470e71d2011-07-07 08:21:25 +000018 ],
niklase@google.com470e71d2011-07-07 08:21:25 +000019 'include_dirs': [
20 '../interface',
21 '../../interface',
niklase@google.com470e71d2011-07-07 08:21:25 +000022 '../../media_file/interface',
niklase@google.com470e71d2011-07-07 08:21:25 +000023 ],
24 'direct_dependent_settings': {
25 'include_dirs': [
26 '../interface',
27 '../../interface',
28 '../../audio_coding/main/interface',
29 ],
30 },
31 'sources': [
niklas.enbom@webrtc.org0cb79cc2012-05-30 14:32:42 +000032 '../interface/audio_frame_operations.h',
niklase@google.com470e71d2011-07-07 08:21:25 +000033 '../interface/file_player.h',
34 '../interface/file_recorder.h',
35 '../interface/process_thread.h',
36 '../interface/rtp_dump.h',
andrew@webrtc.org459955f2012-05-29 22:13:14 +000037 'audio_frame_operations.cc',
niklase@google.com470e71d2011-07-07 08:21:25 +000038 'coder.cc',
39 'coder.h',
40 'file_player_impl.cc',
41 'file_player_impl.h',
42 'file_recorder_impl.cc',
43 'file_recorder_impl.h',
44 'process_thread_impl.cc',
45 'process_thread_impl.h',
46 'rtp_dump_impl.cc',
47 'rtp_dump_impl.h',
andrew@webrtc.org830099e2011-08-31 17:03:54 +000048 ],
49 'conditions': [
50 ['enable_video==1', {
51 # Adds support for video recording.
52 'defines': [
53 'WEBRTC_MODULE_UTILITY_VIDEO',
54 ],
55 'dependencies': [
xians@google.comd3185fe2011-09-12 12:24:39 +000056 'webrtc_video_coding',
andrew@webrtc.org830099e2011-08-31 17:03:54 +000057 ],
58 'include_dirs': [
59 '../../video_coding/main/interface',
andrew@webrtc.org830099e2011-08-31 17:03:54 +000060 ],
61 'sources': [
62 'frame_scaler.cc',
63 'video_coder.cc',
64 'video_frames_queue.cc',
65 ],
66 }],
niklase@google.com470e71d2011-07-07 08:21:25 +000067 ],
68 },
kjellander@webrtc.orgd492f722011-11-24 07:20:00 +000069 ], # targets
70 'conditions': [
mflodman@webrtc.org6af95942012-05-24 13:23:35 +000071 ['include_tests==1', {
kjellander@webrtc.orgd492f722011-11-24 07:20:00 +000072 'targets': [
73 {
74 'target_name': 'webrtc_utility_unittests',
75 'type': 'executable',
76 'dependencies': [
77 'webrtc_utility',
andrew@webrtc.org81cf5e42012-06-27 01:41:54 +000078 '<(DEPTH)/testing/gtest.gyp:gtest',
79 '<(webrtc_root)/test/test.gyp:test_support_main',
kjellander@webrtc.orgd492f722011-11-24 07:20:00 +000080 ],
81 'sources': [
andrew@webrtc.org459955f2012-05-29 22:13:14 +000082 'audio_frame_operations_unittest.cc',
kjellander@webrtc.orgd492f722011-11-24 07:20:00 +000083 ],
84 }, # webrtc_utility_unittests
85 ], # targets
mflodman@webrtc.org6af95942012-05-24 13:23:35 +000086 }], # include_tests
kjellander@webrtc.orgd492f722011-11-24 07:20:00 +000087 ], # conditions
niklase@google.com470e71d2011-07-07 08:21:25 +000088}
89
90# Local Variables:
91# tab-width:2
92# indent-tabs-mode:nil
93# End:
94# vim: set expandtab tabstop=2 shiftwidth=2: