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 15 matching lines...) Expand all Loading... | |
26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 # Definitions to be used when building stand-alone V8 binaries. | 28 # Definitions to be used when building stand-alone V8 binaries. |
29 | 29 |
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 'mac_deployment_target%': '10.5', | |
Jakob Kummerow
2012/07/02 14:54:52
The bump to 10.5 is intentional. We follow Chromiu
| |
36 'variables': { | 37 'variables': { |
37 'variables': { | 38 'variables': { |
38 'variables': { | 39 'variables': { |
39 'conditions': [ | 40 'conditions': [ |
40 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or \ | 41 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or \ |
41 OS=="netbsd" or OS=="mac"', { | 42 OS=="netbsd" or OS=="mac"', { |
42 # This handles the Unix platforms we generally deal with. | 43 # This handles the Unix platforms we generally deal with. |
43 # Anything else gets passed through, which probably won't work | 44 # Anything else gets passed through, which probably won't work |
44 # very well; such hosts should pass an explicit target_arch | 45 # very well; such hosts should pass an explicit target_arch |
45 # to gyp. | 46 # to gyp. |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
184 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions | 185 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions |
185 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti | 186 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti |
186 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings | 187 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings |
187 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden | 188 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden |
188 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', | 189 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', |
189 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden | 190 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden |
190 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics | 191 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics |
191 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror | 192 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror |
192 'GCC_VERSION': '4.2', | 193 'GCC_VERSION': '4.2', |
193 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof | 194 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof |
194 'MACOSX_DEPLOYMENT_TARGET': '10.4', # -mmacosx-version-min=10.4 | 195 # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min |
196 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', | |
195 'PREBINDING': 'NO', # No -Wl,-prebind | 197 'PREBINDING': 'NO', # No -Wl,-prebind |
196 'SYMROOT': '<(DEPTH)/xcodebuild', | 198 'SYMROOT': '<(DEPTH)/xcodebuild', |
197 'USE_HEADERMAP': 'NO', | 199 'USE_HEADERMAP': 'NO', |
198 'OTHER_CFLAGS': [ | 200 'OTHER_CFLAGS': [ |
199 '-fno-strict-aliasing', | 201 '-fno-strict-aliasing', |
200 ], | 202 ], |
201 'WARNING_CFLAGS': [ | 203 'WARNING_CFLAGS': [ |
202 '-Wall', | 204 '-Wall', |
203 '-Wendif-labels', | 205 '-Wendif-labels', |
204 '-W', | 206 '-W', |
205 '-Wno-unused-parameter', | 207 '-Wno-unused-parameter', |
206 '-Wnon-virtual-dtor', | 208 '-Wnon-virtual-dtor', |
207 ], | 209 ], |
208 }, | 210 }, |
209 'target_conditions': [ | 211 'target_conditions': [ |
210 ['_type!="static_library"', { | 212 ['_type!="static_library"', { |
211 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 213 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
212 }], | 214 }], |
213 ], # target_conditions | 215 ], # target_conditions |
214 }, # target_defaults | 216 }, # target_defaults |
215 }], # OS=="mac" | 217 }], # OS=="mac" |
216 ], | 218 ], |
217 } | 219 } |
OLD | NEW |