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.*/mips/")', | 49 s/x86_64/x64/;s/amd64/x64/;s/arm.*/arm/;s/mips.*/mipsel/")', |
50 }, { | 50 }, { |
51 # OS!="linux" and OS!="freebsd" and OS!="openbsd" and | 51 # OS!="linux" and OS!="freebsd" and OS!="openbsd" and |
52 # OS!="netbsd" and OS!="mac" | 52 # OS!="netbsd" and OS!="mac" |
53 'host_arch%': 'ia32', | 53 'host_arch%': 'ia32', |
54 }], | 54 }], |
55 ], | 55 ], |
56 }, | 56 }, |
57 'host_arch%': '<(host_arch)', | 57 'host_arch%': '<(host_arch)', |
58 'target_arch%': '<(host_arch)', | 58 'target_arch%': '<(host_arch)', |
59 }, | 59 }, |
60 'host_arch%': '<(host_arch)', | 60 'host_arch%': '<(host_arch)', |
61 'target_arch%': '<(target_arch)', | 61 'target_arch%': '<(target_arch)', |
62 'v8_target_arch%': '<(target_arch)', | 62 'v8_target_arch%': '<(target_arch)', |
63 }, | 63 }, |
64 'host_arch%': '<(host_arch)', | 64 'host_arch%': '<(host_arch)', |
65 'target_arch%': '<(target_arch)', | 65 'target_arch%': '<(target_arch)', |
66 'v8_target_arch%': '<(v8_target_arch)', | 66 'v8_target_arch%': '<(v8_target_arch)', |
67 'werror%': '-Werror', | 67 'werror%': '-Werror', |
68 'conditions': [ | 68 'conditions': [ |
69 ['(v8_target_arch=="arm" and host_arch!="arm") or \ | 69 ['(v8_target_arch=="arm" and host_arch!="arm") or \ |
70 (v8_target_arch=="mips" and host_arch!="mips") or \ | 70 (v8_target_arch=="mipsel" and host_arch!="mipsel") or \ |
71 (v8_target_arch=="x64" and host_arch!="x64")', { | 71 (v8_target_arch=="x64" and host_arch!="x64")', { |
72 'want_separate_host_toolset': 1, | 72 'want_separate_host_toolset': 1, |
73 }, { | 73 }, { |
74 'want_separate_host_toolset': 0, | 74 'want_separate_host_toolset': 0, |
75 }], | 75 }], |
76 ], | 76 ], |
77 # Default ARM variable settings. | 77 # Default ARM variable settings. |
78 'armv7%': 1, | 78 'armv7%': 1, |
79 'arm_neon%': 0, | 79 'arm_neon%': 0, |
80 'arm_fpu%': 'vfpv3', | 80 'arm_fpu%': 'vfpv3', |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 }, | 210 }, |
211 'target_conditions': [ | 211 'target_conditions': [ |
212 ['_type!="static_library"', { | 212 ['_type!="static_library"', { |
213 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 213 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
214 }], | 214 }], |
215 ], # target_conditions | 215 ], # target_conditions |
216 }, # target_defaults | 216 }, # target_defaults |
217 }], # OS=="mac" | 217 }], # OS=="mac" |
218 ], | 218 ], |
219 } | 219 } |
OLD | NEW |