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") | 5 import("runtime_args.gni") |
6 | 6 |
7 declare_args() { | 7 declare_args() { |
8 # 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 |
9 # 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 |
10 # while themselves doing a Debug build. | 10 # while themselves doing a Debug build. |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 } else { | 128 } else { |
129 defines += [ "NDEBUG" ] | 129 defines += [ "NDEBUG" ] |
130 } | 130 } |
131 | 131 |
132 include_dirs = [] | 132 include_dirs = [] |
133 if (dart_use_tcmalloc) { | 133 if (dart_use_tcmalloc) { |
134 defines += [ "DART_USE_TCMALLOC" ] | 134 defines += [ "DART_USE_TCMALLOC" ] |
135 include_dirs += [ "../third_party/tcmalloc/gperftools/src" ] | 135 include_dirs += [ "../third_party/tcmalloc/gperftools/src" ] |
136 } | 136 } |
137 | 137 |
138 if (defined(is_fuchsia) && is_fuchsia) { | 138 if (is_fuchsia) { |
139 defines += [ "DART_USE_JEMALLOC" ] | 139 defines += [ "DART_USE_JEMALLOC" ] |
140 include_dirs += [ "//magenta/third_party/ulib/jemalloc/include" ] | 140 include_dirs += [ "//magenta/third_party/ulib/jemalloc/include" ] |
141 } | 141 } |
142 | 142 |
143 if (!is_win) { | 143 if (!is_win) { |
144 cflags = [ | 144 cflags = [ |
145 "-Werror", | 145 "-Werror", |
146 "-Wall", | 146 "-Wall", |
147 "-Wextra", # Also known as -W. | 147 "-Wextra", # Also known as -W. |
148 "-Wno-unused-parameter", | 148 "-Wno-unused-parameter", |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 "third_party/double-conversion/src:libdouble_conversion", | 290 "third_party/double-conversion/src:libdouble_conversion", |
291 "vm:libdart_lib_jit", | 291 "vm:libdart_lib_jit", |
292 "vm:libdart_lib_nosnapshot_with_precompiler", | 292 "vm:libdart_lib_nosnapshot_with_precompiler", |
293 "vm:libdart_vm_jit", | 293 "vm:libdart_vm_jit", |
294 "vm:libdart_vm_nosnapshot_with_precompiler", | 294 "vm:libdart_vm_nosnapshot_with_precompiler", |
295 ] | 295 ] |
296 sources = [ | 296 sources = [ |
297 "vm/libdart_dependency_helper.cc", | 297 "vm/libdart_dependency_helper.cc", |
298 ] | 298 ] |
299 } | 299 } |
OLD | NEW |