tina.legrand@webrtc.org | a7d8387 | 2012-10-18 10:00:52 +0000 | [diff] [blame] | 1 | # 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.org | 2b69eab | 2015-02-09 10:01:17 +0000 | [diff] [blame] | 22 | '<(opus_dir)/opus.gyp:opus' |
tina.legrand@webrtc.org | a7d8387 | 2012-10-18 10:00:52 +0000 | [diff] [blame] | 23 | ], |
tina.legrand@webrtc.org | a7d8387 | 2012-10-18 10:00:52 +0000 | [diff] [blame] | 24 | }], |
| 25 | ], |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 26 | 'dependencies': [ |
| 27 | 'audio_encoder_interface', |
| 28 | ], |
pbos@webrtc.org | 57eb858 | 2013-11-11 10:20:27 +0000 | [diff] [blame] | 29 | 'include_dirs': [ |
| 30 | '<(webrtc_root)', |
| 31 | ], |
tina.legrand@webrtc.org | a7d8387 | 2012-10-18 10:00:52 +0000 | [diff] [blame] | 32 | 'sources': [ |
kwiberg@webrtc.org | 663fdd0 | 2014-10-29 07:28:36 +0000 | [diff] [blame] | 33 | 'audio_encoder_opus.cc', |
| 34 | 'interface/audio_encoder_opus.h', |
tina.legrand@webrtc.org | a7d8387 | 2012-10-18 10:00:52 +0000 | [diff] [blame] | 35 | 'interface/opus_interface.h', |
minyue@webrtc.org | 0040a6e | 2014-08-04 14:41:57 +0000 | [diff] [blame] | 36 | 'opus_inst.h', |
tina.legrand@webrtc.org | a7d8387 | 2012-10-18 10:00:52 +0000 | [diff] [blame] | 37 | 'opus_interface.c', |
| 38 | ], |
| 39 | }, |
andrew@webrtc.org | 4b97793 | 2012-11-21 20:16:53 +0000 | [diff] [blame] | 40 | ], |
minyue@webrtc.org | 46509c8 | 2014-03-07 11:49:11 +0000 | [diff] [blame] | 41 | 'conditions': [ |
| 42 | ['include_tests==1', { |
| 43 | 'targets': [ |
| 44 | { |
| 45 | 'target_name': 'webrtc_opus_fec_test', |
| 46 | 'type': 'executable', |
| 47 | 'dependencies': [ |
| 48 | 'webrtc_opus', |
| 49 | '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', |
| 50 | '<(webrtc_root)/test/test.gyp:test_support_main', |
| 51 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 52 | ], |
| 53 | 'include_dirs': [ |
| 54 | '<(webrtc_root)', |
| 55 | ], |
| 56 | 'sources': [ |
| 57 | 'opus_fec_test.cc', |
| 58 | ], |
| 59 | }, |
| 60 | ], |
| 61 | }], |
| 62 | ], |
tina.legrand@webrtc.org | a7d8387 | 2012-10-18 10:00:52 +0000 | [diff] [blame] | 63 | } |