From 4d79bf164b1a6f9e81ce38a72c10ea266cbb89d1 Mon Sep 17 00:00:00 2001 From: "xians@google.com" Date: Fri, 5 Aug 2011 16:14:25 +0000 Subject: [PATCH] exclude the g722 test target from building with chromium. Review URL: http://webrtc-codereview.appspot.com/92011 git-svn-id: http://webrtc.googlecode.com/svn/trunk@311 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../codecs/G722/main/source/g722.gyp | 41 +++++++++++-------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/src/modules/audio_coding/codecs/G722/main/source/g722.gyp b/src/modules/audio_coding/codecs/G722/main/source/g722.gyp index fa6b95f006..1bafee26fe 100644 --- a/src/modules/audio_coding/codecs/G722/main/source/g722.gyp +++ b/src/modules/audio_coding/codecs/G722/main/source/g722.gyp @@ -29,24 +29,31 @@ 'g722_enc_dec.h', ], }, - { - 'target_name': 'G722Test', - 'type': 'executable', - 'dependencies': [ - 'G722', - ], - 'sources': [ - '../testG722/testG722.cpp', - ], - 'conditions': [ - ['OS=="linux"', { - 'cflags': [ - '-fexceptions', # enable exceptions + ], # targets + # Exclude the test target when building with chromium. + 'conditions': [ + ['build_with_chromium==0', { + 'targets': [ + { + 'target_name': 'G722Test', + 'type': 'executable', + 'dependencies': [ + 'G722', ], - }], - ], - }, - ], + 'sources': [ + '../testG722/testG722.cpp', + ], + 'conditions': [ + ['OS=="linux"', { + 'cflags': [ + '-fexceptions', # enable exceptions + ], + }], + ], + }, + ], # targets + }], # build_with_chromium + ], # conditions } # Local Variables: