blob: 48c7bdff294a113f2d8a2bf591861c822b6e8962 [file] [log] [blame]
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +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 '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': [
kjellander@webrtc.org2b69eab2015-02-09 10:01:17 +000022 '<(opus_dir)/opus.gyp:opus'
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000023 ],
minyue@webrtc.orgdb93b682015-03-03 09:28:26 +000024 'export_dependent_settings': [
25 '<(opus_dir)/opus.gyp:opus',
26 ],
27 'direct_dependent_settings': {
28 'include_dirs': [ # need by Neteq audio classifier.
29 '<(opus_dir)/src/src',
30 '<(opus_dir)/src/celt',
31 ],
32 },
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000033 }],
34 ],
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +000035 'dependencies': [
36 'audio_encoder_interface',
37 ],
pbos@webrtc.org57eb8582013-11-11 10:20:27 +000038 'include_dirs': [
39 '<(webrtc_root)',
40 ],
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000041 'sources': [
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +000042 'audio_encoder_opus.cc',
43 'interface/audio_encoder_opus.h',
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000044 'interface/opus_interface.h',
minyue@webrtc.org0040a6e2014-08-04 14:41:57 +000045 'opus_inst.h',
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000046 'opus_interface.c',
47 ],
48 },
andrew@webrtc.org4b977932012-11-21 20:16:53 +000049 ],
minyue@webrtc.org46509c82014-03-07 11:49:11 +000050 'conditions': [
51 ['include_tests==1', {
52 'targets': [
53 {
54 'target_name': 'webrtc_opus_fec_test',
55 'type': 'executable',
56 'dependencies': [
57 'webrtc_opus',
58 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
59 '<(webrtc_root)/test/test.gyp:test_support_main',
60 '<(DEPTH)/testing/gtest.gyp:gtest',
61 ],
62 'include_dirs': [
63 '<(webrtc_root)',
64 ],
65 'sources': [
66 'opus_fec_test.cc',
67 ],
68 },
69 ],
70 }],
71 ],
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000072}