1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/webrtc/trunk/tools/gyp/test/compiler-override/compiler-global-settings.gyp.in Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,34 @@ 1.4 +# Copyright (c) 2012 Google Inc. All rights reserved. 1.5 +# Use of this source code is governed by a BSD-style license that can be 1.6 +# found in the LICENSE file. 1.7 + 1.8 +{ 1.9 + # PYTHON and PWD are replaced by the test code before this 1.10 + # gyp file runs 1.11 + 'make_global_settings': [ 1.12 + ['CC', r'$PYTHON $PWD/my_cc.py FOO'], 1.13 + ['CXX', r'$PYTHON $PWD/my_cxx.py FOO'], 1.14 + ['CC.host', r'$PYTHON $PWD/my_cc.py BAR'], 1.15 + ['CXX.host', r'$PYTHON $PWD/my_cxx.py BAR'], 1.16 + 1.17 + ['LD', r'$PYTHON $PWD/my_ld.py FOO_LINK'], 1.18 + ['LD.host', r'$PYTHON $PWD/my_ld.py BAR_LINK'], 1.19 + ['LINK', r'$PYTHON $PWD/my_ld.py FOO_LINK'], 1.20 + ['LINK.host', r'$PYTHON $PWD/my_ld.py BAR_LINK'], 1.21 + ], 1.22 + 1.23 + # The above global settings should mean that 1.24 + # that these targets are built using the fake 1.25 + # toolchain above. 1.26 + 'targets': [ 1.27 + { 1.28 + 'toolset': '$TOOLSET', 1.29 + 'target_name': 'hello', 1.30 + 'type': 'executable', 1.31 + 'sources': [ 1.32 + 'test.c', 1.33 + 'cxxtest.cc', 1.34 + ], 1.35 + }, 1.36 + ], 1.37 +}