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

Side by Side Diff: build/common.gypi

Issue 10795045: Enable building V8 for Android on Mac (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 5 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 | « Makefile ('k') | tools/android-build.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 ['v8_target_arch=="ia32"', { 157 ['v8_target_arch=="ia32"', {
158 'defines': [ 158 'defines': [
159 'V8_TARGET_ARCH_IA32', 159 'V8_TARGET_ARCH_IA32',
160 ], 160 ],
161 }], # v8_target_arch=="ia32" 161 }], # v8_target_arch=="ia32"
162 ['v8_target_arch=="mipsel"', { 162 ['v8_target_arch=="mipsel"', {
163 'defines': [ 163 'defines': [
164 'V8_TARGET_ARCH_MIPS', 164 'V8_TARGET_ARCH_MIPS',
165 ], 165 ],
166 'variables': { 166 'variables': {
167 'mipscompiler': '<!($(echo ${CXX:-$(which g++)}) -v 2>&1 | grep -q "^T arget: mips" && echo "yes" || echo "no")', 167 'mipscompiler': '<!($(echo ${CXX:-$(which g++)}) -v 2>&1 | \
168 grep -q "^Target: mips" && echo "yes" || echo "no")',
168 }, 169 },
169 'conditions': [ 170 'conditions': [
170 ['mipscompiler=="yes"', { 171 ['mipscompiler=="yes"', {
171 'target_conditions': [ 172 'target_conditions': [
172 ['_toolset=="target"', { 173 ['_toolset=="target"', {
173 'cflags': ['-EL'], 174 'cflags': ['-EL'],
174 'ldflags': ['-EL'], 175 'ldflags': ['-EL'],
175 'conditions': [ 176 'conditions': [
176 [ 'v8_use_mips_abi_hardfloat=="true"', { 177 [ 'v8_use_mips_abi_hardfloat=="true"', {
177 'cflags': ['-mhard-float'], 178 'cflags': ['-mhard-float'],
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 }], 273 }],
273 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ 274 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
274 or OS=="netbsd" or OS=="mac" or OS=="android") and \ 275 or OS=="netbsd" or OS=="mac" or OS=="android") and \
275 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \ 276 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \
276 v8_target_arch=="mipsel")', { 277 v8_target_arch=="mipsel")', {
277 # Check whether the host compiler and target compiler support the 278 # Check whether the host compiler and target compiler support the
278 # '-m32' option and set it if so. 279 # '-m32' option and set it if so.
279 'target_conditions': [ 280 'target_conditions': [
280 ['_toolset=="host"', { 281 ['_toolset=="host"', {
281 'variables': { 282 'variables': {
282 'm32flag': '<!((echo | $(echo ${CXX_host:-$(which g++)}) -m32 -E - > /dev/null 2>&1) && echo -n "-m32" || true)', 283 'm32flag': '<!((echo | $(echo ${CXX_host:-$(which g++)}) -m32 \
284 -E - > /dev/null 2>&1) && echo "-m32" || true)',
283 }, 285 },
284 'cflags': [ '<(m32flag)' ], 286 'cflags': [ '<(m32flag)' ],
285 'ldflags': [ '<(m32flag)' ], 287 'ldflags': [ '<(m32flag)' ],
286 'xcode_settings': { 288 'xcode_settings': {
287 'ARCHS': [ 'i386' ], 289 'ARCHS': [ 'i386' ],
288 }, 290 },
289 }], 291 }],
290 ['_toolset=="target"', { 292 ['_toolset=="target"', {
291 'variables': { 293 'variables': {
292 'm32flag': '<!((echo | $(echo ${CXX_target:-${CXX:-$(which g++)}}) -m32 -E - > /dev/null 2>&1) && echo -n "-m32" || true)', 294 'm32flag': '<!((echo | \
295 $(echo ${CXX_target:-${CXX:-$(which g++)}}) -m32 -E - \
296 > /dev/null 2>&1) && echo "-m32" || true)',
293 }, 297 },
294 'cflags': [ '<(m32flag)' ], 298 'cflags': [ '<(m32flag)' ],
295 'ldflags': [ '<(m32flag)' ], 299 'ldflags': [ '<(m32flag)' ],
296 'xcode_settings': { 300 'xcode_settings': {
297 'ARCHS': [ 'i386' ], 301 'ARCHS': [ 'i386' ],
298 }, 302 },
299 }], 303 }],
300 ], 304 ],
301 }], 305 }],
302 ['OS=="freebsd" or OS=="openbsd"', { 306 ['OS=="freebsd" or OS=="openbsd"', {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 'OptimizeReferences': '2', 399 'OptimizeReferences': '2',
396 'EnableCOMDATFolding': '2', 400 'EnableCOMDATFolding': '2',
397 }, 401 },
398 }, 402 },
399 }], # OS=="win" 403 }], # OS=="win"
400 ], # conditions 404 ], # conditions
401 }, # Release 405 }, # Release
402 }, # configurations 406 }, # configurations
403 }, # target_defaults 407 }, # target_defaults
404 } 408 }
OLDNEW
« no previous file with comments | « Makefile ('k') | tools/android-build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698