1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/webrtc/trunk/tools/gyp/test/generator-output/gyptest-mac-bundle.py Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +# Copyright (c) 2012 Google Inc. All rights reserved. 1.7 +# Use of this source code is governed by a BSD-style license that can be 1.8 +# found in the LICENSE file. 1.9 + 1.10 +""" 1.11 +Verifies mac bundles work with --generator-output. 1.12 +""" 1.13 + 1.14 +import TestGyp 1.15 + 1.16 +import sys 1.17 + 1.18 +if sys.platform == 'darwin': 1.19 + # Ninja doesn't support --generator-output. 1.20 + test = TestGyp.TestGyp(formats=['!ninja']) 1.21 + 1.22 + MAC_BUNDLE_DIR = 'mac-bundle' 1.23 + GYPFILES_DIR = 'gypfiles' 1.24 + test.writable(test.workpath(MAC_BUNDLE_DIR), False) 1.25 + test.run_gyp('test.gyp', 1.26 + '--generator-output=' + test.workpath(GYPFILES_DIR), 1.27 + chdir=MAC_BUNDLE_DIR) 1.28 + test.writable(test.workpath(MAC_BUNDLE_DIR), True) 1.29 + 1.30 + test.build('test.gyp', test.ALL, chdir=GYPFILES_DIR) 1.31 + 1.32 + test.pass_test()