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': [ |
minyue@webrtc.org | 7c112f3 | 2015-03-17 14:04:56 +0000 | [diff] [blame] | 15 | ['build_opus==1', { |
tina.legrand@webrtc.org | a7d8387 | 2012-10-18 10:00:52 +0000 | [diff] [blame] | 16 | 'dependencies': [ |
kjellander@webrtc.org | 2b69eab | 2015-02-09 10:01:17 +0000 | [diff] [blame] | 17 | '<(opus_dir)/opus.gyp:opus' |
tina.legrand@webrtc.org | a7d8387 | 2012-10-18 10:00:52 +0000 | [diff] [blame] | 18 | ], |
minyue@webrtc.org | db93b68 | 2015-03-03 09:28:26 +0000 | [diff] [blame] | 19 | '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.org | 7c112f3 | 2015-03-17 14:04:56 +0000 | [diff] [blame] | 28 | }, { |
| 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.org | a7d8387 | 2012-10-18 10:00:52 +0000 | [diff] [blame] | 37 | }], |
| 38 | ], |
henrik.lundin@webrtc.org | c1c9291 | 2014-12-16 13:41:36 +0000 | [diff] [blame] | 39 | 'dependencies': [ |
| 40 | 'audio_encoder_interface', |
| 41 | ], |
pbos@webrtc.org | 57eb858 | 2013-11-11 10:20:27 +0000 | [diff] [blame] | 42 | 'include_dirs': [ |
| 43 | '<(webrtc_root)', |
| 44 | ], |
tina.legrand@webrtc.org | a7d8387 | 2012-10-18 10:00:52 +0000 | [diff] [blame] | 45 | 'sources': [ |
Karl Wiberg | 0b05879 | 2015-09-15 17:28:18 +0200 | [diff] [blame] | 46 | 'audio_decoder_opus.cc', |
kwiberg@webrtc.org | 663fdd0 | 2014-10-29 07:28:36 +0000 | [diff] [blame] | 47 | 'audio_encoder_opus.cc', |
Henrik Kjellander | 7464089 | 2015-10-29 11:31:02 +0100 | [diff] [blame] | 48 | 'include/audio_decoder_opus.h', |
| 49 | 'include/audio_encoder_opus.h', |
| 50 | 'include/opus_interface.h', |
minyue@webrtc.org | 0040a6e | 2014-08-04 14:41:57 +0000 | [diff] [blame] | 51 | 'opus_inst.h', |
tina.legrand@webrtc.org | a7d8387 | 2012-10-18 10:00:52 +0000 | [diff] [blame] | 52 | 'opus_interface.c', |
| 53 | ], |
| 54 | }, |
andrew@webrtc.org | 4b97793 | 2012-11-21 20:16:53 +0000 | [diff] [blame] | 55 | ], |
minyue@webrtc.org | 46509c8 | 2014-03-07 11:49:11 +0000 | [diff] [blame] | 56 | '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.org | a7d8387 | 2012-10-18 10:00:52 +0000 | [diff] [blame] | 78 | } |