dart-sdk/tools/gyp/configurations_msvs.gypi
Zachary Anderson 3d7202bad3 DBC: Adds simdbc64 target, adds arm64 arithmetic overflow logic
There were differences between linux gcc, android gcc,
MacOS clang, and 32 vs. 64-bit w.r.t the __builtin
functions for detecting arithmetic overflow. I couldn't get
them all working at the same time. Instead, I removed them,
and changed to always use the inline assembly. This works
in all the configurations above.

This change also adds a simdbc64 target for building simdbc
for 64-bit, and sets up the android targets. simdbc targets
arm, and simdbc64 targets arm64. You can build them with:

$ ./tools/build.py -m release -a simdbc{64} --os=android runtime

R=iposva@google.com

Review URL: https://codereview.chromium.org/1904153003 .
2016-04-25 12:48:34 -07:00

141 lines
4.4 KiB
Python

# Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
{
'variables': {
'dart_debug_optimization_level%': '2',
},
'target_defaults': {
'configurations': {
'Dart_Win_Base': {
'abstract': 1,
'defines': [
'_HAS_EXCEPTIONS=0', # disable C++ exceptions use in C++ std. libs.
],
},
'Dart_Win_ia32_Base': {
'abstract': 1,
},
'Dart_Win_x64_Base': {
'abstract': 1,
'msvs_configuration_platform': 'x64',
},
'Dart_Win_simarm_Base': {
'abstract': 1,
},
'Dart_Win_simarmv6_Base': {
'abstract': 1,
},
'Dart_Win_simarmv5te_Base': {
'abstract': 1,
},
'Dart_Win_simarm64_Base': {
'abstract': 1,
},
'Dart_Win_simmips_Base': {
'abstract': 1,
},
'Dart_Win_simdbc_Base': {
'abstract': 1,
},
'Dart_Win_simdbc64_Base': {
'abstract': 1,
},
'Dart_Win_Debug': {
'abstract': 1,
'msvs_settings': {
'VCCLCompilerTool': {
'Optimization': '<(dart_debug_optimization_level)',
'BasicRuntimeChecks': '0', # disable /RTC1 when compiling /O2
'DebugInformationFormat': '3',
'ExceptionHandling': '0',
'RuntimeTypeInfo': 'false',
'RuntimeLibrary': '1', # /MTd - Multi-threaded, static (debug)
'OmitFramePointers': 'false',
},
'VCLinkerTool': {
'LinkIncremental': '2',
'GenerateDebugInformation': 'true',
'StackReserveSize': '2097152',
'AdditionalDependencies': [
'advapi32.lib',
'shell32.lib',
'dbghelp.lib',
],
},
},
# C4351 warns MSVC follows the C++ specification regarding array
# initialization in member initializers. Code that expects the
# specified behavior should silence this warning.
'msvs_disabled_warnings': [4351],
},
'Dart_Win_Release': {
'abstract': 1,
'msvs_settings': {
'VCCLCompilerTool': {
'Optimization': '2',
'InlineFunctionExpansion': '2',
'EnableIntrinsicFunctions': 'true',
'FavorSizeOrSpeed': '0',
'ExceptionHandling': '0',
'RuntimeTypeInfo': 'false',
'StringPooling': 'true',
'RuntimeLibrary': '0', # /MT - Multi-threaded, static
'OmitFramePointers': 'false',
},
'VCLinkerTool': {
'LinkIncremental': '1',
'GenerateDebugInformation': 'true',
'OptimizeReferences': '2',
'EnableCOMDATFolding': '2',
'StackReserveSize': '2097152',
'AdditionalDependencies': [
'advapi32.lib',
'shell32.lib',
'dbghelp.lib',
],
},
},
# C4351 warns MSVC follows the C++ specification regarding array
# initialization in member initializers. Code that expects the
# specified behavior should silence this warning.
'msvs_disabled_warnings': [4351],
},
'Dart_Win_Product': {
'abstract': 1,
'msvs_settings': {
'VCCLCompilerTool': {
'Optimization': '2',
'InlineFunctionExpansion': '2',
'EnableIntrinsicFunctions': 'true',
'FavorSizeOrSpeed': '0',
'ExceptionHandling': '0',
'RuntimeTypeInfo': 'false',
'StringPooling': 'true',
'RuntimeLibrary': '0', # /MT - Multi-threaded, static
},
'VCLinkerTool': {
'LinkIncremental': '1',
'GenerateDebugInformation': 'true',
'OptimizeReferences': '2',
'EnableCOMDATFolding': '2',
'StackReserveSize': '2097152',
'AdditionalDependencies': [
'advapi32.lib',
'shell32.lib',
'dbghelp.lib',
],
},
},
# C4351 warns MSVC follows the C++ specification regarding array
# initialization in member initializers. Code that expects the
# specified behavior should silence this warning.
'msvs_disabled_warnings': [4351],
},
},
},
}