webrtc/all.gyp
andrew@webrtc.org 26eaf7c7f7 Add a check to all.gyp to respect the include_tests variable.
When include_tests==0, tests should be excluded from the build. This
ensures libjingle_tests.gyp is excluded appropriately.

BUG=b/15673188
R=tnakamura@webrtc.org, wu@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/16729005

git-svn-id: http://webrtc.googlecode.com/svn/trunk@6469 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-06-17 16:10:20 +00:00

39 lines
1.1 KiB
Python

# Copyright (c) 2013 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.
{
'variables': {
'libjingle_root%': '<(DEPTH)',
'include_tests%': 1,
},
'targets': [
{
'target_name': 'All',
'type': 'none',
'dependencies': [
'third_party/openmax_dl/dl/dl.gyp:*',
'webrtc/webrtc.gyp:*',
'<(libjingle_root)/talk/libjingle.gyp:*',
'<(libjingle_root)/talk/libjingle_examples.gyp:*',
],
'conditions': [
['OS=="android"', {
'dependencies': [
'webrtc/webrtc_examples.gyp:*',
],
}],
['include_tests==1', {
'dependencies': [
'<(libjingle_root)/talk/libjingle_tests.gyp:*',
],
}],
],
},
],
}