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

Side by Side Diff: test/library/gyptest-shared-obj-install-path.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/library/gyptest-shared.py ('k') | test/library/gyptest-static.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) 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 .so files that are order only dependencies are specified by 8 Verifies that .so files that are order only dependencies are specified by
9 their install location rather than by their alias. 9 their install location rather than by their alias.
10 """ 10 """
11 11
12 # Python 2.5 needs this for the with statement. 12 # Python 2.5 needs this for the with statement.
13 from __future__ import with_statement 13 from __future__ import with_statement
14 14
15 import os 15 import os
16 import TestGyp 16 import TestGyp
17 17
18 test = TestGyp.TestGyp(formats=['make']) 18 test = TestGyp.TestGyp(formats=['make'])
19 19
20 test.run_gyp('shared_dependency.gyp', 20 test.run_gyp('shared_dependency.gyp',
21 chdir='src') 21 chdir='src')
22 test.relocate('src', 'relocate/src') 22 test.relocate('src', 'relocate/src')
23 23
24 test.build('shared_dependency.gyp', test.ALL, chdir='relocate/src') 24 test.build('shared_dependency.gyp', test.ALL, chdir='relocate/src')
25 25
26 if test.format=='android': 26 makefile_path = 'relocate/src/Makefile'
27 makefile_path = 'relocate/src/GypAndroid.mk'
28 else:
29 makefile_path = 'relocate/src/Makefile'
30 27
31 with open(makefile_path) as makefile: 28 with open(makefile_path) as makefile:
32 make_contents = makefile.read() 29 make_contents = makefile.read()
33 30
34 # If we remove the code to generate lib1, Make should still be able 31 # If we remove the code to generate lib1, Make should still be able
35 # to build lib2 since lib1.so already exists. 32 # to build lib2 since lib1.so already exists.
36 make_contents = make_contents.replace('include lib1.target.mk', '') 33 make_contents = make_contents.replace('include lib1.target.mk', '')
37 with open(makefile_path, 'w') as makefile: 34 with open(makefile_path, 'w') as makefile:
38 makefile.write(make_contents) 35 makefile.write(make_contents)
39 36
40 test.build('shared_dependency.gyp', test.ALL, chdir='relocate/src') 37 test.build('shared_dependency.gyp', test.ALL, chdir='relocate/src')
41 38
42 test.pass_test() 39 test.pass_test()
OLDNEW
« no previous file with comments | « test/library/gyptest-shared.py ('k') | test/library/gyptest-static.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698