Adjust GN for removal of libdart. (flutter/engine#3583)
This commit is contained in:
@@ -26,7 +26,7 @@ source_set("fml") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//dart/runtime:libdart",
|
||||
"//dart/runtime:dart_api",
|
||||
"//lib/ftl",
|
||||
|
||||
# These need to be in sync with the Fuchsia buildroot.
|
||||
@@ -111,6 +111,7 @@ executable("fml_unittests") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//dart/runtime:libdart_jit",
|
||||
"//flutter/fml",
|
||||
"//flutter/testing",
|
||||
"//lib/ftl",
|
||||
|
||||
@@ -9,7 +9,7 @@ source_set("io") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//dart/runtime:libdart",
|
||||
"//dart/runtime:dart_api",
|
||||
"//dart/runtime/bin:embedded_dart_io",
|
||||
"//lib/ftl",
|
||||
"//lib/tonic/converter",
|
||||
|
||||
@@ -75,7 +75,7 @@ source_set("runtime") {
|
||||
|
||||
deps = [
|
||||
":embedded_resources_cc",
|
||||
"//dart/runtime:libdart",
|
||||
"//dart/runtime:dart_api",
|
||||
"//dart/runtime/bin:embedded_dart_io",
|
||||
"//flutter/assets",
|
||||
"//flutter/common",
|
||||
|
||||
@@ -101,7 +101,7 @@ source_set("common") {
|
||||
|
||||
deps = [
|
||||
":generate_embedder_diagnostic_server_resources_cc",
|
||||
"//dart/runtime:libdart",
|
||||
"//dart/runtime:dart_api",
|
||||
"//dart/runtime/vm:libdart_platform",
|
||||
"//flutter/assets",
|
||||
"//flutter/common",
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//flutter/common/config.gni")
|
||||
import("//flutter/shell/config.gni")
|
||||
import("//build/config/android/config.gni")
|
||||
import("//build/config/android/rules.gni")
|
||||
@@ -34,7 +35,6 @@ shared_library("flutter_shell_native") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//dart/runtime:libdart",
|
||||
"//flutter/common",
|
||||
"//flutter/flow",
|
||||
"//flutter/fml",
|
||||
@@ -45,6 +45,11 @@ shared_library("flutter_shell_native") {
|
||||
"//lib/ftl",
|
||||
"//third_party/skia",
|
||||
]
|
||||
if (flutter_runtime_mode == "debug") {
|
||||
deps += [ "//dart/runtime:libdart_jit" ]
|
||||
} else {
|
||||
deps += [ "//dart/runtime:libdart_precompiled_runtime" ]
|
||||
}
|
||||
|
||||
defines = []
|
||||
|
||||
|
||||
@@ -35,7 +35,6 @@ source_set("flutter_channels") {
|
||||
set_sources_assignment_filter(sources_assignment_filter)
|
||||
|
||||
deps = [
|
||||
"//dart/runtime:libdart",
|
||||
"//flutter/common",
|
||||
"//flutter/flow",
|
||||
"//flutter/fml",
|
||||
@@ -61,6 +60,7 @@ executable("flutter_channels_unittests") {
|
||||
|
||||
deps = [
|
||||
":flutter_channels",
|
||||
"//dart/runtime:libdart_jit",
|
||||
"//flutter/testing",
|
||||
]
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ source_set("common") {
|
||||
set_sources_assignment_filter(sources_assignment_filter)
|
||||
|
||||
deps = [
|
||||
"//dart/runtime:libdart",
|
||||
"//dart/runtime:dart_api",
|
||||
"//flutter/common",
|
||||
"//flutter/flow",
|
||||
"//flutter/fml",
|
||||
|
||||
@@ -24,6 +24,7 @@ source_set("mac_desktop_platform") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//dart/runtime:libdart_jit",
|
||||
"//flutter/common",
|
||||
"//flutter/fml",
|
||||
"//flutter/shell/common",
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
assert(is_ios)
|
||||
|
||||
import("//flutter/common/config.gni")
|
||||
import("//build/config/ios/rules.gni")
|
||||
import("//build/config/ios/ios_sdk.gni")
|
||||
|
||||
@@ -63,7 +64,6 @@ shared_library("flutter_framework_dylib") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//dart/runtime:libdart",
|
||||
"//flutter/flow",
|
||||
"//flutter/fml",
|
||||
"//flutter/glue",
|
||||
@@ -76,6 +76,11 @@ shared_library("flutter_framework_dylib") {
|
||||
"//lib/ftl",
|
||||
"//third_party/skia",
|
||||
]
|
||||
if (flutter_runtime_mode == "debug") {
|
||||
deps += [ "//dart/runtime:libdart_jit" ]
|
||||
} else {
|
||||
deps += [ "//dart/runtime:libdart_precompiled_runtime" ]
|
||||
}
|
||||
|
||||
defines = [ "FLUTTER_FRAMEWORK" ]
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ executable("linux") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//dart/runtime:libdart_jit",
|
||||
"//dart/runtime/bin:embedded_dart_io",
|
||||
"//flutter/common",
|
||||
"//flutter/fml",
|
||||
|
||||
@@ -108,7 +108,8 @@ def to_gn_args(args):
|
||||
# snapshotting and linking costs of the precompiler during development.
|
||||
# We can still use the JIT on the simulator though.
|
||||
use_dbc = args.target_os == 'ios' and not args.simulator and args.runtime_mode == 'debug'
|
||||
gn_args['dart_experimental_interpreter'] = use_dbc
|
||||
if use_dbc:
|
||||
gn_args['dart_target_arch'] = 'dbc'
|
||||
|
||||
gn_args['flutter_runtime_mode'] = args.runtime_mode
|
||||
|
||||
|
||||
Reference in New Issue
Block a user