OLD | NEW |
1 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2014, 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 import("runtime_args.gni") |
| 6 |
5 declare_args() { | 7 declare_args() { |
6 # Instead of using is_debug, we introduce a different flag for specifying a | 8 # Instead of using is_debug, we introduce a different flag for specifying a |
7 # Debug build of Dart so that clients can still use a Release build of Dart | 9 # Debug build of Dart so that clients can still use a Release build of Dart |
8 # while themselves doing a Debug build. | 10 # while themselves doing a Debug build. |
9 dart_debug = false | 11 dart_debug = false |
10 | 12 |
11 # Set the runtime mode. This affects how the runtime is built and what | 13 # Set the runtime mode. This affects how the runtime is built and what |
12 # features it has. Valid values are: | 14 # features it has. Valid values are: |
13 # 'develop' (the default) - VM is built to run as a JIT with all development | 15 # 'develop' (the default) - VM is built to run as a JIT with all development |
14 # features enabled. | 16 # features enabled. |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 assert(false) | 141 assert(false) |
140 } | 142 } |
141 } | 143 } |
142 | 144 |
143 if (dart_debug) { | 145 if (dart_debug) { |
144 defines += [ "DEBUG" ] | 146 defines += [ "DEBUG" ] |
145 } else { | 147 } else { |
146 defines += [ "NDEBUG" ] | 148 defines += [ "NDEBUG" ] |
147 } | 149 } |
148 | 150 |
| 151 include_dirs = [] |
| 152 if (dart_use_tcmalloc) { |
| 153 defines += [ "DART_USE_TCMALLOC" ] |
| 154 include_dirs += [ "../third_party/tcmalloc/gperftools/src" ] |
| 155 } |
| 156 |
149 if (!is_win) { | 157 if (!is_win) { |
150 cflags = [ | 158 cflags = [ |
151 "-Werror", | 159 "-Werror", |
152 "-Wall", | 160 "-Wall", |
153 "-Wextra", # Also known as -W. | 161 "-Wextra", # Also known as -W. |
154 "-Wno-unused-parameter", | 162 "-Wno-unused-parameter", |
155 "-Wnon-virtual-dtor", | 163 "-Wnon-virtual-dtor", |
156 "-Wvla", | 164 "-Wvla", |
157 "-Wno-conversion-null", | 165 "-Wno-conversion-null", |
158 "-Woverloaded-virtual", | 166 "-Woverloaded-virtual", |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 "third_party/double-conversion/src:libdouble_conversion", | 298 "third_party/double-conversion/src:libdouble_conversion", |
291 "vm:libdart_lib", | 299 "vm:libdart_lib", |
292 "vm:libdart_lib_nosnapshot", | 300 "vm:libdart_lib_nosnapshot", |
293 "vm:libdart_vm", | 301 "vm:libdart_vm", |
294 "vm:libdart_vm_nosnapshot", | 302 "vm:libdart_vm_nosnapshot", |
295 ] | 303 ] |
296 sources = [ | 304 sources = [ |
297 "vm/libdart_dependency_helper.cc", | 305 "vm/libdart_dependency_helper.cc", |
298 ] | 306 ] |
299 } | 307 } |
OLD | NEW |