Upstream version 6.35.121.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / modules / audio_coding / codecs / opus / opus.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   'targets': [
11     {
12       'target_name': 'webrtc_opus',
13       'type': 'static_library',
14       'conditions': [
15         ['build_with_mozilla==1', {
16           # Mozilla provides its own build of the opus library.
17           'include_dirs': [
18             '$(DIST)/include/opus',
19            ]
20         }, {
21           'dependencies': [
22             '<(DEPTH)/third_party/opus/opus.gyp:opus'
23           ],
24         }],
25       ],
26       'include_dirs': [
27         '<(webrtc_root)',
28       ],
29       'sources': [
30         'interface/opus_interface.h',
31         'opus_interface.c',
32       ],
33     },
34   ],
35   'conditions': [
36     ['include_tests==1', {
37       'targets': [
38         {
39           'target_name': 'webrtc_opus_fec_test',
40           'type': 'executable',
41           'dependencies': [
42             'webrtc_opus',
43             '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
44             '<(webrtc_root)/test/test.gyp:test_support_main',
45             '<(DEPTH)/testing/gtest.gyp:gtest',
46           ],
47           'include_dirs': [
48             '<(webrtc_root)',
49           ],
50           'sources': [
51             'opus_fec_test.cc',
52           ],
53         },
54       ],
55     }],
56   ],
57 }