blob: b537285ae269a00e20b5e128b52524a52139aeb2 [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': [
22 '<(DEPTH)/third_party/opus/opus.gyp:opus'
23 ],
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000024 }],
25 ],
pbos@webrtc.org57eb8582013-11-11 10:20:27 +000026 'include_dirs': [
27 '<(webrtc_root)',
28 ],
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000029 'sources': [
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +000030 'audio_encoder_opus.cc',
31 'interface/audio_encoder_opus.h',
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000032 'interface/opus_interface.h',
minyue@webrtc.org0040a6e2014-08-04 14:41:57 +000033 'opus_inst.h',
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000034 'opus_interface.c',
35 ],
36 },
andrew@webrtc.org4b977932012-11-21 20:16:53 +000037 ],
minyue@webrtc.org46509c82014-03-07 11:49:11 +000038 'conditions': [
39 ['include_tests==1', {
40 'targets': [
41 {
42 'target_name': 'webrtc_opus_fec_test',
43 'type': 'executable',
44 'dependencies': [
45 'webrtc_opus',
46 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
47 '<(webrtc_root)/test/test.gyp:test_support_main',
48 '<(DEPTH)/testing/gtest.gyp:gtest',
49 ],
50 'include_dirs': [
51 '<(webrtc_root)',
52 ],
53 'sources': [
54 'opus_fec_test.cc',
55 ],
56 },
57 ],
58 }],
59 ],
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000060}