blob: ca541314a6d78147c754c958ae3d4aef9b6e799a [file] [log] [blame]
# Copyright 2020 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/dart/dart_build_config.gni")
# Temporary import to allow for soft transition
import("//topaz/runtime/dart/config.gni")
declare_args() {
# Forces all Dart apps to build in product mode which is a
# stripped down version of the VM running in AOT mode.
# TODO uncomment this once references to //topaz/runtime/dart/config.gni are converted
#dart_force_product = false
# TODO(fxbug.dev/64153) renable aot builds
# if (dart_force_product) {
# Product AOT
# dart_default_build_cfg = dart_release_build_cfg
# } else if (is_debug) {
# Non-product JIT
dart_default_build_cfg = dart_debug_build_cfg
# } else {
# Non-product AOT
# dart_default_build_cfg = dart_profile_build_cfg
# }
}