Files
platform-external-webrtc/webrtc/modules/audio_coding/codecs/opus/opus.gypi
leozwang@webrtc.org cfcadab8d4 Build opus_demo
BUG=1082
TEST=trybots

With this cl we can build opus_demo.
Review URL: https://webrtc-codereview.appspot.com/936029

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3144 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-11-21 18:13:46 +00:00

59 lines
1.6 KiB
Python

# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.
{
'targets': [
{
'target_name': 'webrtc_opus',
'type': 'static_library',
'conditions': [
['build_with_mozilla==1', {
# Mozilla provides its own build of the opus library.
'include_dirs': [
'$(DIST)/include/opus',
]
}, {
'dependencies': [
'<(DEPTH)/third_party/opus/opus.gyp:opus'
],
}],
],
'sources': [
'interface/opus_interface.h',
'opus_interface.c',
],
},
{
'conditions': [
['include_tests==1', {
'target_name': 'opus_demo',
'type': 'executable',
'dependencies': [
'<(DEPTH)/third_party/opus/opus.gyp:opus'
],
'conditions': [
['OS == "win"', {
'defines': [
'inline=__inline',
],
}],
],
'sources': [
'<(DEPTH)/third_party/opus/src/src/opus_demo.c',
],
'include_dirs': [
'<(DEPTH)/third_party/opus/src/celt',
'<(DEPTH)/third_party/opus/src/include',
'<(DEPTH)/third_party/opus/src/silk',
]
}],
],
},
],
}