| OLD | NEW |
| 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 28 matching lines...) Expand all Loading... |
| 39 'variables': { | 39 'variables': { |
| 40 'conditions': [ | 40 'conditions': [ |
| 41 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or \ | 41 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or \ |
| 42 OS=="netbsd" or OS=="mac"', { | 42 OS=="netbsd" or OS=="mac"', { |
| 43 # This handles the Unix platforms we generally deal with. | 43 # This handles the Unix platforms we generally deal with. |
| 44 # Anything else gets passed through, which probably won't work | 44 # Anything else gets passed through, which probably won't work |
| 45 # very well; such hosts should pass an explicit target_arch | 45 # very well; such hosts should pass an explicit target_arch |
| 46 # to gyp. | 46 # to gyp. |
| 47 'host_arch%': | 47 'host_arch%': |
| 48 '<!(uname -m | sed -e "s/i.86/ia32/;\ | 48 '<!(uname -m | sed -e "s/i.86/ia32/;\ |
| 49 s/x86_64/x64/;s/amd64/x64/;s/arm.*/arm/;s/mips.*/mipsel/")', | 49 s/x86_64/x64/;\ |
| 50 s/amd64/x64/;\ |
| 51 s/aarch64/a64/;\ |
| 52 s/arm.*/arm/;\ |
| 53 s/mips.*/mipsel/")', |
| 50 }, { | 54 }, { |
| 51 # OS!="linux" and OS!="freebsd" and OS!="openbsd" and | 55 # OS!="linux" and OS!="freebsd" and OS!="openbsd" and |
| 52 # OS!="netbsd" and OS!="mac" | 56 # OS!="netbsd" and OS!="mac" |
| 53 'host_arch%': 'ia32', | 57 'host_arch%': 'ia32', |
| 54 }], | 58 }], |
| 55 ], | 59 ], |
| 56 }, | 60 }, |
| 57 'host_arch%': '<(host_arch)', | 61 'host_arch%': '<(host_arch)', |
| 58 'target_arch%': '<(host_arch)', | 62 'target_arch%': '<(host_arch)', |
| 59 }, | 63 }, |
| 60 'host_arch%': '<(host_arch)', | 64 'host_arch%': '<(host_arch)', |
| 61 'target_arch%': '<(target_arch)', | 65 'target_arch%': '<(target_arch)', |
| 62 'v8_target_arch%': '<(target_arch)', | 66 'v8_target_arch%': '<(target_arch)', |
| 63 }, | 67 }, |
| 64 'host_arch%': '<(host_arch)', | 68 'host_arch%': '<(host_arch)', |
| 65 'target_arch%': '<(target_arch)', | 69 'target_arch%': '<(target_arch)', |
| 66 'v8_target_arch%': '<(v8_target_arch)', | 70 'v8_target_arch%': '<(v8_target_arch)', |
| 67 'werror%': '-Werror', | 71 'werror%': '-Werror', |
| 68 'conditions': [ | 72 'conditions': [ |
| 69 ['(v8_target_arch=="arm" and host_arch!="arm") or \ | 73 ['(v8_target_arch=="arm" and host_arch!="arm") or \ |
| 74 (v8_target_arch=="a64" and host_arch!="a64") or \ |
| 70 (v8_target_arch=="mipsel" and host_arch!="mipsel") or \ | 75 (v8_target_arch=="mipsel" and host_arch!="mipsel") or \ |
| 71 (v8_target_arch=="x64" and host_arch!="x64") or \ | 76 (v8_target_arch=="x64" and host_arch!="x64") or \ |
| 72 (OS=="android")', { | 77 (OS=="android")', { |
| 73 'want_separate_host_toolset': 1, | 78 'want_separate_host_toolset': 1, |
| 74 }, { | 79 }, { |
| 75 'want_separate_host_toolset': 0, | 80 'want_separate_host_toolset': 0, |
| 76 }], | 81 }], |
| 77 ], | 82 ], |
| 78 # Default ARM variable settings. | 83 # Default ARM variable settings. |
| 79 'armv7%': 'default', | 84 'armv7%': 'default', |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 }, | 221 }, |
| 217 'target_conditions': [ | 222 'target_conditions': [ |
| 218 ['_type!="static_library"', { | 223 ['_type!="static_library"', { |
| 219 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 224 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
| 220 }], | 225 }], |
| 221 ], # target_conditions | 226 ], # target_conditions |
| 222 }, # target_defaults | 227 }, # target_defaults |
| 223 }], # OS=="mac" | 228 }], # OS=="mac" |
| 224 ], | 229 ], |
| 225 } | 230 } |
| OLD | NEW |