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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 'variables': { | 44 'variables': { |
45 'variables': { | 45 'variables': { |
46 'variables': { | 46 'variables': { |
47 'conditions': [ | 47 'conditions': [ |
48 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or \ | 48 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or \ |
49 OS=="netbsd" or OS=="mac" or OS=="qnx"', { | 49 OS=="netbsd" or OS=="mac" or OS=="qnx"', { |
50 # This handles the Unix platforms we generally deal with. | 50 # This handles the Unix platforms we generally deal with. |
51 # Anything else gets passed through, which probably won't work | 51 # Anything else gets passed through, which probably won't work |
52 # very well; such hosts should pass an explicit target_arch | 52 # very well; such hosts should pass an explicit target_arch |
53 # to gyp. | 53 # to gyp. |
54 'host_arch%': '<!pymod_do_main(detect_v8_host_arch)', | 54 'host_arch%': |
| 55 '<!(uname -m | sed -e "s/i.86/ia32/;\ |
| 56 s/x86_64/x64/;\ |
| 57 s/amd64/x64/;\ |
| 58 s/arm.*/arm/;\ |
| 59 s/aarch64/arm64/;\ |
| 60 s/mips.*/mipsel/")', |
55 }, { | 61 }, { |
56 # OS!="linux" and OS!="freebsd" and OS!="openbsd" and | 62 # OS!="linux" and OS!="freebsd" and OS!="openbsd" and |
57 # OS!="netbsd" and OS!="mac" | 63 # OS!="netbsd" and OS!="mac" |
58 'host_arch%': 'ia32', | 64 'host_arch%': 'ia32', |
59 }], | 65 }], |
60 ], | 66 ], |
61 }, | 67 }, |
62 'host_arch%': '<(host_arch)', | 68 'host_arch%': '<(host_arch)', |
63 'target_arch%': '<(host_arch)', | 69 'target_arch%': '<(host_arch)', |
64 }, | 70 }, |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 ], | 357 ], |
352 'target_conditions': [ | 358 'target_conditions': [ |
353 ['_type!="static_library"', { | 359 ['_type!="static_library"', { |
354 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 360 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
355 }], | 361 }], |
356 ], # target_conditions | 362 ], # target_conditions |
357 }, # target_defaults | 363 }, # target_defaults |
358 }], # OS=="mac" | 364 }], # OS=="mac" |
359 ], | 365 ], |
360 } | 366 } |
OLD | NEW |