| OLD | NEW |
| 1 # Copyright 2011 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 |
| 11 # with the distribution. | 11 # with the distribution. |
| (...skipping 18 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"', { | 40 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { |
| 41 # This handles the Linux platforms we generally deal with. Anythin
g | 41 # This handles the Linux platforms we generally deal with. |
| 42 # else gets passed through, which probably won't work very well; s
uch | 42 # Anything else gets passed through, which probably won't work |
| 43 # hosts should pass an explicit target_arch to gyp. | 43 # very well; such hosts should pass an explicit target_arch |
| 44 # to gyp. |
| 44 'host_arch%': | 45 'host_arch%': |
| 45 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s
/arm.*/arm/;s/mips.*/mips/")', | 46 '<!(uname -m | sed -e "s/i.86/ia32/;\ |
| 46 }, { # OS!="linux" and OS!="freebsd" and OS!="openbsd" | 47 s/x86_64/x64/;s/amd64/x64/;s/arm.*/arm/;s/mips.*/mips/")', |
| 48 }, { |
| 49 # OS!="linux" and OS!="freebsd" and OS!="openbsd" and OS!="netbsd" |
| 47 'host_arch%': 'ia32', | 50 'host_arch%': 'ia32', |
| 48 }], | 51 }], |
| 49 ], | 52 ], |
| 50 }, | 53 }, |
| 51 'host_arch%': '<(host_arch)', | 54 'host_arch%': '<(host_arch)', |
| 52 'target_arch%': '<(host_arch)', | 55 'target_arch%': '<(host_arch)', |
| 53 }, | 56 }, |
| 54 'host_arch%': '<(host_arch)', | 57 'host_arch%': '<(host_arch)', |
| 55 'target_arch%': '<(target_arch)', | 58 'target_arch%': '<(target_arch)', |
| 56 'v8_target_arch%': '<(target_arch)', | 59 'v8_target_arch%': '<(target_arch)', |
| (...skipping 14 matching lines...) Expand all Loading... |
| 71 }, | 74 }, |
| 72 'target_defaults': { | 75 'target_defaults': { |
| 73 'default_configuration': 'Debug', | 76 'default_configuration': 'Debug', |
| 74 'configurations': { | 77 'configurations': { |
| 75 'Debug': { | 78 'Debug': { |
| 76 'cflags': [ '-g', '-O0' ], | 79 'cflags': [ '-g', '-O0' ], |
| 77 }, | 80 }, |
| 78 }, | 81 }, |
| 79 }, | 82 }, |
| 80 'conditions': [ | 83 'conditions': [ |
| 81 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { | 84 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
| 85 or OS=="netbsd"', { |
| 82 'target_defaults': { | 86 'target_defaults': { |
| 83 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', | 87 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', |
| 84 '-Wnon-virtual-dtor', '-pthread', '-fno-rtti', | 88 '-Wnon-virtual-dtor', '-pthread', '-fno-rtti', |
| 85 '-fno-exceptions', '-pedantic' ], | 89 '-fno-exceptions', '-pedantic' ], |
| 86 'ldflags': [ '-pthread', ], | 90 'ldflags': [ '-pthread', ], |
| 87 'conditions': [ | 91 'conditions': [ |
| 88 [ 'OS=="linux"', { | 92 [ 'OS=="linux"', { |
| 89 'cflags': [ '-ansi' ], | 93 'cflags': [ '-ansi' ], |
| 90 }], | 94 }], |
| 91 [ 'visibility=="hidden"', { | 95 [ 'visibility=="hidden"', { |
| 92 'cflags': [ '-fvisibility=hidden' ], | 96 'cflags': [ '-fvisibility=hidden' ], |
| 93 }], | 97 }], |
| 94 [ 'component=="shared_library"', { | 98 [ 'component=="shared_library"', { |
| 95 'cflags': [ '-fPIC', ], | 99 'cflags': [ '-fPIC', ], |
| 96 }], | 100 }], |
| 97 ], | 101 ], |
| 98 }, | 102 }, |
| 99 }], # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"' | 103 }], |
| 104 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" |
| 105 # or OS=="netbsd"' |
| 100 ['OS=="win"', { | 106 ['OS=="win"', { |
| 101 'target_defaults': { | 107 'target_defaults': { |
| 102 'defines': [ | 108 'defines': [ |
| 103 'WIN32', | 109 'WIN32', |
| 104 '_CRT_SECURE_NO_DEPRECATE', | 110 '_CRT_SECURE_NO_DEPRECATE', |
| 105 '_CRT_NONSTDC_NO_DEPRECATE', | 111 '_CRT_NONSTDC_NO_DEPRECATE', |
| 106 ], | 112 ], |
| 107 'conditions': [ | 113 'conditions': [ |
| 108 ['component=="static_library"', { | 114 ['component=="static_library"', { |
| 109 'defines': [ | 115 'defines': [ |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 }, | 199 }, |
| 194 'target_conditions': [ | 200 'target_conditions': [ |
| 195 ['_type!="static_library"', { | 201 ['_type!="static_library"', { |
| 196 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 202 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
| 197 }], | 203 }], |
| 198 ], # target_conditions | 204 ], # target_conditions |
| 199 }, # target_defaults | 205 }, # target_defaults |
| 200 }], # OS=="mac" | 206 }], # OS=="mac" |
| 201 ], | 207 ], |
| 202 } | 208 } |
| OLD | NEW |