OLD | NEW |
1 # Copyright 2011 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 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 'host_arch%': '<(host_arch)', | 51 'host_arch%': '<(host_arch)', |
52 'target_arch%': '<(host_arch)', | 52 'target_arch%': '<(host_arch)', |
53 }, | 53 }, |
54 'host_arch%': '<(host_arch)', | 54 'host_arch%': '<(host_arch)', |
55 'target_arch%': '<(target_arch)', | 55 'target_arch%': '<(target_arch)', |
56 'v8_target_arch%': '<(target_arch)', | 56 'v8_target_arch%': '<(target_arch)', |
57 }, | 57 }, |
58 'host_arch%': '<(host_arch)', | 58 'host_arch%': '<(host_arch)', |
59 'target_arch%': '<(target_arch)', | 59 'target_arch%': '<(target_arch)', |
60 'v8_target_arch%': '<(v8_target_arch)', | 60 'v8_target_arch%': '<(v8_target_arch)', |
| 61 'werror%': '-Werror', |
61 'conditions': [ | 62 'conditions': [ |
62 ['(v8_target_arch=="arm" and host_arch!="arm") or \ | 63 ['(v8_target_arch=="arm" and host_arch!="arm") or \ |
63 (v8_target_arch=="x64" and host_arch!="x64")', { | 64 (v8_target_arch=="x64" and host_arch!="x64")', { |
64 'want_separate_host_toolset': 1, | 65 'want_separate_host_toolset': 1, |
65 }, { | 66 }, { |
66 'want_separate_host_toolset': 0, | 67 'want_separate_host_toolset': 0, |
67 }], | 68 }], |
68 ], | 69 ], |
69 }, | 70 }, |
70 'target_defaults': { | 71 'target_defaults': { |
71 'default_configuration': 'Debug', | 72 'default_configuration': 'Debug', |
72 'configurations': { | 73 'configurations': { |
73 'Debug': { | 74 'Debug': { |
74 'cflags': [ '-g', '-O0' ], | 75 'cflags': [ '-g', '-O0' ], |
75 }, | 76 }, |
76 }, | 77 }, |
77 }, | 78 }, |
78 'conditions': [ | 79 'conditions': [ |
79 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { | 80 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { |
80 'target_defaults': { | 81 'target_defaults': { |
81 'cflags': [ '-Wall', '-Werror', '-W', '-Wno-unused-parameter', | 82 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', |
82 '-Wnon-virtual-dtor', '-pthread', '-fno-rtti', | 83 '-Wnon-virtual-dtor', '-pthread', '-fno-rtti', |
83 '-fno-exceptions', '-pedantic' ], | 84 '-fno-exceptions', '-pedantic' ], |
84 'ldflags': [ '-pthread', ], | 85 'ldflags': [ '-pthread', ], |
85 'conditions': [ | 86 'conditions': [ |
86 [ 'OS=="linux"', { | 87 [ 'OS=="linux"', { |
87 'cflags': [ '-ansi' ], | 88 'cflags': [ '-ansi' ], |
88 }], | 89 }], |
89 [ 'visibility=="hidden"', { | 90 [ 'visibility=="hidden"', { |
90 'cflags': [ '-fvisibility=hidden' ], | 91 'cflags': [ '-fvisibility=hidden' ], |
91 }], | 92 }], |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 }, | 192 }, |
192 'target_conditions': [ | 193 'target_conditions': [ |
193 ['_type!="static_library"', { | 194 ['_type!="static_library"', { |
194 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 195 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
195 }], | 196 }], |
196 ], # target_conditions | 197 ], # target_conditions |
197 }, # target_defaults | 198 }, # target_defaults |
198 }], # OS=="mac" | 199 }], # OS=="mac" |
199 ], | 200 ], |
200 } | 201 } |
OLD | NEW |