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

Side by Side Diff: test/prune_targets/gyptest-prune-targets.py

Issue 1131213003: Remove the Android generator. (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « test/product/gyptest-product.py ('k') | test/rules-dirname/gyptest-dirname.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # Copyright (c) 2013 Google Inc. All rights reserved. 3 # Copyright (c) 2013 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 --root-target removes the unnecessary targets. 8 Verifies --root-target removes the unnecessary targets.
9 """ 9 """
10 10
11 import TestGyp 11 import TestGyp
12 12
13 test = TestGyp.TestGyp() 13 test = TestGyp.TestGyp()
14 # The xcode-ninja generator has its own logic for which targets to include 14 # The xcode-ninja generator has its own logic for which targets to include
15 if test.format == 'xcode-ninja': 15 if test.format == 'xcode-ninja':
16 test.skip_test() 16 test.skip_test()
17 17
18 build_error_code = { 18 build_error_code = {
19 'android': 2,
20 'cmake': 1, 19 'cmake': 1,
21 'make': 2, 20 'make': 2,
22 'msvs': 1, 21 'msvs': 1,
23 'ninja': 1, 22 'ninja': 1,
24 'xcode': 65, 23 'xcode': 65,
25 }[test.format] 24 }[test.format]
26 25
27 # By default, everything will be included. 26 # By default, everything will be included.
28 test.run_gyp('test1.gyp') 27 test.run_gyp('test1.gyp')
29 test.build('test2.gyp', 'lib1') 28 test.build('test2.gyp', 'lib1')
(...skipping 28 matching lines...) Expand all
58 test.run_gyp('test1.gyp', '--root-target=program1', '--root-target=program2') 57 test.run_gyp('test1.gyp', '--root-target=program1', '--root-target=program2')
59 test.build('test2.gyp', 'lib1') 58 test.build('test2.gyp', 'lib1')
60 test.build('test2.gyp', 'lib2') 59 test.build('test2.gyp', 'lib2')
61 test.build('test2.gyp', 'lib3', status=build_error_code, stderr=None) 60 test.build('test2.gyp', 'lib3', status=build_error_code, stderr=None)
62 test.build('test2.gyp', 'lib_indirect') 61 test.build('test2.gyp', 'lib_indirect')
63 test.build('test1.gyp', 'program1') 62 test.build('test1.gyp', 'program1')
64 test.build('test1.gyp', 'program2') 63 test.build('test1.gyp', 'program2')
65 test.build('test1.gyp', 'program3', status=build_error_code, stderr=None) 64 test.build('test1.gyp', 'program3', status=build_error_code, stderr=None)
66 65
67 test.pass_test() 66 test.pass_test()
OLDNEW
« no previous file with comments | « test/product/gyptest-product.py ('k') | test/rules-dirname/gyptest-dirname.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698