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 19 matching lines...) Expand all Loading... |
30 { | 30 { |
31 'variables': { | 31 'variables': { |
32 'library%': 'static_library', | 32 'library%': 'static_library', |
33 'component%': 'static_library', | 33 'component%': 'static_library', |
34 'visibility%': 'hidden', | 34 'visibility%': 'hidden', |
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" or OS=="netbsd"', { | 40 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or \ |
41 # This handles the Linux platforms we generally deal with. | 41 OS=="netbsd" or OS=="mac"', { |
| 42 # This handles the Unix platforms we generally deal with. |
42 # Anything else gets passed through, which probably won't work | 43 # Anything else gets passed through, which probably won't work |
43 # very well; such hosts should pass an explicit target_arch | 44 # very well; such hosts should pass an explicit target_arch |
44 # to gyp. | 45 # to gyp. |
45 'host_arch%': | 46 'host_arch%': |
46 '<!(uname -m | sed -e "s/i.86/ia32/;\ | 47 '<!(uname -m | sed -e "s/i.86/ia32/;\ |
47 s/x86_64/x64/;s/amd64/x64/;s/arm.*/arm/;s/mips.*/mips/")', | 48 s/x86_64/x64/;s/amd64/x64/;s/arm.*/arm/;s/mips.*/mips/")', |
48 }, { | 49 }, { |
49 # OS!="linux" and OS!="freebsd" and OS!="openbsd" and OS!="netbsd" | 50 # OS!="linux" and OS!="freebsd" and OS!="openbsd" and |
| 51 # OS!="netbsd" and OS!="mac" |
50 'host_arch%': 'ia32', | 52 'host_arch%': 'ia32', |
51 }], | 53 }], |
52 ], | 54 ], |
53 }, | 55 }, |
54 'host_arch%': '<(host_arch)', | 56 'host_arch%': '<(host_arch)', |
55 'target_arch%': '<(host_arch)', | 57 'target_arch%': '<(host_arch)', |
56 }, | 58 }, |
57 'host_arch%': '<(host_arch)', | 59 'host_arch%': '<(host_arch)', |
58 'target_arch%': '<(target_arch)', | 60 'target_arch%': '<(target_arch)', |
59 'v8_target_arch%': '<(target_arch)', | 61 'v8_target_arch%': '<(target_arch)', |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 }, | 208 }, |
207 'target_conditions': [ | 209 'target_conditions': [ |
208 ['_type!="static_library"', { | 210 ['_type!="static_library"', { |
209 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 211 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
210 }], | 212 }], |
211 ], # target_conditions | 213 ], # target_conditions |
212 }, # target_defaults | 214 }, # target_defaults |
213 }], # OS=="mac" | 215 }], # OS=="mac" |
214 ], | 216 ], |
215 } | 217 } |
OLD | NEW |