media/webrtc/trunk/tools/gyp/test/compiler-override/compiler-global-settings.gyp.in

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 # Copyright (c) 2012 Google Inc. All rights reserved.
michael@0 2 # Use of this source code is governed by a BSD-style license that can be
michael@0 3 # found in the LICENSE file.
michael@0 4
michael@0 5 {
michael@0 6 # PYTHON and PWD are replaced by the test code before this
michael@0 7 # gyp file runs
michael@0 8 'make_global_settings': [
michael@0 9 ['CC', r'$PYTHON $PWD/my_cc.py FOO'],
michael@0 10 ['CXX', r'$PYTHON $PWD/my_cxx.py FOO'],
michael@0 11 ['CC.host', r'$PYTHON $PWD/my_cc.py BAR'],
michael@0 12 ['CXX.host', r'$PYTHON $PWD/my_cxx.py BAR'],
michael@0 13
michael@0 14 ['LD', r'$PYTHON $PWD/my_ld.py FOO_LINK'],
michael@0 15 ['LD.host', r'$PYTHON $PWD/my_ld.py BAR_LINK'],
michael@0 16 ['LINK', r'$PYTHON $PWD/my_ld.py FOO_LINK'],
michael@0 17 ['LINK.host', r'$PYTHON $PWD/my_ld.py BAR_LINK'],
michael@0 18 ],
michael@0 19
michael@0 20 # The above global settings should mean that
michael@0 21 # that these targets are built using the fake
michael@0 22 # toolchain above.
michael@0 23 'targets': [
michael@0 24 {
michael@0 25 'toolset': '$TOOLSET',
michael@0 26 'target_name': 'hello',
michael@0 27 'type': 'executable',
michael@0 28 'sources': [
michael@0 29 'test.c',
michael@0 30 'cxxtest.cc',
michael@0 31 ],
michael@0 32 },
michael@0 33 ],
michael@0 34 }

mercurial