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, |
(...skipping 11 matching lines...) Expand all Loading... |
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 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden | 28 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden |
29 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', # -fvisibility-inlines-hidden | 29 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', # -fvisibility-inlines-hidden |
30 'GCC_WARN_NON_VIRTUAL_DESTRUCTOR': 'YES', # -Wnon-virtual-dtor | 30 'GCC_WARN_NON_VIRTUAL_DESTRUCTOR': 'YES', # -Wnon-virtual-dtor |
31 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror | 31 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror |
32 'OTHER_CFLAGS': [ # Disable frame pointers by default. | |
33 '-fomit-frame-pointer', | |
34 '-momit-leaf-frame-pointer', | |
35 ], | |
36 'WARNING_CFLAGS': [ | 32 'WARNING_CFLAGS': [ |
37 '<@(common_gcc_warning_flags)', | 33 '<@(common_gcc_warning_flags)', |
38 '-Wtrigraphs', # Disable Xcode default. | 34 '-Wtrigraphs', # Disable Xcode default. |
39 '-Wreturn-type', | 35 '-Wreturn-type', |
40 '-Werror=return-type', | 36 '-Werror=return-type', |
41 # TODO(15922): Enable this flag by default. | 37 # TODO(15922): Enable this flag by default. |
42 # '-Wshorten-64-to-32', | 38 # '-Wshorten-64-to-32', |
43 ], | 39 ], |
44 | 40 |
45 # Generate PIC code as Chrome is switching to this. | 41 # Generate PIC code as Chrome is switching to this. |
46 'GCC_DYNAMIC_NO_PIC': 'NO', | 42 'GCC_DYNAMIC_NO_PIC': 'NO', |
47 | 43 |
48 # When searching for header files, do not search | 44 # When searching for header files, do not search |
49 # subdirectories. Without this option, vm/assert.h conflicts | 45 # subdirectories. Without this option, vm/assert.h conflicts |
50 # with the system header assert.h. Apple also recommend | 46 # with the system header assert.h. Apple also recommend |
51 # setting this to NO. | 47 # setting this to NO. |
52 'ALWAYS_SEARCH_USER_PATHS': 'NO', | 48 'ALWAYS_SEARCH_USER_PATHS': 'NO', |
53 | 49 |
54 # Attempt to remove compiler options that Xcode adds by default. | 50 # Attempt to remove compiler options that Xcode adds by default. |
55 'GCC_CW_ASM_SYNTAX': 'NO', # Remove -fasm-blocks. | 51 'GCC_CW_ASM_SYNTAX': 'NO', # Remove -fasm-blocks. |
56 | 52 |
57 'GCC_ENABLE_PASCAL_STRINGS': 'NO', | 53 'GCC_ENABLE_PASCAL_STRINGS': 'NO', |
58 'GCC_ENABLE_TRIGRAPHS': 'NO', | 54 'GCC_ENABLE_TRIGRAPHS': 'NO', |
59 'COMBINE_HIDPI_IMAGES': 'YES', | 55 'COMBINE_HIDPI_IMAGES': 'YES', |
60 }, | 56 }, |
| 57 'conditions': [ |
| 58 ['c_frame_pointers==1', { |
| 59 'xcode_settings': { |
| 60 'OTHER_CFLAGS': [ |
| 61 '-fno-omit-frame-pointer', |
| 62 '-mno-omit-leaf-frame-pointer', |
| 63 ], |
| 64 }, |
| 65 'defines': [ |
| 66 'PROFILE_NATIVE_CODE', |
| 67 ], |
| 68 }, { |
| 69 'xcode_settings': { |
| 70 'OTHER_CFLAGS': [ |
| 71 '-fomit-frame-pointer', |
| 72 '-momit-leaf-frame-pointer', |
| 73 ], |
| 74 }, |
| 75 }], |
| 76 ], |
61 }, | 77 }, |
62 'Dart_Macos_ia32_Base': { | 78 'Dart_Macos_ia32_Base': { |
63 'abstract': 1, | 79 'abstract': 1, |
64 }, | 80 }, |
65 'Dart_Macos_x64_Base': { | 81 'Dart_Macos_x64_Base': { |
66 'abstract': 1, | 82 'abstract': 1, |
67 }, | 83 }, |
68 'Dart_Macos_simarm_Base': { | 84 'Dart_Macos_simarm_Base': { |
69 'abstract': 1, | 85 'abstract': 1, |
70 }, | 86 }, |
71 'Dart_Macos_simarm64_Base': { | 87 'Dart_Macos_simarm64_Base': { |
72 'abstract': 1, | 88 'abstract': 1, |
73 }, | 89 }, |
74 'Dart_Macos_simmips_Base': { | 90 'Dart_Macos_simmips_Base': { |
75 'abstract': 1, | 91 'abstract': 1, |
76 }, | 92 }, |
77 'Dart_Macos_Debug': { | 93 'Dart_Macos_Debug': { |
78 'abstract': 1, | 94 'abstract': 1, |
79 }, | 95 }, |
80 'Dart_Macos_Release': { | 96 'Dart_Macos_Release': { |
81 'abstract': 1, | 97 'abstract': 1, |
82 }, | 98 }, |
83 }, | 99 }, |
84 }, | 100 }, |
85 } | 101 } |
OLD | NEW |