OLD | NEW |
1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 # The purpose of this file and others in this directory is to simulate | 5 # The purpose of this file and others in this directory is to simulate |
6 # the Chromium build enviroment. This file is included in all GYP | 6 # the Chromium build enviroment. This file is included in all GYP |
7 # files that are used by the Dart project. | 7 # files that are used by the Dart project. |
8 | 8 |
9 # READ BEFORE EDITING: | 9 # READ BEFORE EDITING: |
10 # Do not add Dart VM specific configuration to this file. Instead, | 10 # Do not add Dart VM specific configuration to this file. Instead, |
11 # modify runtime/tools/gyp/runtime-configurations.gypi. | 11 # modify runtime/tools/gyp/runtime-configurations.gypi. |
12 | 12 |
13 { | 13 { |
14 'variables': { | 14 'variables': { |
15 'xcode_gcc_version%': '<!(python <(DEPTH)/tools/gyp/find_mac_gcc_version.py)
', | 15 'xcode_gcc_version%': '<!(python <(DEPTH)/tools/gyp/find_mac_gcc_version.py)
', |
16 }, | 16 }, |
17 'target_defaults': { | 17 'target_defaults': { |
18 'configurations': { | 18 'configurations': { |
19 'Dart_Macos_Base': { | 19 'Dart_Macos_Base': { |
20 'abstract': 1, | 20 'abstract': 1, |
21 'xcode_settings': { | 21 'xcode_settings': { |
22 'GCC_VERSION': '<(xcode_gcc_version)', | 22 'GCC_VERSION': '<(xcode_gcc_version)', |
23 'GCC_C_LANGUAGE_STANDARD': 'ansi', | 23 'GCC_C_LANGUAGE_STANDARD': 'ansi', |
24 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions | 24 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions |
25 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti | 25 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti |
26 'GCC_DEBUGGING_SYMBOLS': 'default', # -g | 26 'GCC_DEBUGGING_SYMBOLS': 'default', # -g |
27 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'YES', # Do not strip symbols | 27 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'YES', # Do not strip symbols |
| 28 'DEAD_CODE_STRIPPING': 'YES', # -Wl,-dead_strip |
28 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden | 29 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden |
29 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', # -fvisibility-inlines-hidden | 30 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', # -fvisibility-inlines-hidden |
30 'GCC_WARN_NON_VIRTUAL_DESTRUCTOR': 'YES', # -Wnon-virtual-dtor | 31 'GCC_WARN_NON_VIRTUAL_DESTRUCTOR': 'YES', # -Wnon-virtual-dtor |
31 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror | 32 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror |
32 'WARNING_CFLAGS': [ | 33 'WARNING_CFLAGS': [ |
33 '<@(common_gcc_warning_flags)', | 34 '<@(common_gcc_warning_flags)', |
34 '-Wtrigraphs', # Disable Xcode default. | 35 '-Wtrigraphs', # Disable Xcode default. |
35 '-Wreturn-type', | 36 '-Wreturn-type', |
36 '-Werror=return-type', | 37 '-Werror=return-type', |
37 # TODO(15922): Enable this flag by default. | 38 # TODO(15922): Enable this flag by default. |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 }, | 89 }, |
89 'Dart_Macos_Debug': { | 90 'Dart_Macos_Debug': { |
90 'abstract': 1, | 91 'abstract': 1, |
91 }, | 92 }, |
92 'Dart_Macos_Release': { | 93 'Dart_Macos_Release': { |
93 'abstract': 1, | 94 'abstract': 1, |
94 }, | 95 }, |
95 }, | 96 }, |
96 }, | 97 }, |
97 } | 98 } |
OLD | NEW |