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 20 matching lines...) Expand all Loading... |
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', | 36 'mac_deployment_target%': '10.5', |
37 'variables': { | 37 'variables': { |
38 'variables': { | 38 'variables': { |
39 'variables': { | 39 'variables': { |
40 'conditions': [ | 40 'conditions': [ |
41 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or \ | 41 ['OS!="win"', { |
42 OS=="netbsd" or OS=="mac"', { | |
43 # This handles the Unix platforms we generally deal with. | 42 # This handles the Unix platforms we generally deal with. |
44 # Anything else gets passed through, which probably won't work | 43 # Anything else gets passed through, which probably won't work |
45 # very well; such hosts should pass an explicit target_arch | 44 # very well; such hosts should pass an explicit target_arch |
46 # to gyp. | 45 # to gyp. |
47 'host_arch%': | 46 'host_arch%': |
48 '<!(uname -m | sed -e "s/i.86/ia32/;\ | 47 '<!(uname -m | sed -e "s/i.86/ia32/;\ |
49 s/x86_64/x64/;s/amd64/x64/;s/arm.*/arm/;s/mips.*/mipsel/")', | 48 s/x86_64/x64/;s/amd64/x64/;s/arm.*/arm/;s/mips.*/mipsel/")', |
50 }, { | 49 }], |
51 # OS!="linux" and OS!="freebsd" and OS!="openbsd" and | 50 ['OS=="win"', { |
52 # OS!="netbsd" and OS!="mac" | |
53 'host_arch%': 'ia32', | 51 'host_arch%': 'ia32', |
54 }], | 52 }], |
55 ], | 53 ], |
56 }, | 54 }, |
57 'host_arch%': '<(host_arch)', | 55 'host_arch%': '<(host_arch)', |
58 'target_arch%': '<(host_arch)', | 56 'target_arch%': '<(host_arch)', |
59 }, | 57 }, |
60 'host_arch%': '<(host_arch)', | 58 'host_arch%': '<(host_arch)', |
61 'target_arch%': '<(target_arch)', | 59 'target_arch%': '<(target_arch)', |
62 'v8_target_arch%': '<(target_arch)', | 60 'v8_target_arch%': '<(target_arch)', |
(...skipping 19 matching lines...) Expand all Loading... |
82 }, | 80 }, |
83 'target_defaults': { | 81 'target_defaults': { |
84 'default_configuration': 'Debug', | 82 'default_configuration': 'Debug', |
85 'configurations': { | 83 'configurations': { |
86 'Debug': { | 84 'Debug': { |
87 'cflags': [ '-g', '-O0' ], | 85 'cflags': [ '-g', '-O0' ], |
88 }, | 86 }, |
89 }, | 87 }, |
90 }, | 88 }, |
91 'conditions': [ | 89 'conditions': [ |
92 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 90 ['OS!="win"', { |
93 or OS=="netbsd"', { | |
94 'target_defaults': { | 91 'target_defaults': { |
95 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', | 92 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', |
96 '-Wnon-virtual-dtor', '-pthread', '-fno-rtti', | 93 '-Wnon-virtual-dtor', '-pthread', '-fno-rtti', |
97 '-fno-exceptions', '-pedantic' ], | 94 '-fno-exceptions', '-pedantic' ], |
98 'ldflags': [ '-pthread', ], | 95 'ldflags': [ '-pthread', ], |
99 'conditions': [ | 96 'conditions': [ |
100 [ 'OS=="linux"', { | 97 [ 'OS=="linux"', { |
101 'cflags': [ '-ansi' ], | 98 'cflags': [ '-ansi' ], |
102 }], | 99 }], |
103 [ 'visibility=="hidden"', { | 100 [ 'visibility=="hidden"', { |
104 'cflags': [ '-fvisibility=hidden' ], | 101 'cflags': [ '-fvisibility=hidden' ], |
105 }], | 102 }], |
106 [ 'component=="shared_library"', { | 103 [ 'component=="shared_library"', { |
107 'cflags': [ '-fPIC', ], | 104 'cflags': [ '-fPIC', ], |
108 }], | 105 }], |
109 ], | 106 ], |
110 }, | 107 }, |
111 }], | 108 }], |
112 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" | |
113 # or OS=="netbsd"' | |
114 ['OS=="win"', { | 109 ['OS=="win"', { |
115 'target_defaults': { | 110 'target_defaults': { |
116 'defines': [ | 111 'defines': [ |
117 '_CRT_SECURE_NO_DEPRECATE', | 112 '_CRT_SECURE_NO_DEPRECATE', |
118 '_CRT_NONSTDC_NO_DEPRECATE', | 113 '_CRT_NONSTDC_NO_DEPRECATE', |
119 ], | 114 ], |
120 'conditions': [ | 115 'conditions': [ |
121 ['component=="static_library"', { | 116 ['component=="static_library"', { |
122 'defines': [ | 117 'defines': [ |
123 '_HAS_EXCEPTIONS=0', | 118 '_HAS_EXCEPTIONS=0', |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 }, | 206 }, |
212 'target_conditions': [ | 207 'target_conditions': [ |
213 ['_type!="static_library"', { | 208 ['_type!="static_library"', { |
214 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 209 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
215 }], | 210 }], |
216 ], # target_conditions | 211 ], # target_conditions |
217 }, # target_defaults | 212 }, # target_defaults |
218 }], # OS=="mac" | 213 }], # OS=="mac" |
219 ], | 214 ], |
220 } | 215 } |
OLD | NEW |