22# Use of this source code is governed by a BSD-style license that can be
33# found in the LICENSE file.
44
5+ import (" //flutter/common/config.gni" )
6+
57# Non-product JIT is "debug". It launches the vm service.
68# Non-product AOT is "profile". It also launches the vm service, but lacks tools that rely on JIT.
9+ # Product JIT is "release". It doesn't launch the vm service.
710# Product AOT is "release". It doesn't launch the vm service.
811
912# Builds the component in a non-product JIT build. This will
@@ -17,43 +20,54 @@ flutter_debug_build_cfg = {
1720 enable_asserts = true
1821}
1922
20- # TODO(richkadel ): Don't confuse these settings with those in dart_build_config.gni,
21- # in fact, do I really need both? Can we just use the settings in dart_build_config.gni?
23+ # Builds the component in a non-product AOT build. This will
24+ # launch the vm service in the runner.
25+ # This configuration is not compatible with a --release build since the
26+ # profile aot runner is built without asserts.
27+ flutter_aot_debug_build_cfg = {
28+ runtime_meta = " //flutter/shell/platform/fuchsia/flutter/meta/aot_runtime"
29+ runner_dep = " //flutter/shell/platform/fuchsia/flutter:flutter_aot_runner"
30+ platform_name = " flutter_runner"
31+ is_aot = true
32+ is_product = false
33+ enable_asserts = true
34+ }
2235
23- # # Builds the component in a non-product AOT build. This will
24- # # launch the vm service in the runner.
25- # # This configuration is not compatible with a --release build since the
26- # # profile aot runner is built without asserts.
27- # flutter_aot_debug_build_cfg = {
28- # runtime_meta = "//flutter/shell/platform/fuchsia/flutter/meta/aot_runtime"
29- # runner_dep = "//flutter/shell/platform/fuchsia/flutter:flutter_aot_runner"
30- # platform_name = "flutter_runner"
31- # is_aot = true
32- # is_product = false
33- # enable_asserts = true
34- # }
36+ # Builds the component in a non-product AOT build. This will
37+ # launch the vm service in the runner.
38+ flutter_profile_build_cfg = {
39+ runtime_meta =
40+ " //flutter/shell/platform/fuchsia/flutter/meta/aot_runtime " # profile
41+ # runner
42+ runner_dep = " //flutter/shell/platform/fuchsia/flutter:flutter_aot_runner"
43+ platform_name = " flutter_runner"
44+ is_aot = true
45+ is_product = false
46+ enable_asserts = false
47+ }
3548
36- # # Builds the component in a non- product AOT build. This will
37- # # launch the vm service in the runner.
38- # flutter_profile_build_cfg = {
39- # runtime_meta =
40- # "//flutter/shell/platform/fuchsia/flutter/meta/aot_runtime" # profile
41- # # runner
42- # runner_dep = "//flutter/shell/platform/fuchsia/flutter:flutter_aot_runner "
43- # platform_name = "flutter_runner"
44- # is_aot = true
45- # is_product = false
46- # enable_asserts = false
47- # }
49+ # Builds the component in a product JIT build. This will
50+ # not launch the vm service in the runner.
51+ flutter_jit_release_build_cfg = {
52+ runtime_meta =
53+ " //flutter/shell/platform/fuchsia/flutter/meta/jit_product_runtime "
54+ runner_dep =
55+ " //flutter/shell/platform/fuchsia/flutter:flutter_jit_product_runner "
56+ platform_name = " flutter_runner"
57+ is_aot = false
58+ is_product = true
59+ enable_asserts = false
60+ }
4861
49- # # Builds the component in a product AOT build. This will
50- # # not launch the vm service in the runner.
51- # flutter_release_build_cfg = {
52- # runtime_meta =
53- # "//flutter/shell/platform/fuchsia/flutter/meta/aot_product_runtime"
54- # runner_dep = "//flutter/shell/platform/fuchsia/flutter:flutter_aot_product_runner"
55- # platform_name = "flutter_runner"
56- # is_aot = true
57- # is_product = true
58- # enable_asserts = false
59- # }
62+ # Builds the component in a product AOT build. This will
63+ # not launch the vm service in the runner.
64+ flutter_release_build_cfg = {
65+ runtime_meta =
66+ " //flutter/shell/platform/fuchsia/flutter/meta/aot_product_runtime"
67+ runner_dep =
68+ " //flutter/shell/platform/fuchsia/flutter:flutter_aot_product_runner"
69+ platform_name = " flutter_runner"
70+ is_aot = true
71+ is_product = true
72+ enable_asserts = false
73+ }
0 commit comments