Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: test/ios/gyptest-per-config-settings.py

Issue 25355002: ninja/mac: Create -iphoneos device builds for iOS ninja generator. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Rebaase Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # Copyright (c) 2012 Google Inc. All rights reserved. 3 # Copyright (c) 2012 Google Inc. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """ 7 """
8 Verifies that device and simulator bundles are built correctly. 8 Verifies that device and simulator bundles are built correctly.
9 """ 9 """
10 10
(...skipping 11 matching lines...) Expand all
22 test.fail_test() 22 test.fail_test()
23 23
24 24
25 if sys.platform == 'darwin': 25 if sys.platform == 'darwin':
26 # TODO(justincohen): Enable this in xcode too once ninja can codesign and bots 26 # TODO(justincohen): Enable this in xcode too once ninja can codesign and bots
27 # are configured with signing certs. 27 # are configured with signing certs.
28 test = TestGyp.TestGyp(formats=['ninja']) 28 test = TestGyp.TestGyp(formats=['ninja'])
29 29
30 test.run_gyp('test-device.gyp', chdir='app-bundle') 30 test.run_gyp('test-device.gyp', chdir='app-bundle')
31 31
32 for configuration in ['Debug-iphoneos', 'Debug-iphonesimulator']: 32 for configuration in ['Default-iphoneos', 'Default']:
33 test.set_configuration(configuration) 33 test.set_configuration(configuration)
34 test.build('test-device.gyp', test.ALL, chdir='app-bundle') 34 test.build('test-device.gyp', test.ALL, chdir='app-bundle')
35 result_file = test.built_file_path('Test App Gyp.bundle/Test App Gyp', 35 result_file = test.built_file_path('Test App Gyp.bundle/Test App Gyp',
36 chdir='app-bundle') 36 chdir='app-bundle')
37 test.must_exist(result_file) 37 test.must_exist(result_file)
38 if configuration == 'Debug-iphoneos': 38 if configuration == 'Default-iphoneos':
39 CheckFileType(result_file, 'armv7') 39 CheckFileType(result_file, 'armv7')
40 else: 40 else:
41 CheckFileType(result_file, 'i386') 41 CheckFileType(result_file, 'i386')
42 42
43 test.pass_test() 43 test.pass_test()
OLDNEW
« pylib/gyp/generator/ninja.py ('K') | « test/ios/app-bundle/test-device.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698