Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(569)

Side by Side Diff: runtime/BUILD.gn

Issue 2964133002: Exclude Observatory assets from PRODUCT build dart, dart_precompiled_runtime (Closed)
Patch Set: Addressed comments Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | runtime/bin/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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() {
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
10 # while themselves doing a Debug build.
11 dart_debug = false
12
13 # Set the runtime mode. This affects how the runtime is built and what
14 # features it has. Valid values are:
15 # 'develop' (the default) - VM is built to run as a JIT with all development
16 # features enabled.
17 # 'profile' - The VM is built to run with AOT compiled code with only the
18 # CPU profiling features enabled.
19 # 'release' - The VM is built to run with AOT compiled code with no developer
20 # features enabled.
21 #
22 # These settings are only used for Flutter, at the moment. A standalone build
23 # of the Dart VM should leave this set to "develop", and should set
24 # 'is_debug', 'is_release', or 'is_product'.
25 dart_runtime_mode = "develop"
26
27 # Explicitly set the target architecture in case of precompilation. Leaving
28 # this unspecified results in automatic target architecture detection.
29 # Available options are: arm, arm64, x64, and ia32
30 dart_target_arch = ""
31
32 # The optimization level to use for debug builds.
33 dart_debug_optimization_level = "2"
34 }
35
36 config("dart_public_config") { 7 config("dart_public_config") {
37 include_dirs = [ "." ] 8 include_dirs = [ "." ]
38 } 9 }
39 10
40 # Adds PRODUCT define if Flutter has specified "release" for dart_runtime_mode 11 # Adds PRODUCT define if Flutter has specified "release" for dart_runtime_mode
41 config("dart_maybe_product_config") { 12 config("dart_maybe_product_config") {
42 defines = [] 13 defines = []
43 14
44 if (dart_runtime_mode != "develop" && dart_runtime_mode != "profile" && 15 if (dart_runtime_mode != "develop" && dart_runtime_mode != "profile" &&
45 dart_runtime_mode != "release") { 16 dart_runtime_mode != "release") {
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 249
279 script = "../tools/make_version.py" 250 script = "../tools/make_version.py"
280 args = [ 251 args = [
281 "--quiet", 252 "--quiet",
282 "--output", 253 "--output",
283 rebase_path(output, root_build_dir), 254 rebase_path(output, root_build_dir),
284 "--input", 255 "--input",
285 rebase_path("vm/version_in.cc", root_build_dir), 256 rebase_path("vm/version_in.cc", root_build_dir),
286 ] 257 ]
287 } 258 }
OLDNEW
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | runtime/bin/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698