From e1cfd5f2527cc42e6bed53974c7ed195a852003d Mon Sep 17 00:00:00 2001 From: "xians@google.com" Date: Fri, 5 Aug 2011 16:14:02 +0000 Subject: [PATCH] exclude test target from chromium Review URL: http://webrtc-codereview.appspot.com/92012 git-svn-id: http://webrtc.googlecode.com/svn/trunk@310 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../codecs/G711/main/source/g711.gyp | 44 +++++++++++-------- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/src/modules/audio_coding/codecs/G711/main/source/g711.gyp b/src/modules/audio_coding/codecs/G711/main/source/g711.gyp index 470d07ecdf..008bd92327 100644 --- a/src/modules/audio_coding/codecs/G711/main/source/g711.gyp +++ b/src/modules/audio_coding/codecs/G711/main/source/g711.gyp @@ -29,25 +29,31 @@ 'g711.h', ], }, - - { - 'target_name': 'g711_test', - 'type': 'executable', - 'dependencies': [ - 'G711', - ], - 'sources': [ - '../testG711/testG711.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': 'g711_test', + 'type': 'executable', + 'dependencies': [ + 'G711', + ], + 'sources': [ + '../testG711/testG711.cpp', + ], + # 'conditions': [ + # ['OS=="linux"', { + # 'cflags': [ + # '-fexceptions', # enable exceptions + # ], + # }], + # ], + }, + ], # targets + }], # build_with_chromium + ], # conditions } # Local Variables: