OLD | NEW |
1 # Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2017, 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 declare_args() { | 5 declare_args() { |
| 6 # 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 |
| 8 # while themselves doing a Debug build. |
| 9 dart_debug = false |
| 10 |
| 11 # Set the runtime mode. This affects how the runtime is built and what |
| 12 # features it has. Valid values are: |
| 13 # 'develop' (the default) - VM is built to run as a JIT with all development |
| 14 # features enabled. |
| 15 # 'profile' - The VM is built to run with AOT compiled code with only the |
| 16 # CPU profiling features enabled. |
| 17 # 'release' - The VM is built to run with AOT compiled code with no developer |
| 18 # features enabled. |
| 19 # |
| 20 # These settings are only used for Flutter, at the moment. A standalone build |
| 21 # of the Dart VM should leave this set to "develop", and should set |
| 22 # 'is_debug', 'is_release', or 'is_product'. |
| 23 # |
| 24 # TODO(rmacnak): dart_runtime_mode no longer selects whether libdart is build |
| 25 # for JIT or AOT, since libdart waw split into libdart_jit and |
| 26 # libdart_precompiled_runtime. We should remove this flag and just set |
| 27 # dart_debug/dart_product. |
| 28 dart_runtime_mode = "develop" |
| 29 |
| 30 # Explicitly set the target architecture in case of precompilation. Leaving |
| 31 # this unspecified results in automatic target architecture detection. |
| 32 # Available options are: arm, arm64, x64, ia32, and dbc. |
| 33 dart_target_arch = "" |
| 34 |
| 35 # The optimization level to use for debug builds. |
| 36 dart_debug_optimization_level = "2" |
| 37 |
6 # Whether to fall back to built-in root certificates when they cannot be | 38 # Whether to fall back to built-in root certificates when they cannot be |
7 # verified at the operating system level. | 39 # verified at the operating system level. |
8 dart_use_fallback_root_certificates = false | 40 dart_use_fallback_root_certificates = false |
9 | 41 |
10 # The BUILD.gn file that we pull from chromium as part of zlib has a | 42 # The BUILD.gn file that we pull from chromium as part of zlib has a |
11 # dependence on //base, which we don't pull in. In a standalone build of the | 43 # dependence on //base, which we don't pull in. In a standalone build of the |
12 # VM, we set this to //runtime/bin/zlib where we have a BUILD.gn file without | 44 # VM, we set this to //runtime/bin/zlib where we have a BUILD.gn file without |
13 # a dependence on //base. | 45 # a dependence on //base. |
14 dart_zlib_path = "//third_party/zlib" | 46 dart_zlib_path = "//third_party/zlib" |
15 | 47 |
16 # Whether to link the standalone VM against tcmalloc. The standalone build of | 48 # Whether to link the standalone VM against tcmalloc. The standalone build of |
17 # the VM enables this only for Linux builds. | 49 # the VM enables this only for Linux builds. |
18 dart_use_tcmalloc = false | 50 dart_use_tcmalloc = false |
19 } | 51 } |
OLD | NEW |