blob: 35692b128c12ca1878f4260cc111f0acf7e36f78 [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
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
}
}