From cfcadab8d4ff7347181195c97120cbfa19c41e83 Mon Sep 17 00:00:00 2001 From: "leozwang@webrtc.org" Date: Wed, 21 Nov 2012 18:13:46 +0000 Subject: [PATCH] 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 --- .../audio_coding/codecs/opus/opus.gypi | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/webrtc/modules/audio_coding/codecs/opus/opus.gypi b/webrtc/modules/audio_coding/codecs/opus/opus.gypi index b60cee549..50709692f 100644 --- a/webrtc/modules/audio_coding/codecs/opus/opus.gypi +++ b/webrtc/modules/audio_coding/codecs/opus/opus.gypi @@ -28,5 +28,31 @@ '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', + ] + }], + ], + }, ], }