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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 'INSPECTOR', | 201 'INSPECTOR', |
202 'OBJECT_PRINT', | 202 'OBJECT_PRINT', |
203 'LIVEOBJECTLIST', | 203 'LIVEOBJECTLIST', |
204 ], | 204 ], |
205 }], | 205 }], |
206 ['v8_compress_startup_data=="bz2"', { | 206 ['v8_compress_startup_data=="bz2"', { |
207 'defines': [ | 207 'defines': [ |
208 'COMPRESS_STARTUP_DATA_BZ2', | 208 'COMPRESS_STARTUP_DATA_BZ2', |
209 ], | 209 ], |
210 }], | 210 }], |
| 211 ['OS=="win"', { |
| 212 'defines': [ |
| 213 'WIN32', |
| 214 ], |
| 215 }], |
211 ['OS=="win" and v8_enable_prof==1', { | 216 ['OS=="win" and v8_enable_prof==1', { |
212 'msvs_settings': { | 217 'msvs_settings': { |
213 'VCLinkerTool': { | 218 'VCLinkerTool': { |
214 'GenerateMapFile': 'true', | 219 'GenerateMapFile': 'true', |
215 }, | 220 }, |
216 }, | 221 }, |
217 }], | 222 }], |
218 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 223 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
219 or OS=="netbsd"', { | 224 or OS=="netbsd"', { |
220 'conditions': [ | 225 'conditions': [ |
221 [ 'target_arch=="ia32"', { | 226 [ 'target_arch=="ia32"', { |
222 'cflags': [ '-m32' ], | 227 'cflags': [ '-m32' ], |
223 'ldflags': [ '-m32' ], | 228 'ldflags': [ '-m32' ], |
224 }], | 229 }], |
225 ], | 230 ], |
226 }], | 231 }], |
227 ['OS=="solaris"', { | 232 ['OS=="solaris"', { |
228 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. | 233 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. |
229 }], | 234 }], |
230 ], | 235 ], # conditions |
231 'configurations': { | 236 'configurations': { |
232 'Debug': { | 237 'Debug': { |
233 'defines': [ | 238 'defines': [ |
234 'DEBUG', | 239 'DEBUG', |
235 'ENABLE_DISASSEMBLER', | 240 'ENABLE_DISASSEMBLER', |
236 'V8_ENABLE_CHECKS', | 241 'V8_ENABLE_CHECKS', |
237 'OBJECT_PRINT', | 242 'OBJECT_PRINT', |
238 ], | 243 ], |
239 'msvs_settings': { | 244 'msvs_settings': { |
240 'VCCLCompilerTool': { | 245 'VCCLCompilerTool': { |
(...skipping 20 matching lines...) Expand all Loading... |
261 'cflags': [ '-I/usr/local/include' ], | 266 'cflags': [ '-I/usr/local/include' ], |
262 }], | 267 }], |
263 ['OS=="netbsd"', { | 268 ['OS=="netbsd"', { |
264 'cflags': [ '-I/usr/pkg/include' ], | 269 'cflags': [ '-I/usr/pkg/include' ], |
265 }], | 270 }], |
266 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { | 271 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { |
267 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', | 272 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', |
268 '-Wnon-virtual-dtor' ], | 273 '-Wnon-virtual-dtor' ], |
269 }], | 274 }], |
270 ], | 275 ], |
271 }, | 276 }, # Debug |
272 'Release': { | 277 'Release': { |
273 'conditions': [ | 278 'conditions': [ |
274 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" \ | 279 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" \ |
275 or OS=="android"', { | 280 or OS=="android"', { |
276 'cflags!': [ | 281 'cflags!': [ |
277 '-O2', | 282 '-O2', |
278 '-Os', | 283 '-Os', |
279 ], | 284 ], |
280 'cflags': [ | 285 'cflags': [ |
281 '-fdata-sections', | 286 '-fdata-sections', |
(...skipping 19 matching lines...) Expand all Loading... |
301 ['OS=="mac"', { | 306 ['OS=="mac"', { |
302 'xcode_settings': { | 307 'xcode_settings': { |
303 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 | 308 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 |
304 | 309 |
305 # -fstrict-aliasing. Mainline gcc | 310 # -fstrict-aliasing. Mainline gcc |
306 # enables this at -O2 and above, | 311 # enables this at -O2 and above, |
307 # but Apple gcc does not unless it | 312 # but Apple gcc does not unless it |
308 # is specified explicitly. | 313 # is specified explicitly. |
309 'GCC_STRICT_ALIASING': 'YES', | 314 'GCC_STRICT_ALIASING': 'YES', |
310 }, | 315 }, |
311 }], | 316 }], # OS=="mac" |
312 ['OS=="win"', { | 317 ['OS=="win"', { |
313 'msvs_configuration_attributes': { | 318 'msvs_configuration_attributes': { |
314 'OutputDirectory': '<(DEPTH)\\build\\$(ConfigurationName)', | 319 'OutputDirectory': '<(DEPTH)\\build\\$(ConfigurationName)', |
315 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)', | 320 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)', |
316 'CharacterSet': '1', | 321 'CharacterSet': '1', |
317 }, | 322 }, |
318 'msvs_settings': { | 323 'msvs_settings': { |
319 'VCCLCompilerTool': { | 324 'VCCLCompilerTool': { |
320 'Optimization': '2', | 325 'Optimization': '2', |
321 'InlineFunctionExpansion': '2', | 326 'InlineFunctionExpansion': '2', |
(...skipping 14 matching lines...) Expand all Loading... |
336 'LinkIncremental': '1', | 341 'LinkIncremental': '1', |
337 'OptimizeReferences': '2', | 342 'OptimizeReferences': '2', |
338 'OptimizeForWindows98': '1', | 343 'OptimizeForWindows98': '1', |
339 'EnableCOMDATFolding': '2', | 344 'EnableCOMDATFolding': '2', |
340 # For future reference, the stack size needs to be | 345 # For future reference, the stack size needs to be |
341 # increased when building for Windows 64-bit, otherwise | 346 # increased when building for Windows 64-bit, otherwise |
342 # some test cases can cause stack overflow. | 347 # some test cases can cause stack overflow. |
343 # 'StackReserveSize': '297152', | 348 # 'StackReserveSize': '297152', |
344 }, | 349 }, |
345 }, | 350 }, |
346 }], | 351 }], # OS=="win" |
347 ], | 352 ], # conditions |
348 }, | 353 }, # Release |
349 }, | 354 }, # configurations |
350 }, | 355 }, # target_defaults |
351 } | 356 } |
OLD | NEW |