Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / modules / audio_coding / main / acm2 / audio_coding_module.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   'variables': {
11     'audio_coding_dependencies': [
12       'CNG',
13       'G711',
14       'G722',
15       'iLBC',
16       'iSAC',
17       'iSACFix',
18       'PCM16B',
19       '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
20       '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
21     ],
22     'audio_coding_defines': [],
23     'conditions': [
24       ['include_opus==1', {
25         'audio_coding_dependencies': ['webrtc_opus',],
26         'audio_coding_defines': ['WEBRTC_CODEC_OPUS',],
27       }],
28     ],
29   },
30   'targets': [
31     {
32       'target_name': 'audio_coding_module',
33       'type': 'static_library',
34       'defines': [
35         '<@(audio_coding_defines)',
36       ],
37       'dependencies': [
38         '<@(audio_coding_dependencies)',
39         'NetEq4',
40       ],
41       'include_dirs': [
42         '../interface',
43         '../../../interface',
44         '<(webrtc_root)',
45       ],
46       'direct_dependent_settings': {
47         'include_dirs': [
48           '../interface',
49           '../../../interface',
50           '<(webrtc_root)',
51         ],
52       },
53       'sources': [
54         '../interface/audio_coding_module.h',
55         '../interface/audio_coding_module_typedefs.h',
56         'acm_amr.cc',
57         'acm_amr.h',
58         'acm_amrwb.cc',
59         'acm_amrwb.h',
60         'acm_celt.cc',
61         'acm_celt.h',
62         'acm_cng.cc',
63         'acm_cng.h',
64         'acm_codec_database.cc',
65         'acm_codec_database.h',
66         'acm_common_defs.h',
67         'acm_dtmf_playout.cc',
68         'acm_dtmf_playout.h',
69         'acm_g722.cc',
70         'acm_g722.h',
71         'acm_g7221.cc',
72         'acm_g7221.h',
73         'acm_g7221c.cc',
74         'acm_g7221c.h',
75         'acm_g729.cc',
76         'acm_g729.h',
77         'acm_g7291.cc',
78         'acm_g7291.h',
79         'acm_generic_codec.cc',
80         'acm_generic_codec.h',
81         'acm_gsmfr.cc',
82         'acm_gsmfr.h',
83         'acm_ilbc.cc',
84         'acm_ilbc.h',
85         'acm_isac.cc',
86         'acm_isac.h',
87         'acm_isac_macros.h',
88         'acm_opus.cc',
89         'acm_opus.h',
90         'acm_speex.cc',
91         'acm_speex.h',
92         'acm_pcm16b.cc',
93         'acm_pcm16b.h',
94         'acm_pcma.cc',
95         'acm_pcma.h',
96         'acm_pcmu.cc',
97         'acm_pcmu.h',
98         'acm_red.cc',
99         'acm_red.h',
100         'acm_receiver.cc',
101         'acm_receiver.h',
102         'acm_resampler.cc',
103         'acm_resampler.h',
104         'audio_coding_module.cc',
105         'audio_coding_module_impl.cc',
106         'audio_coding_module_impl.h',
107         'call_statistics.cc',
108         'call_statistics.h',
109         'initial_delay_manager.cc',
110         'initial_delay_manager.h',
111         'nack.cc',
112         'nack.h',
113       ],
114     },
115   ],
116   'conditions': [
117     ['include_tests==1', {
118       'targets': [
119         {
120           'target_name': 'delay_test',
121           'type': 'executable',
122           'dependencies': [
123             'audio_coding_module',
124             '<(DEPTH)/testing/gtest.gyp:gtest',
125             '<(webrtc_root)/test/test.gyp:test_support',
126             '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
127             '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
128           ],
129           'sources': [
130              '../test/delay_test.cc',
131              '../test/Channel.cc',
132              '../test/PCMFile.cc',
133              '../test/utility.cc',
134            ],
135         }, # delay_test
136         {
137           'target_name': 'insert_packet_with_timing',
138           'type': 'executable',
139           'dependencies': [
140             'audio_coding_module',
141             '<(DEPTH)/testing/gtest.gyp:gtest',
142             '<(webrtc_root)/test/test.gyp:test_support',
143             '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
144             '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
145           ],
146           'sources': [
147              '../test/insert_packet_with_timing.cc',
148              '../test/Channel.cc',
149              '../test/PCMFile.cc',
150            ],
151         }, # delay_test
152       ],
153     }],
154   ],
155 }