gyptest-libraries.py 715 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env python
  2. # Copyright (c) 2012 Google Inc. All rights reserved.
  3. # Use of this source code is governed by a BSD-style license that can be
  4. # found in the LICENSE file.
  5. """
  6. Verifies libraries (in link_settings) are properly found.
  7. """
  8. import TestGyp
  9. import sys
  10. if sys.platform == 'darwin':
  11. test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'])
  12. # The xcode-ninja generator handles gypfiles which are not at the
  13. # project root incorrectly.
  14. # cf. https://code.google.com/p/gyp/issues/detail?id=460
  15. if test.format == 'xcode-ninja':
  16. test.skip_test()
  17. test.run_gyp('subdir/test.gyp', chdir='libraries')
  18. test.build('subdir/test.gyp', test.ALL, chdir='libraries')
  19. test.pass_test()