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

Side by Side Diff: build/gyp_v8

Issue 10268010: Clean up Makefile, enable MIPS cross-compilation (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix nits Created 8 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 | Annotate | Revision Log
« no previous file with comments | « build/common.gypi ('k') | build/mipsu.gypi » ('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/python 1 #!/usr/bin/python
2 # 2 #
3 # Copyright 2012 the V8 project authors. All rights reserved. 3 # Copyright 2012 the V8 project authors. All rights reserved.
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 # Generate for the architectures supported on the given platform. 157 # Generate for the architectures supported on the given platform.
158 gyp_args = list(args) 158 gyp_args = list(args)
159 target_arch = None 159 target_arch = None
160 for p in gyp_args: 160 for p in gyp_args:
161 if p.find('-Dtarget_arch=') == 0: 161 if p.find('-Dtarget_arch=') == 0:
162 target_arch = p 162 target_arch = p
163 if target_arch is None: 163 if target_arch is None:
164 gyp_args.append('-Dtarget_arch=ia32') 164 gyp_args.append('-Dtarget_arch=ia32')
165 if utils.GuessOS() == 'linux': 165 if utils.GuessOS() == 'linux':
166 gyp_args.append('-S-ia32') 166 gyp_args.append('-S.ia32')
167 run_gyp(gyp_args) 167 run_gyp(gyp_args)
168 168
169 if utils.GuessOS() == 'linux': 169 if utils.GuessOS() == 'linux':
170 gyp_args = list(args) 170 gyp_args = list(args)
171 gyp_args.append('-Dtarget_arch=x64') 171 gyp_args.append('-Dtarget_arch=x64')
172 gyp_args.append('-S-x64') 172 gyp_args.append('-S.x64')
173 run_gyp(gyp_args) 173 run_gyp(gyp_args)
174 174
175 gyp_args = list(args) 175 gyp_args = list(args)
176 gyp_args.append('-I' + v8_root + '/build/armu.gypi') 176 gyp_args.append('-Dv8_target_arch=arm')
177 gyp_args.append('-S-armu') 177 gyp_args.append('-S.arm')
178 run_gyp(gyp_args) 178 run_gyp(gyp_args)
179 179
180 gyp_args = list(args) 180 gyp_args = list(args)
181 gyp_args.append('-I' + v8_root + '/build/mipsu.gypi') 181 gyp_args.append('-Dv8_target_arch=mips')
182 gyp_args.append('-S-mipsu') 182 gyp_args.append('-S.mips')
183 run_gyp(gyp_args) 183 run_gyp(gyp_args)
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | build/mipsu.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698