compiler-global-settings.gyp.in 963 B

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