OLD | NEW |
1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2011, 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'arm_cross_libc%': '/opt/codesourcery/arm-2009q1/arm-none-linux-gnueabi/libc
', | |
8 'dart_debug_optimization_level%': '2', | 7 'dart_debug_optimization_level%': '2', |
9 }, | 8 }, |
10 'target_defaults': { | 9 'target_defaults': { |
11 'configurations': { | 10 'configurations': { |
12 'Dart_Base': { | 11 'Dart_Linux_Base': { |
13 'abstract': 1, | 12 'abstract': 1, |
14 'cflags': [ | 13 'cflags': [ |
15 '-Werror', | 14 '-Werror', |
16 '<@(common_gcc_warning_flags)', | 15 '<@(common_gcc_warning_flags)', |
17 '-Wnon-virtual-dtor', | 16 '-Wnon-virtual-dtor', |
18 '-Wvla', | 17 '-Wvla', |
19 '-Wno-conversion-null', | 18 '-Wno-conversion-null', |
20 '-Woverloaded-virtual', | 19 '-Woverloaded-virtual', |
21 '-g3', | 20 '-g3', |
22 '-ggdb3', | 21 '-ggdb3', |
23 # TODO(iposva): Figure out if we need to pass anything else. | 22 # TODO(iposva): Figure out if we need to pass anything else. |
24 #'-ansi', | 23 #'-ansi', |
25 '-fno-rtti', | 24 '-fno-rtti', |
26 '-fno-exceptions', | 25 '-fno-exceptions', |
27 # '-fvisibility=hidden', | 26 # '-fvisibility=hidden', |
28 # '-fvisibility-inlines-hidden', | 27 # '-fvisibility-inlines-hidden', |
29 ], | 28 ], |
30 }, | 29 }, |
31 | 30 |
32 'Dart_ia32_Base': { | 31 'Dart_Linux_ia32_Base': { |
| 32 'abstract': 1, |
33 'cflags': [ '-m32', '-msse2' ], | 33 'cflags': [ '-m32', '-msse2' ], |
34 'ldflags': [ '-m32', ], | 34 'ldflags': [ '-m32', ], |
35 }, | 35 }, |
36 | 36 |
37 'Dart_x64_Base': { | 37 'Dart_Linux_x64_Base': { |
| 38 'abstract': 1, |
38 'cflags': [ '-m64', '-msse2' ], | 39 'cflags': [ '-m64', '-msse2' ], |
39 'ldflags': [ '-m64', ], | 40 'ldflags': [ '-m64', ], |
40 }, | 41 }, |
41 | 42 |
42 'Dart_simarm_Base': { | 43 'Dart_Linux_simarm_Base': { |
| 44 'abstract': 1, |
43 'cflags': [ '-O3', '-m32', '-msse2' ], | 45 'cflags': [ '-O3', '-m32', '-msse2' ], |
44 'ldflags': [ '-m32', ], | 46 'ldflags': [ '-m32', ], |
45 'defines': [ | 47 'defines': [ |
46 'ARM_FLOAT_ABI_HARD', | 48 'ARM_FLOAT_ABI_HARD', |
47 ], | 49 ], |
48 }, | 50 }, |
49 | 51 |
50 'Dart_arm_Base': { | 52 'Dart_Linux_arm_Base': { |
| 53 'abstract': 1, |
51 'target_conditions': [ | 54 'target_conditions': [ |
52 ['_toolset=="target"', { | 55 ['_toolset=="target"', { |
53 'cflags': [ | 56 'cflags': [ |
54 '-marm', | 57 '-marm', |
55 '-march=armv7-a', | 58 '-march=armv7-a', |
56 '-mfpu=vfp', | 59 '-mfpu=vfp', |
57 '-Wno-psabi', # suppresses va_list warning | 60 '-Wno-psabi', # suppresses va_list warning |
58 '-fno-strict-overflow', | 61 '-fno-strict-overflow', |
59 ], | 62 ], |
60 'defines': [ | 63 'defines': [ |
61 # In build.py, we specify the hf compiler. | 64 # In build.py, we specify the hf compiler. |
62 'ARM_FLOAT_ABI_HARD', | 65 'ARM_FLOAT_ABI_HARD', |
63 ], | 66 ], |
64 }], | 67 }], |
65 ['_toolset=="host"', { | 68 ['_toolset=="host"', { |
66 'cflags': ['-m32', '-msse2'], | 69 'cflags': ['-m32', '-msse2'], |
67 'ldflags': ['-m32'], | 70 'ldflags': ['-m32'], |
68 }]] | 71 }]] |
69 }, | 72 }, |
70 | 73 |
71 'Dart_simmips_Base': { | 74 'Dart_Linux_simmips_Base': { |
| 75 'abstract': 1, |
72 'cflags': [ '-O3', '-m32', '-msse2' ], | 76 'cflags': [ '-O3', '-m32', '-msse2' ], |
73 'ldflags': [ '-m32', ], | 77 'ldflags': [ '-m32', ], |
74 }, | 78 }, |
75 | 79 |
76 'Dart_mips_Base': { | 80 'Dart_Linux_mips_Base': { |
| 81 'abstract': 1, |
77 'target_conditions': [ | 82 'target_conditions': [ |
78 ['_toolset=="target"', { | 83 ['_toolset=="target"', { |
79 'cflags': [ | 84 'cflags': [ |
80 '-march=mips32', | 85 '-march=mips32', |
81 '-mhard-float', | 86 '-mhard-float', |
82 '-fno-strict-overflow', | 87 '-fno-strict-overflow', |
83 ], | 88 ], |
84 }], | 89 }], |
85 ['_toolset=="host"',{ | 90 ['_toolset=="host"',{ |
86 'cflags': [ '-O3', '-m32', '-msse2' ], | 91 'cflags': [ '-O3', '-m32', '-msse2' ], |
87 'ldflags': [ '-m32' ], | 92 'ldflags': [ '-m32' ], |
88 }]] | 93 }]] |
89 }, | 94 }, |
90 | 95 |
91 'Dart_Debug': { | 96 'Dart_Linux_Debug': { |
| 97 'abstract': 1, |
92 'cflags': [ | 98 'cflags': [ |
93 '-O<(dart_debug_optimization_level)', | 99 '-O<(dart_debug_optimization_level)', |
94 # The sampling profiler uses the frame pointer to walk the stack. | 100 # The sampling profiler uses the frame pointer to walk the stack. |
95 '-fno-omit-frame-pointer', | 101 '-fno-omit-frame-pointer', |
96 # Clang on Linux will still omit frame pointers from leaf functions | 102 # Clang on Linux will still omit frame pointers from leaf functions |
97 # unless told otherwise: | 103 # unless told otherwise: |
98 # '-mno-omit-leaf-frame-pointer', | 104 # '-mno-omit-leaf-frame-pointer', |
99 ], | 105 ], |
100 }, | 106 }, |
101 | 107 |
102 'Dart_Release': { | 108 'Dart_Linux_Release': { |
| 109 'abstract': 1, |
103 'cflags': [ | 110 'cflags': [ |
104 '-O3', | 111 '-O3', |
105 # The sampling profiler uses the frame pointer to walk the stack. | 112 # The sampling profiler uses the frame pointer to walk the stack. |
106 '-fno-omit-frame-pointer', | 113 '-fno-omit-frame-pointer', |
107 # Clang on Linux will still omit frame pointers from leaf functions | 114 # Clang on Linux will still omit frame pointers from leaf functions |
108 # unless told otherwise: | 115 # unless told otherwise: |
109 # '-mno-omit-leaf-frame-pointer', | 116 # '-mno-omit-leaf-frame-pointer', |
110 ], | 117 ], |
111 }, | 118 }, |
112 }, | 119 }, |
113 }, | 120 }, |
114 } | 121 } |
OLD | NEW |