OLD | NEW |
1 # Copyright 2013 the V8 project authors. All rights reserved. | 1 # Copyright 2013 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 'defines': [ | 357 'defines': [ |
358 'V8_TARGET_ARCH_IA32', | 358 'V8_TARGET_ARCH_IA32', |
359 ], | 359 ], |
360 }], # v8_target_arch=="ia32" | 360 }], # v8_target_arch=="ia32" |
361 ['v8_target_arch=="x87"', { | 361 ['v8_target_arch=="x87"', { |
362 'defines': [ | 362 'defines': [ |
363 'V8_TARGET_ARCH_X87', | 363 'V8_TARGET_ARCH_X87', |
364 ], | 364 ], |
365 'cflags': ['-march=i586'], | 365 'cflags': ['-march=i586'], |
366 }], # v8_target_arch=="x87" | 366 }], # v8_target_arch=="x87" |
367 ['(v8_target_arch=="mips" or v8_target_arch=="mipsel" \ | 367 ['v8_target_arch=="mips" or v8_target_arch=="mipsel" \ |
368 or v8_target_arch=="mips64" or v8_target_arch=="mips64el") \ | 368 or v8_target_arch=="mips64" or v8_target_arch=="mips64el"', { |
369 and v8_target_arch==target_arch', { | |
370 'target_conditions': [ | 369 'target_conditions': [ |
371 ['_toolset=="target"', { | 370 ['_toolset=="target"', { |
372 # Target built with a Mips CXX compiler. | |
373 'variables': { | |
374 'ldso_path%': '<!(/bin/echo -n $LDSO_PATH)', | |
375 'ld_r_path%': '<!(/bin/echo -n $LD_R_PATH)', | |
376 }, | |
377 'conditions': [ | 371 'conditions': [ |
378 ['ldso_path!=""', { | 372 ['v8_target_arch==target_arch', { |
379 'ldflags': ['-Wl,--dynamic-linker=<(ldso_path)'], | 373 # Target built with a Mips CXX compiler. |
380 }], | 374 'variables': { |
381 ['ld_r_path!=""', { | 375 'ldso_path%': '<!(/bin/echo -n $LDSO_PATH)', |
382 'ldflags': ['-Wl,--rpath=<(ld_r_path)'], | 376 'ld_r_path%': '<!(/bin/echo -n $LD_R_PATH)', |
383 }], | 377 }, |
384 [ 'clang==1', { | 378 'conditions': [ |
385 'cflags': ['-integrated-as'], | 379 ['ldso_path!=""', { |
| 380 'ldflags': ['-Wl,--dynamic-linker=<(ldso_path)'], |
| 381 }], |
| 382 ['ld_r_path!=""', { |
| 383 'ldflags': ['-Wl,--rpath=<(ld_r_path)'], |
| 384 }], |
| 385 [ 'clang==1', { |
| 386 'cflags': ['-integrated-as'], |
| 387 }], |
| 388 ['OS!="mac"', { |
| 389 'defines': ['_MIPS_TARGET_HW',], |
| 390 }, { |
| 391 'defines': ['_MIPS_TARGET_SIMULATOR',], |
| 392 }], |
| 393 ], |
| 394 }, { |
| 395 'defines': ['_MIPS_TARGET_SIMULATOR',], |
386 }], | 396 }], |
387 ], | 397 ], |
388 }], | 398 }], #'_toolset=="target" |
| 399 ['_toolset=="host"', { |
| 400 'conditions': [ |
| 401 ['v8_target_arch==target_arch and OS!="mac"', { |
| 402 'defines': ['_MIPS_TARGET_HW',], |
| 403 }, { |
| 404 'defines': ['_MIPS_TARGET_SIMULATOR',], |
| 405 }], |
| 406 ], |
| 407 }], #'_toolset=="host" |
389 ], | 408 ], |
390 }], | 409 }], |
391 ['v8_target_arch=="mips"', { | 410 ['v8_target_arch=="mips"', { |
392 'defines': [ | 411 'defines': [ |
393 'V8_TARGET_ARCH_MIPS', | 412 'V8_TARGET_ARCH_MIPS', |
394 ], | 413 ], |
395 'conditions': [ | 414 'conditions': [ |
396 [ 'v8_can_use_fpu_instructions=="true"', { | 415 [ 'v8_can_use_fpu_instructions=="true"', { |
397 'defines': [ | 416 'defines': [ |
398 'CAN_USE_FPU_INSTRUCTIONS', | 417 'CAN_USE_FPU_INSTRUCTIONS', |
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1392 ], | 1411 ], |
1393 }, | 1412 }, |
1394 'Release_x64': { | 1413 'Release_x64': { |
1395 'inherit_from': ['ReleaseBase'], | 1414 'inherit_from': ['ReleaseBase'], |
1396 }, | 1415 }, |
1397 }], | 1416 }], |
1398 ], | 1417 ], |
1399 }, # configurations | 1418 }, # configurations |
1400 }, # target_defaults | 1419 }, # target_defaults |
1401 } | 1420 } |
OLD | NEW |