OLD | NEW |
1 # Copyright 2011 the V8 project authors. All rights reserved. | 1 # Copyright 2011 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 24 matching lines...) Expand all Loading... |
35 'msvs_multi_core_compile%': '1', | 35 'msvs_multi_core_compile%': '1', |
36 'variables': { | 36 'variables': { |
37 'variables': { | 37 'variables': { |
38 'variables': { | 38 'variables': { |
39 'conditions': [ | 39 'conditions': [ |
40 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', { | 40 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
41 # This handles the Linux platforms we generally deal with. Anythin
g | 41 # This handles the Linux platforms we generally deal with. Anythin
g |
42 # else gets passed through, which probably won't work very well; s
uch | 42 # else gets passed through, which probably won't work very well; s
uch |
43 # hosts should pass an explicit target_arch to gyp. | 43 # hosts should pass an explicit target_arch to gyp. |
44 'host_arch%': | 44 'host_arch%': |
45 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s
/arm.*/arm/")', | 45 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s
/arm.*/arm/;s/mips.*/mips/")', |
46 }, { # OS!="linux" and OS!="freebsd" and OS!="openbsd" | 46 }, { # OS!="linux" and OS!="freebsd" and OS!="openbsd" |
47 'host_arch%': 'ia32', | 47 'host_arch%': 'ia32', |
48 }], | 48 }], |
49 ], | 49 ], |
50 }, | 50 }, |
51 'host_arch%': '<(host_arch)', | 51 'host_arch%': '<(host_arch)', |
52 'target_arch%': '<(host_arch)', | 52 'target_arch%': '<(host_arch)', |
53 }, | 53 }, |
54 'host_arch%': '<(host_arch)', | 54 'host_arch%': '<(host_arch)', |
55 'target_arch%': '<(target_arch)', | 55 'target_arch%': '<(target_arch)', |
56 'v8_target_arch%': '<(target_arch)', | 56 'v8_target_arch%': '<(target_arch)', |
57 }, | 57 }, |
58 'host_arch%': '<(host_arch)', | 58 'host_arch%': '<(host_arch)', |
59 'target_arch%': '<(target_arch)', | 59 'target_arch%': '<(target_arch)', |
60 'v8_target_arch%': '<(v8_target_arch)', | 60 'v8_target_arch%': '<(v8_target_arch)', |
61 'werror%': '-Werror', | 61 'werror%': '-Werror', |
62 'conditions': [ | 62 'conditions': [ |
63 ['(v8_target_arch=="arm" and host_arch!="arm") or \ | 63 ['(v8_target_arch=="arm" and host_arch!="arm") or \ |
| 64 (v8_target_arch=="mips" and host_arch!="mips") or \ |
64 (v8_target_arch=="x64" and host_arch!="x64")', { | 65 (v8_target_arch=="x64" and host_arch!="x64")', { |
65 'want_separate_host_toolset': 1, | 66 'want_separate_host_toolset': 1, |
66 }, { | 67 }, { |
67 'want_separate_host_toolset': 0, | 68 'want_separate_host_toolset': 0, |
68 }], | 69 }], |
69 ], | 70 ], |
70 }, | 71 }, |
71 'target_defaults': { | 72 'target_defaults': { |
72 'default_configuration': 'Debug', | 73 'default_configuration': 'Debug', |
73 'configurations': { | 74 'configurations': { |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 }, | 193 }, |
193 'target_conditions': [ | 194 'target_conditions': [ |
194 ['_type!="static_library"', { | 195 ['_type!="static_library"', { |
195 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 196 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
196 }], | 197 }], |
197 ], # target_conditions | 198 ], # target_conditions |
198 }, # target_defaults | 199 }, # target_defaults |
199 }], # OS=="mac" | 200 }], # OS=="mac" |
200 ], | 201 ], |
201 } | 202 } |
OLD | NEW |