blob: 36391d2656245bef30f899e7b7d6c2989d61859c [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',
minyue41b9c802016-10-06 07:13:54 -070041 'audio_network_adaptor',
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +000042 ],
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000043 'sources': [
Karl Wiberg0b058792015-09-15 17:28:18 +020044 'audio_decoder_opus.cc',
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +010045 'audio_decoder_opus.h',
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +000046 'audio_encoder_opus.cc',
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +010047 'audio_encoder_opus.h',
minyue@webrtc.org0040a6e2014-08-04 14:41:57 +000048 'opus_inst.h',
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000049 'opus_interface.c',
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +010050 'opus_interface.h',
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000051 ],
52 },
andrew@webrtc.org4b977932012-11-21 20:16:53 +000053 ],
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000054}