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': [ |
| 22 | '<(DEPTH)/third_party/opus/opus.gyp:opus' |
| 23 | ], |
tina.legrand@webrtc.org | a7d8387 | 2012-10-18 10:00:52 +0000 | [diff] [blame] | 24 | }], |
| 25 | ], |
tina.legrand@webrtc.org | a7d8387 | 2012-10-18 10:00:52 +0000 | [diff] [blame] | 26 | 'sources': [ |
| 27 | 'interface/opus_interface.h', |
| 28 | 'opus_interface.c', |
| 29 | ], |
| 30 | }, |
leozwang@webrtc.org | cfcadab | 2012-11-21 18:13:46 +0000 | [diff] [blame] | 31 | { |
| 32 | 'conditions': [ |
| 33 | ['include_tests==1', { |
| 34 | 'target_name': 'opus_demo', |
| 35 | 'type': 'executable', |
| 36 | 'dependencies': [ |
| 37 | '<(DEPTH)/third_party/opus/opus.gyp:opus' |
| 38 | ], |
| 39 | 'conditions': [ |
| 40 | ['OS == "win"', { |
| 41 | 'defines': [ |
| 42 | 'inline=__inline', |
| 43 | ], |
| 44 | }], |
| 45 | ], |
| 46 | 'sources': [ |
| 47 | '<(DEPTH)/third_party/opus/src/src/opus_demo.c', |
| 48 | ], |
| 49 | 'include_dirs': [ |
| 50 | '<(DEPTH)/third_party/opus/src/celt', |
| 51 | '<(DEPTH)/third_party/opus/src/include', |
| 52 | '<(DEPTH)/third_party/opus/src/silk', |
| 53 | ] |
| 54 | }], |
| 55 | ], |
| 56 | }, |
tina.legrand@webrtc.org | a7d8387 | 2012-10-18 10:00:52 +0000 | [diff] [blame] | 57 | ], |
| 58 | } |