| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 'V8_TARGET_ARCH_ARM', | 85 'V8_TARGET_ARCH_ARM', |
| 86 ], | 86 ], |
| 87 'target_conditions': [ | 87 'target_conditions': [ |
| 88 ['_toolset=="host"', { | 88 ['_toolset=="host"', { |
| 89 'variables': { | 89 'variables': { |
| 90 'armcompiler': '<!($(echo ${CXX_host:-$(which g++)}) -v 2>&1 | gre
p -q "^Target: arm" && echo "yes" || echo "no")', | 90 'armcompiler': '<!($(echo ${CXX_host:-$(which g++)}) -v 2>&1 | gre
p -q "^Target: arm" && echo "yes" || echo "no")', |
| 91 }, | 91 }, |
| 92 'conditions': [ | 92 'conditions': [ |
| 93 ['armcompiler=="yes"', { | 93 ['armcompiler=="yes"', { |
| 94 'conditions': [ | 94 'conditions': [ |
| 95 [ 'armv7==1', { | 95 [ 'arm_version==7', { |
| 96 'cflags': ['-march=armv7-a',], | 96 'cflags': ['-march=armv7-a',], |
| 97 }], | 97 }], |
| 98 [ 'armv7==1 or armv7=="default"', { | 98 [ 'arm_version==7 or arm_version=="default"', { |
| 99 'conditions': [ | 99 'conditions': [ |
| 100 [ 'arm_neon==1', { | 100 [ 'arm_neon==1', { |
| 101 'cflags': ['-mfpu=neon',], | 101 'cflags': ['-mfpu=neon',], |
| 102 }, | 102 }, |
| 103 { | 103 { |
| 104 'conditions': [ | 104 'conditions': [ |
| 105 [ 'arm_fpu!="default"', { | 105 [ 'arm_fpu!="default"', { |
| 106 'cflags': ['-mfpu=<(arm_fpu)',], | 106 'cflags': ['-mfpu=<(arm_fpu)',], |
| 107 }], | 107 }], |
| 108 ], | 108 ], |
| (...skipping 11 matching lines...) Expand all Loading... |
| 120 }], | 120 }], |
| 121 [ 'arm_test=="on"', { | 121 [ 'arm_test=="on"', { |
| 122 'defines': [ | 122 'defines': [ |
| 123 'ARM_TEST', | 123 'ARM_TEST', |
| 124 ], | 124 ], |
| 125 }], | 125 }], |
| 126 ], | 126 ], |
| 127 }, { | 127 }, { |
| 128 # armcompiler=="no" | 128 # armcompiler=="no" |
| 129 'conditions': [ | 129 'conditions': [ |
| 130 [ 'armv7==1 or armv7=="default"', { | 130 [ 'arm_version==7 or arm_version=="default"', { |
| 131 'defines': [ | 131 'defines': [ |
| 132 'CAN_USE_ARMV7_INSTRUCTIONS=1', | 132 'CAN_USE_ARMV7_INSTRUCTIONS=1', |
| 133 ], | 133 ], |
| 134 'conditions': [ | 134 'conditions': [ |
| 135 [ 'arm_fpu=="default"', { | 135 [ 'arm_fpu=="default"', { |
| 136 'defines': [ | 136 'defines': [ |
| 137 'CAN_USE_VFP3_INSTRUCTIONS', | 137 'CAN_USE_VFP3_INSTRUCTIONS', |
| 138 ], | 138 ], |
| 139 }], | 139 }], |
| 140 [ 'arm_fpu=="vfpv3-d16"', { | 140 [ 'arm_fpu=="vfpv3-d16"', { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 }], | 173 }], |
| 174 ], | 174 ], |
| 175 }], # _toolset=="host" | 175 }], # _toolset=="host" |
| 176 ['_toolset=="target"', { | 176 ['_toolset=="target"', { |
| 177 'variables': { | 177 'variables': { |
| 178 'armcompiler': '<!($(echo ${CXX_target:-<(CXX)}) -v 2>&1 | grep -q
"^Target: arm" && echo "yes" || echo "no")', | 178 'armcompiler': '<!($(echo ${CXX_target:-<(CXX)}) -v 2>&1 | grep -q
"^Target: arm" && echo "yes" || echo "no")', |
| 179 }, | 179 }, |
| 180 'conditions': [ | 180 'conditions': [ |
| 181 ['armcompiler=="yes"', { | 181 ['armcompiler=="yes"', { |
| 182 'conditions': [ | 182 'conditions': [ |
| 183 [ 'armv7==1', { | 183 [ 'arm_version==7', { |
| 184 'cflags': ['-march=armv7-a',], | 184 'cflags': ['-march=armv7-a',], |
| 185 }], | 185 }], |
| 186 [ 'armv7==1 or armv7=="default"', { | 186 [ 'arm_version==7 or arm_version=="default"', { |
| 187 'conditions': [ | 187 'conditions': [ |
| 188 [ 'arm_neon==1', { | 188 [ 'arm_neon==1', { |
| 189 'cflags': ['-mfpu=neon',], | 189 'cflags': ['-mfpu=neon',], |
| 190 }, | 190 }, |
| 191 { | 191 { |
| 192 'conditions': [ | 192 'conditions': [ |
| 193 [ 'arm_fpu!="default"', { | 193 [ 'arm_fpu!="default"', { |
| 194 'cflags': ['-mfpu=<(arm_fpu)',], | 194 'cflags': ['-mfpu=<(arm_fpu)',], |
| 195 }], | 195 }], |
| 196 ], | 196 ], |
| (...skipping 11 matching lines...) Expand all Loading... |
| 208 }], | 208 }], |
| 209 [ 'arm_test=="on"', { | 209 [ 'arm_test=="on"', { |
| 210 'defines': [ | 210 'defines': [ |
| 211 'ARM_TEST', | 211 'ARM_TEST', |
| 212 ], | 212 ], |
| 213 }], | 213 }], |
| 214 ], | 214 ], |
| 215 }, { | 215 }, { |
| 216 # armcompiler=="no" | 216 # armcompiler=="no" |
| 217 'conditions': [ | 217 'conditions': [ |
| 218 [ 'armv7==1 or armv7=="default"', { | 218 [ 'arm_version==7 or arm_version=="default"', { |
| 219 'defines': [ | 219 'defines': [ |
| 220 'CAN_USE_ARMV7_INSTRUCTIONS=1', | 220 'CAN_USE_ARMV7_INSTRUCTIONS=1', |
| 221 ], | 221 ], |
| 222 'conditions': [ | 222 'conditions': [ |
| 223 [ 'arm_fpu=="default"', { | 223 [ 'arm_fpu=="default"', { |
| 224 'defines': [ | 224 'defines': [ |
| 225 'CAN_USE_VFP3_INSTRUCTIONS', | 225 'CAN_USE_VFP3_INSTRUCTIONS', |
| 226 ], | 226 ], |
| 227 }], | 227 }], |
| 228 [ 'arm_fpu=="vfpv3-d16"', { | 228 [ 'arm_fpu=="vfpv3-d16"', { |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 }, | 355 }, |
| 356 }], | 356 }], |
| 357 ['OS=="win" and v8_enable_prof==1', { | 357 ['OS=="win" and v8_enable_prof==1', { |
| 358 'msvs_settings': { | 358 'msvs_settings': { |
| 359 'VCLinkerTool': { | 359 'VCLinkerTool': { |
| 360 'GenerateMapFile': 'true', | 360 'GenerateMapFile': 'true', |
| 361 }, | 361 }, |
| 362 }, | 362 }, |
| 363 }], | 363 }], |
| 364 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 364 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
| 365 or OS=="netbsd"', { | 365 or OS=="netbsd" or OS=="qnx"', { |
| 366 'conditions': [ | 366 'conditions': [ |
| 367 [ 'v8_no_strict_aliasing==1', { | 367 [ 'v8_no_strict_aliasing==1', { |
| 368 'cflags': [ '-fno-strict-aliasing' ], | 368 'cflags': [ '-fno-strict-aliasing' ], |
| 369 }], | 369 }], |
| 370 ], # conditions | 370 ], # conditions |
| 371 }], | 371 }], |
| 372 ['OS=="solaris"', { | 372 ['OS=="solaris"', { |
| 373 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. | 373 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. |
| 374 }], | 374 }], |
| 375 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 375 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
| 376 or OS=="netbsd" or OS=="mac" or OS=="android") and \ | 376 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ |
| 377 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \ | 377 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \ |
| 378 v8_target_arch=="mipsel")', { | 378 v8_target_arch=="mipsel")', { |
| 379 # Check whether the host compiler and target compiler support the | 379 # Check whether the host compiler and target compiler support the |
| 380 # '-m32' option and set it if so. | 380 # '-m32' option and set it if so. |
| 381 'target_conditions': [ | 381 'target_conditions': [ |
| 382 ['_toolset=="host"', { | 382 ['_toolset=="host"', { |
| 383 'variables': { | 383 'variables': { |
| 384 'm32flag': '<!(($(echo ${CXX_host:-$(which g++)}) -m32 -E - > /dev
/null 2>&1 < /dev/null) && echo "-m32" || true)', | 384 'm32flag': '<!(($(echo ${CXX_host:-$(which g++)}) -m32 -E - > /dev
/null 2>&1 < /dev/null) && echo "-m32" || true)', |
| 385 }, | 385 }, |
| 386 'cflags': [ '<(m32flag)' ], | 386 'cflags': [ '<(m32flag)' ], |
| 387 'ldflags': [ '<(m32flag)' ], | 387 'ldflags': [ '<(m32flag)' ], |
| 388 'xcode_settings': { | 388 'xcode_settings': { |
| 389 'ARCHS': [ 'i386' ], | 389 'ARCHS': [ 'i386' ], |
| 390 }, | 390 }, |
| 391 }], | 391 }], |
| 392 ['_toolset=="target"', { | 392 ['_toolset=="target"', { |
| 393 'variables': { | 393 'variables': { |
| 394 'm32flag': '<!(($(echo ${CXX_target:-<(CXX)}) -m32 -E - > /dev/nul
l 2>&1 < /dev/null) && echo "-m32" || true)', | 394 'm32flag': '<!(($(echo ${CXX_target:-<(CXX)}) -m32 -E - > /dev/nul
l 2>&1 < /dev/null) && echo "-m32" || true)', |
| 395 'clang%': 0, | 395 'clang%': 0, |
| 396 }, | 396 }, |
| 397 'conditions': [ | 397 'conditions': [ |
| 398 ['(OS!="android" or clang==1) and \ | 398 ['((OS!="android" and OS!="qnx") or clang==1) and \ |
| 399 nacl_target_arch!="nacl_x64"', { | 399 nacl_target_arch!="nacl_x64"', { |
| 400 'cflags': [ '<(m32flag)' ], | 400 'cflags': [ '<(m32flag)' ], |
| 401 'ldflags': [ '<(m32flag)' ], | 401 'ldflags': [ '<(m32flag)' ], |
| 402 }], | 402 }], |
| 403 ], | 403 ], |
| 404 'xcode_settings': { | 404 'xcode_settings': { |
| 405 'ARCHS': [ 'i386' ], | 405 'ARCHS': [ 'i386' ], |
| 406 }, | 406 }, |
| 407 }], | 407 }], |
| 408 ], | 408 ], |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 }], | 503 }], |
| 504 ['v8_optimized_debug==2', { | 504 ['v8_optimized_debug==2', { |
| 505 'LinkIncremental': '1', | 505 'LinkIncremental': '1', |
| 506 'OptimizeReferences': '2', | 506 'OptimizeReferences': '2', |
| 507 'EnableCOMDATFolding': '2', | 507 'EnableCOMDATFolding': '2', |
| 508 }], | 508 }], |
| 509 ], | 509 ], |
| 510 }, | 510 }, |
| 511 }, | 511 }, |
| 512 'conditions': [ | 512 'conditions': [ |
| 513 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { | 513 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \ |
| 514 OS=="qnx"', { |
| 514 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', | 515 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', |
| 515 '-Wnon-virtual-dtor', '-Woverloaded-virtual', | 516 '-Wnon-virtual-dtor', '-Woverloaded-virtual', |
| 516 '<(wno_array_bounds)', | 517 '<(wno_array_bounds)', |
| 517 # Hide some GCC 4.8 warnings: | 518 # Hide some GCC 4.8 warnings: |
| 518 # TODO(jbramley): Only enable these on GCC 4.8. | 519 # TODO(jbramley): Only enable these on GCC 4.8. |
| 519 '-Wno-unused-local-typedefs', | 520 '-Wno-unused-local-typedefs', |
| 520 '-Wno-maybe-uninitialized' ], | 521 '-Wno-maybe-uninitialized' ], |
| 521 'conditions': [ | 522 'conditions': [ |
| 522 ['v8_optimized_debug==0', { | 523 ['v8_optimized_debug==0', { |
| 523 'cflags!': [ | 524 'cflags!': [ |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 696 'OptimizeReferences': '2', | 697 'OptimizeReferences': '2', |
| 697 'EnableCOMDATFolding': '2', | 698 'EnableCOMDATFolding': '2', |
| 698 }, | 699 }, |
| 699 }, | 700 }, |
| 700 }], # OS=="win" | 701 }], # OS=="win" |
| 701 ], # conditions | 702 ], # conditions |
| 702 }, # Release | 703 }, # Release |
| 703 }, # configurations | 704 }, # configurations |
| 704 }, # target_defaults | 705 }, # target_defaults |
| 705 } | 706 } |
| OLD | NEW |