gyptest-link-enable-winrt.py 872 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/env python
  2. # Copyright (c) 2013 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. Make sure msvs_enable_winrt works correctly.
  7. """
  8. import TestGyp
  9. import os
  10. import sys
  11. import struct
  12. CHDIR = 'enable-winrt'
  13. print 'This test is not currently working on the bots: https://code.google.com/p/gyp/issues/detail?id=466'
  14. sys.exit(0)
  15. if (sys.platform == 'win32' and
  16. int(os.environ.get('GYP_MSVS_VERSION', 0)) >= 2013):
  17. test = TestGyp.TestGyp(formats=['msvs'])
  18. test.run_gyp('enable-winrt.gyp', chdir=CHDIR)
  19. test.build('enable-winrt.gyp', 'enable_winrt_dll', chdir=CHDIR)
  20. test.build('enable-winrt.gyp', 'enable_winrt_missing_dll', chdir=CHDIR,
  21. status=1)
  22. test.build('enable-winrt.gyp', 'enable_winrt_winphone_dll', chdir=CHDIR)
  23. test.pass_test()