OLD | NEW |
1 # Copyright 2010 the V8 project authors. All rights reserved. | 1 # Copyright 2011 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 27 matching lines...) Expand all Loading... |
39 'host_arch%': | 39 'host_arch%': |
40 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/arm
.*/arm/")', | 40 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/arm
.*/arm/")', |
41 }, { # OS!="linux" and OS!="freebsd" and OS!="openbsd" | 41 }, { # OS!="linux" and OS!="freebsd" and OS!="openbsd" |
42 'host_arch%': 'ia32', | 42 'host_arch%': 'ia32', |
43 }], | 43 }], |
44 ], | 44 ], |
45 }, | 45 }, |
46 'host_arch%': '<(host_arch)', | 46 'host_arch%': '<(host_arch)', |
47 'target_arch%': '<(host_arch)', | 47 'target_arch%': '<(host_arch)', |
48 'v8_target_arch%': '<(target_arch)', | 48 'v8_target_arch%': '<(target_arch)', |
| 49 'conditions': [ |
| 50 ['(target_arch=="arm" and host_arch!="arm") or \ |
| 51 (target_arch=="x64" and host_arch!="x64")', { |
| 52 'want_separate_host_toolset': 1, |
| 53 }, { |
| 54 'want_separate_host_toolset': 0, |
| 55 }], |
| 56 ], |
49 }, | 57 }, |
50 'target_defaults': { | 58 'target_defaults': { |
51 'default_configuration': 'Debug', | 59 'default_configuration': 'Debug', |
| 60 'defines': [ |
| 61 'ENABLE_DEBUGGER_SUPPORT', |
| 62 ], |
52 'configurations': { | 63 'configurations': { |
53 'Debug': { | 64 'Debug': { |
54 'cflags': [ '-g', '-O0' ], | 65 'cflags': [ '-g', '-O0' ], |
55 'defines': [ 'ENABLE_DISASSEMBLER', 'DEBUG' ], | 66 'defines': [ 'ENABLE_DISASSEMBLER', 'DEBUG', 'V8_ENABLE_CHECKS', |
| 67 'OBJECT_PRINT' ], |
56 }, | 68 }, |
57 'Release': { | 69 'Release': { |
58 'cflags': [ '-O3', '-fomit-frame-pointer', '-fdata-sections', '-ffunctio
n-sections' ], | 70 'cflags': [ '-O3', '-fomit-frame-pointer', '-fdata-sections', |
| 71 '-ffunction-sections' ], |
59 }, | 72 }, |
60 }, | 73 }, |
61 }, | 74 }, |
62 'conditions': [ | 75 'conditions': [ |
63 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { | 76 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { |
64 'target_defaults': { | 77 'target_defaults': { |
65 'cflags': [ '-Wall', '-pthread', '-fno-rtti', '-fno-exceptions' ], | 78 'cflags': [ '-Wall', '-pthread', '-fno-rtti', '-fno-exceptions', |
| 79 '-pedantic' ], |
66 'ldflags': [ '-pthread', ], | 80 'ldflags': [ '-pthread', ], |
67 'conditions': [ | 81 'conditions': [ |
68 [ 'target_arch=="ia32"', { | 82 [ 'target_arch=="ia32"', { |
69 'cflags': [ '-m32' ], | 83 'cflags': [ '-m32' ], |
70 'ldflags': [ '-m32' ], | 84 'ldflags': [ '-m32' ], |
71 }], | 85 }], |
72 [ 'OS=="linux"', { | 86 [ 'OS=="linux"', { |
73 'cflags': [ '-ansi' ], | 87 'cflags': [ '-ansi' ], |
74 }], | 88 }], |
75 [ 'visibility=="hidden"', { | 89 [ 'visibility=="hidden"', { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 }, | 188 }, |
175 'target_conditions': [ | 189 'target_conditions': [ |
176 ['_type!="static_library"', { | 190 ['_type!="static_library"', { |
177 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 191 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
178 }], | 192 }], |
179 ], # target_conditions | 193 ], # target_conditions |
180 }, # target_defaults | 194 }, # target_defaults |
181 }], # OS=="mac" | 195 }], # OS=="mac" |
182 ], | 196 ], |
183 } | 197 } |
OLD | NEW |