OLD | NEW |
| (Empty) |
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 | |
3 # BSD-style license that can be found in the LICENSE file. | |
4 | |
5 # The purpose of this file and others in this directory is to simulate | |
6 # the Chromium build environment. This file is included in all GYP | |
7 # files that are used by the Dart project. | |
8 | |
9 # READ BEFORE EDITING: | |
10 # Do not add Dart VM specific configuration to this file. Instead, | |
11 # modify runtime/tools/gyp/runtime-configurations.gypi. | |
12 | |
13 { | |
14 'variables': { | |
15 'xcode_gcc_version%': '<!(python <(DEPTH)/tools/gyp/find_mac_gcc_version.py)
', | |
16 }, | |
17 'target_defaults': { | |
18 'configurations': { | |
19 'Dart_Macos_Base': { | |
20 'abstract': 1, | |
21 'xcode_settings': { | |
22 'GCC_VERSION': '<(xcode_gcc_version)', | |
23 'GCC_C_LANGUAGE_STANDARD': 'ansi', | |
24 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions | |
25 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti | |
26 'GCC_DEBUGGING_SYMBOLS': 'default', # -g | |
27 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'YES', # Do not strip symbols | |
28 'DEAD_CODE_STRIPPING': 'YES', # -Wl,-dead_strip | |
29 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden | |
30 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', # -fvisibility-inlines-hidden | |
31 'GCC_WARN_NON_VIRTUAL_DESTRUCTOR': 'YES', # -Wnon-virtual-dtor | |
32 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror | |
33 'WARNING_CFLAGS': [ | |
34 '<@(common_gcc_warning_flags)', | |
35 '-Wtrigraphs', # Disable Xcode default. | |
36 '-Wreturn-type', | |
37 '-Werror=return-type', | |
38 # TODO(15922): Enable this flag by default. | |
39 # '-Wshorten-64-to-32', | |
40 ], | |
41 | |
42 # Generate PIC code as Chrome is switching to this. | |
43 'GCC_DYNAMIC_NO_PIC': 'NO', | |
44 | |
45 # When searching for header files, do not search | |
46 # subdirectories. Without this option, vm/assert.h conflicts | |
47 # with the system header assert.h. Apple also recommend | |
48 # setting this to NO. | |
49 'ALWAYS_SEARCH_USER_PATHS': 'NO', | |
50 | |
51 # Attempt to remove compiler options that Xcode adds by default. | |
52 'GCC_CW_ASM_SYNTAX': 'NO', # Remove -fasm-blocks. | |
53 | |
54 'GCC_ENABLE_PASCAL_STRINGS': 'NO', | |
55 'GCC_ENABLE_TRIGRAPHS': 'NO', | |
56 'COMBINE_HIDPI_IMAGES': 'YES', | |
57 }, | |
58 }, | |
59 'Dart_Macos_ia32_Base': { | |
60 'abstract': 1, | |
61 }, | |
62 'Dart_Macos_x64_Base': { | |
63 'abstract': 1, | |
64 }, | |
65 'Dart_Macos_simarm_Base': { | |
66 'abstract': 1, | |
67 }, | |
68 'Dart_Macos_simarmv6_Base': { | |
69 'abstract': 1, | |
70 }, | |
71 'Dart_Macos_simarmv5te_Base': { | |
72 'abstract': 1, | |
73 }, | |
74 'Dart_Macos_simarm64_Base': { | |
75 'abstract': 1, | |
76 }, | |
77 'Dart_Macos_simdbc_Base': { | |
78 'abstract': 1, | |
79 }, | |
80 'Dart_Macos_simdbc64_Base': { | |
81 'abstract': 1, | |
82 }, | |
83 'Dart_Macos_Debug': { | |
84 'abstract': 1, | |
85 'xcode_settings': { | |
86 'OTHER_CFLAGS': [ | |
87 '-fno-omit-frame-pointer', | |
88 '-mno-omit-leaf-frame-pointer', | |
89 ], | |
90 }, | |
91 }, | |
92 'Dart_Macos_Release': { | |
93 'abstract': 1, | |
94 'xcode_settings': { | |
95 'OTHER_CFLAGS': [ | |
96 '-fno-omit-frame-pointer', | |
97 '-mno-omit-leaf-frame-pointer', | |
98 ], | |
99 }, | |
100 }, | |
101 'Dart_Macos_Product': { | |
102 'abstract': 1, | |
103 'xcode_settings': { | |
104 'OTHER_CFLAGS': [ | |
105 '-fomit-frame-pointer', | |
106 '-momit-leaf-frame-pointer', | |
107 ], | |
108 }, | |
109 }, | |
110 }, | |
111 }, | |
112 } | |
OLD | NEW |