blob: d7454d632de7a18e56fc9fab9e3907091ca7cc51 [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': [
minyue@webrtc.org7c112f32015-03-17 14:04:56 +000015 ['build_opus==1', {
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000016 'dependencies': [
kjellander@webrtc.org2b69eab2015-02-09 10:01:17 +000017 '<(opus_dir)/opus.gyp:opus'
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000018 ],
minyue@webrtc.orgdb93b682015-03-03 09:28:26 +000019 'export_dependent_settings': [
20 '<(opus_dir)/opus.gyp:opus',
21 ],
22 'direct_dependent_settings': {
23 'include_dirs': [ # need by Neteq audio classifier.
24 '<(opus_dir)/src/src',
25 '<(opus_dir)/src/celt',
26 ],
27 },
minyue@webrtc.org7c112f32015-03-17 14:04:56 +000028 }, {
29 'conditions': [
30 ['build_with_mozilla==1', {
31 # Mozilla provides its own build of the opus library.
32 'include_dirs': [
33 '$(DIST)/include/opus',
34 ]
35 }],
36 ],
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000037 }],
38 ],
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +000039 'dependencies': [
40 'audio_encoder_interface',
41 ],
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000042 'sources': [
Karl Wiberg0b058792015-09-15 17:28:18 +020043 'audio_decoder_opus.cc',
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +010044 'audio_decoder_opus.h',
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +000045 'audio_encoder_opus.cc',
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +010046 'audio_encoder_opus.h',
minyue@webrtc.org0040a6e2014-08-04 14:41:57 +000047 'opus_inst.h',
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000048 'opus_interface.c',
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +010049 'opus_interface.h',
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000050 ],
51 },
andrew@webrtc.org4b977932012-11-21 20:16:53 +000052 ],
minyue@webrtc.org46509c82014-03-07 11:49:11 +000053 'conditions': [
54 ['include_tests==1', {
55 'targets': [
56 {
57 'target_name': 'webrtc_opus_fec_test',
58 'type': 'executable',
59 'dependencies': [
60 'webrtc_opus',
61 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
62 '<(webrtc_root)/test/test.gyp:test_support_main',
63 '<(DEPTH)/testing/gtest.gyp:gtest',
64 ],
minyue@webrtc.org46509c82014-03-07 11:49:11 +000065 'sources': [
66 'opus_fec_test.cc',
67 ],
68 },
69 ],
70 }],
71 ],
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000072}