| 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%': | 54 'host_arch%': '<!pymod_do_main(detect_v8_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/")', | |
| 61 }, { | 55 }, { |
| 62 # OS!="linux" and OS!="freebsd" and OS!="openbsd" and | 56 # OS!="linux" and OS!="freebsd" and OS!="openbsd" and |
| 63 # OS!="netbsd" and OS!="mac" | 57 # OS!="netbsd" and OS!="mac" |
| 64 'host_arch%': 'ia32', | 58 'host_arch%': 'ia32', |
| 65 }], | 59 }], |
| 66 ], | 60 ], |
| 67 }, | 61 }, |
| 68 'host_arch%': '<(host_arch)', | 62 'host_arch%': '<(host_arch)', |
| 69 'target_arch%': '<(host_arch)', | 63 'target_arch%': '<(host_arch)', |
| 70 }, | 64 }, |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 ], | 351 ], |
| 358 'target_conditions': [ | 352 'target_conditions': [ |
| 359 ['_type!="static_library"', { | 353 ['_type!="static_library"', { |
| 360 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 354 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
| 361 }], | 355 }], |
| 362 ], # target_conditions | 356 ], # target_conditions |
| 363 }, # target_defaults | 357 }, # target_defaults |
| 364 }], # OS=="mac" | 358 }], # OS=="mac" |
| 365 ], | 359 ], |
| 366 } | 360 } |
| OLD | NEW |