blob: 05da3e5e47b3528c51591fee0a84ff95f9af8cb2 [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 ],
pbos@webrtc.org57eb8582013-11-11 10:20:27 +000042 'include_dirs': [
43 '<(webrtc_root)',
44 ],
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000045 'sources': [
Karl Wiberg0b058792015-09-15 17:28:18 +020046 'audio_decoder_opus.cc',
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +000047 'audio_encoder_opus.cc',
Henrik Kjellander74640892015-10-29 11:31:02 +010048 'include/audio_decoder_opus.h',
49 'include/audio_encoder_opus.h',
50 'include/opus_interface.h',
minyue@webrtc.org0040a6e2014-08-04 14:41:57 +000051 'opus_inst.h',
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000052 'opus_interface.c',
53 ],
54 },
andrew@webrtc.org4b977932012-11-21 20:16:53 +000055 ],
minyue@webrtc.org46509c82014-03-07 11:49:11 +000056 'conditions': [
57 ['include_tests==1', {
58 'targets': [
59 {
60 'target_name': 'webrtc_opus_fec_test',
61 'type': 'executable',
62 'dependencies': [
63 'webrtc_opus',
64 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
65 '<(webrtc_root)/test/test.gyp:test_support_main',
66 '<(DEPTH)/testing/gtest.gyp:gtest',
67 ],
68 'include_dirs': [
69 '<(webrtc_root)',
70 ],
71 'sources': [
72 'opus_fec_test.cc',
73 ],
74 },
75 ],
76 }],
77 ],
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000078}