gyptest-deployment-target.py 518 B

1234567891011121314151617181920212223
  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. Verifies that MACOSX_DEPLOYMENT_TARGET works.
  7. """
  8. import TestGyp
  9. import sys
  10. if sys.platform == 'darwin':
  11. test = TestGyp.TestGyp(formats=['make', 'ninja', 'xcode'])
  12. test.run_gyp('deployment-target.gyp', chdir='deployment-target')
  13. test.build('deployment-target.gyp', test.ALL, chdir='deployment-target')
  14. test.pass_test()