Added gyp variable to include/exclude all tests.
BUG= TEST= Review URL: https://webrtc-codereview.appspot.com/597004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2292 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
ee646c37d4
commit
6af9594d71
@ -66,6 +66,9 @@
|
||||
# Disable the use of protocol buffers in production code.
|
||||
'enable_protobuf%': 0,
|
||||
|
||||
# Don't include tests for Chromium builds.
|
||||
'include_tests%': 0,
|
||||
|
||||
'webrtc_root%': '<(DEPTH)/third_party/webrtc',
|
||||
}, {
|
||||
# Settings for the standalone (not-in-Chromium) build.
|
||||
@ -80,6 +83,8 @@
|
||||
|
||||
'enable_protobuf%': 1,
|
||||
|
||||
'include_tests%': 1,
|
||||
|
||||
'webrtc_root%': '<(DEPTH)/src',
|
||||
|
||||
# TODO(andrew): For now, disable the Chrome plugins, which causes a
|
||||
|
@ -29,7 +29,7 @@
|
||||
},
|
||||
], # targets
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'targets' : [
|
||||
{
|
||||
'target_name': 'resampler_unittests',
|
||||
@ -44,7 +44,7 @@
|
||||
],
|
||||
}, # resampler_unittests
|
||||
], # targets
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
], # conditions
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@
|
||||
}, # spl
|
||||
], # targets
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'signal_processing_unittests',
|
||||
@ -74,7 +74,7 @@
|
||||
],
|
||||
}, # spl_unittests
|
||||
], # targets
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
], # conditions
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@
|
||||
},
|
||||
], # targets
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'targets' : [
|
||||
{
|
||||
'target_name': 'vad_unittests',
|
||||
@ -57,7 +57,7 @@
|
||||
],
|
||||
}, # vad_unittests
|
||||
], # targets
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
], # conditions
|
||||
}
|
||||
|
||||
|
@ -62,9 +62,8 @@
|
||||
],
|
||||
},
|
||||
], # targets
|
||||
# Exclude the test target when building with chromium.
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'jpeg_unittests',
|
||||
@ -79,7 +78,7 @@
|
||||
],
|
||||
},
|
||||
] # targets
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
], # conditions
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,7 @@
|
||||
},
|
||||
], # targets
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'libyuv_unittests',
|
||||
@ -46,10 +46,10 @@
|
||||
],
|
||||
'sources': [
|
||||
'libyuv_unittest.cc',
|
||||
'scaler_unittest.cc',
|
||||
],
|
||||
'scaler_unittest.cc',
|
||||
],
|
||||
},
|
||||
], # targets
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
], # conditions
|
||||
}
|
||||
|
@ -31,7 +31,7 @@
|
||||
},
|
||||
], # targets
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'cng_unittests',
|
||||
@ -46,7 +46,7 @@
|
||||
],
|
||||
}, # CNG_unittests
|
||||
], # targets
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
], # conditions
|
||||
}
|
||||
|
||||
|
@ -27,9 +27,8 @@
|
||||
],
|
||||
},
|
||||
], # targets
|
||||
# Exclude the test target when building with chromium.
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'g711_unittests',
|
||||
@ -54,7 +53,7 @@
|
||||
],
|
||||
},
|
||||
], # targets
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
], # conditions
|
||||
}
|
||||
|
||||
|
@ -27,9 +27,8 @@
|
||||
],
|
||||
},
|
||||
], # targets
|
||||
# Exclude the test target when building with chromium.
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'g722_unittests',
|
||||
@ -54,7 +53,7 @@
|
||||
],
|
||||
},
|
||||
], # targets
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
], # conditions
|
||||
}
|
||||
|
||||
|
@ -166,8 +166,8 @@
|
||||
}, # iLBC
|
||||
], # targets
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
'targets': [
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'iLBCtest',
|
||||
'type': 'executable',
|
||||
@ -179,7 +179,7 @@
|
||||
],
|
||||
}, # iLBCtest
|
||||
], # targets
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
], # conditions
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
},
|
||||
], # targets
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'pcm16b_unittests',
|
||||
@ -41,7 +41,7 @@
|
||||
],
|
||||
}, # PCM16B_unittests
|
||||
], # targets
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
], # conditions
|
||||
}
|
||||
|
||||
|
@ -93,9 +93,8 @@
|
||||
],
|
||||
},
|
||||
],
|
||||
# Exclude the test targets when building with chromium.
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'audio_coding_module_test',
|
||||
|
@ -84,9 +84,8 @@
|
||||
],
|
||||
},
|
||||
], # targets
|
||||
# Exclude the test target when building with chromium.
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'neteq_unittests',
|
||||
@ -295,6 +294,6 @@
|
||||
],
|
||||
},
|
||||
], # targets
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
], # conditions
|
||||
}
|
||||
|
@ -43,7 +43,7 @@
|
||||
},
|
||||
], # targets
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'audio_conference_mixer_unittests',
|
||||
@ -59,7 +59,7 @@
|
||||
],
|
||||
}, # audio_conference_mixer_unittests
|
||||
], # targets
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
], # conditions
|
||||
}
|
||||
|
||||
|
@ -166,9 +166,8 @@
|
||||
], # conditions
|
||||
},
|
||||
],
|
||||
# Exclude the test targets when building with chromium.
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'audio_device_test_api',
|
||||
|
@ -41,7 +41,7 @@
|
||||
},
|
||||
], # targets
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'media_file_unittests',
|
||||
@ -56,7 +56,7 @@
|
||||
],
|
||||
}, # media_file_unittests
|
||||
], # targets
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
], # conditions
|
||||
}
|
||||
|
||||
|
@ -40,9 +40,8 @@
|
||||
'rtp_rtcp/source/rtp_rtcp.gypi',
|
||||
],
|
||||
|
||||
# Test targets, excluded when building with Chromium.
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'includes': [
|
||||
'audio_coding/codecs/iSAC/isac_test.gypi',
|
||||
'audio_coding/codecs/iSAC/isacfix_test.gypi',
|
||||
@ -57,6 +56,6 @@
|
||||
'video_coding/codecs/tools/video_codecs_tools.gypi',
|
||||
'video_processing/main/test/vpm_tests.gypi',
|
||||
], # includes
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
], # conditions
|
||||
}
|
||||
|
@ -81,7 +81,7 @@
|
||||
},
|
||||
], # targets
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'udp_transport_unittests',
|
||||
@ -99,7 +99,7 @@
|
||||
],
|
||||
}, # udp_transport_unittests
|
||||
], # targets
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
], # conditions
|
||||
}
|
||||
|
||||
|
@ -66,7 +66,7 @@
|
||||
},
|
||||
], # targets
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'webrtc_utility_unittests',
|
||||
@ -81,7 +81,7 @@
|
||||
],
|
||||
}, # webrtc_utility_unittests
|
||||
], # targets
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
], # conditions
|
||||
}
|
||||
|
||||
|
@ -131,11 +131,10 @@
|
||||
], # conditions
|
||||
},
|
||||
],
|
||||
# Exclude the test targets when building with chromium.
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
'targets': [
|
||||
{
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'video_capture_module_test',
|
||||
'type': 'executable',
|
||||
'dependencies': [
|
||||
@ -151,7 +150,7 @@
|
||||
'sources': [
|
||||
'../test/video_capture_unittest.cc',
|
||||
],
|
||||
'conditions': [
|
||||
'conditions': [
|
||||
# DEFINE PLATFORM SPECIFIC INCLUDE AND CFLAGS
|
||||
['OS=="mac" or OS=="linux"', {
|
||||
'cflags': [
|
||||
|
@ -7,9 +7,8 @@
|
||||
# be found in the AUTHORS file in the root of the source tree.
|
||||
|
||||
{
|
||||
# Exclude the test target when building with chromium.
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
'conditions': [
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'video_codecs_test_framework',
|
||||
@ -61,7 +60,7 @@
|
||||
],
|
||||
},
|
||||
], # targets
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
], # conditions
|
||||
}
|
||||
|
||||
|
@ -7,9 +7,8 @@
|
||||
# be found in the AUTHORS file in the root of the source tree.
|
||||
|
||||
{
|
||||
# Exclude the test target when building with chromium.
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
'conditions': [
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'test_framework',
|
||||
@ -60,7 +59,7 @@
|
||||
],
|
||||
},
|
||||
], # targets
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
], # conditions
|
||||
}
|
||||
|
||||
|
@ -7,9 +7,8 @@
|
||||
# be found in the AUTHORS file in the root of the source tree.
|
||||
|
||||
{
|
||||
# Exclude the test target when building with chromium.
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
'conditions': [
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'video_quality_measurement',
|
||||
@ -26,7 +25,7 @@
|
||||
],
|
||||
},
|
||||
], # targets
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
], # conditions
|
||||
}
|
||||
|
||||
|
@ -58,9 +58,8 @@
|
||||
],
|
||||
},
|
||||
], # targets
|
||||
# Exclude the test target when building with chromium.
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
'conditions': [
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'vp8_test',
|
||||
@ -111,7 +110,7 @@
|
||||
],
|
||||
},
|
||||
], # targets
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
],
|
||||
}
|
||||
|
||||
|
@ -165,7 +165,7 @@
|
||||
'WEBRTC_INCLUDE_INTERNAL_VIDEO_RENDER',
|
||||
],
|
||||
}],
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'video_render_module_test',
|
||||
@ -208,7 +208,7 @@
|
||||
] # conditions
|
||||
}, # video_render_module_test
|
||||
], # targets
|
||||
}], # build_with_chromium==0
|
||||
}], # include_tests==0
|
||||
], # conditions
|
||||
}
|
||||
|
||||
|
@ -172,7 +172,7 @@
|
||||
},
|
||||
],
|
||||
}],
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'system_wrappers_unittests',
|
||||
@ -205,7 +205,7 @@
|
||||
],
|
||||
},
|
||||
], # targets
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
], # conditions
|
||||
}
|
||||
|
||||
|
@ -12,9 +12,8 @@
|
||||
'./video_engine_core.gypi',
|
||||
],
|
||||
|
||||
# Test targets, excluded when building with Chromium.
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'includes': [
|
||||
'test/libvietest/libvietest.gypi',
|
||||
'test/auto_test/vie_auto_test.gypi',
|
||||
|
@ -131,7 +131,7 @@
|
||||
},
|
||||
], # targets
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'video_engine_core_unittests',
|
||||
@ -152,7 +152,7 @@
|
||||
],
|
||||
},
|
||||
], # targets
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
], # conditions
|
||||
}
|
||||
|
||||
|
@ -115,7 +115,7 @@
|
||||
},
|
||||
],
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'voice_engine_unittests',
|
||||
@ -146,7 +146,7 @@
|
||||
],
|
||||
},
|
||||
], # targets
|
||||
}], # build_with_chromium
|
||||
}], # include_tests
|
||||
], # conditions
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
# Test targets, excluded when building with Chromium.
|
||||
'conditions': [
|
||||
['build_with_chromium==0', {
|
||||
['include_tests==1', {
|
||||
'includes': [
|
||||
'main/test/voice_engine_tests.gypi',
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user