diff --git a/all.gyp b/all.gyp index bd8ee13014..4830c5425f 100644 --- a/all.gyp +++ b/all.gyp @@ -9,6 +9,7 @@ { 'variables': { 'libjingle_root%': '<(DEPTH)', + 'include_tests%': 1, }, 'targets': [ { @@ -19,7 +20,6 @@ 'webrtc/webrtc.gyp:*', '<(libjingle_root)/talk/libjingle.gyp:*', '<(libjingle_root)/talk/libjingle_examples.gyp:*', - '<(libjingle_root)/talk/libjingle_tests.gyp:*', ], 'conditions': [ ['OS=="android"', { @@ -27,6 +27,11 @@ 'webrtc/webrtc_examples.gyp:*', ], }], + ['include_tests==1', { + 'dependencies': [ + '<(libjingle_root)/talk/libjingle_tests.gyp:*', + ], + }], ], }, ],