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 'v8_enable_debugger_support%': 1, |
| 50 'conditions': [ |
| 51 ['(target_arch=="arm" and host_arch!="arm") or \ |
| 52 (target_arch=="x64" and host_arch!="x64")', { |
| 53 'want_separate_host_toolset': 1, |
| 54 }, { |
| 55 'want_separate_host_toolset': 0, |
| 56 }], |
| 57 ], |
49 }, | 58 }, |
50 'target_defaults': { | 59 'target_defaults': { |
51 'default_configuration': 'Debug', | 60 'default_configuration': 'Debug', |
| 61 'conditions': [ |
| 62 ['v8_enable_debugger_support==1', { |
| 63 'defines': ['ENABLE_DEBUGGER_SUPPORT',], |
| 64 }, |
| 65 ], |
| 66 ], |
52 'configurations': { | 67 'configurations': { |
53 'Debug': { | 68 'Debug': { |
54 'cflags': [ '-g', '-O0' ], | 69 'cflags': [ '-g', '-O0' ], |
55 'defines': [ 'ENABLE_DISASSEMBLER', 'DEBUG' ], | 70 'defines': [ 'ENABLE_DISASSEMBLER', 'DEBUG', 'V8_ENABLE_CHECKS', |
| 71 'OBJECT_PRINT' ], |
56 }, | 72 }, |
57 'Release': { | 73 'Release': { |
58 'cflags': [ '-O3', '-fomit-frame-pointer', '-fdata-sections', '-ffunctio
n-sections' ], | 74 'cflags': [ '-O3', '-fomit-frame-pointer', '-fdata-sections', |
| 75 '-ffunction-sections' ], |
59 }, | 76 }, |
60 }, | 77 }, |
61 }, | 78 }, |
62 'conditions': [ | 79 'conditions': [ |
63 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { | 80 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { |
64 'target_defaults': { | 81 'target_defaults': { |
65 'cflags': [ '-Wall', '-pthread', '-fno-rtti', '-fno-exceptions' ], | 82 'cflags': [ '-Wall', '-pthread', '-fno-rtti', '-fno-exceptions', |
| 83 '-pedantic' ], |
66 'ldflags': [ '-pthread', ], | 84 'ldflags': [ '-pthread', ], |
67 'conditions': [ | 85 'conditions': [ |
68 [ 'target_arch=="ia32"', { | 86 [ 'target_arch=="ia32"', { |
69 'cflags': [ '-m32' ], | 87 'cflags': [ '-m32' ], |
70 'ldflags': [ '-m32' ], | 88 'ldflags': [ '-m32' ], |
71 }], | 89 }], |
72 [ 'OS=="linux"', { | 90 [ 'OS=="linux"', { |
73 'cflags': [ '-ansi' ], | 91 'cflags': [ '-ansi' ], |
74 }], | 92 }], |
75 [ 'visibility=="hidden"', { | 93 [ 'visibility=="hidden"', { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 }, | 192 }, |
175 'target_conditions': [ | 193 'target_conditions': [ |
176 ['_type!="static_library"', { | 194 ['_type!="static_library"', { |
177 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 195 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
178 }], | 196 }], |
179 ], # target_conditions | 197 ], # target_conditions |
180 }, # target_defaults | 198 }, # target_defaults |
181 }], # OS=="mac" | 199 }], # OS=="mac" |
182 ], | 200 ], |
183 } | 201 } |
OLD | NEW |