Adjust GN for removal of libdart, take two. (flutter/engine#3584)

Update targets only included in host_debug_unopt.
This commit is contained in:
Ryan Macnak
2017-04-11 09:52:54 -07:00
committed by GitHub
parent e869784502
commit ec2be075b2
13 changed files with 27 additions and 12 deletions

View File

@@ -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",

View File

@@ -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",

View File

@@ -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",

View File

@@ -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",

View File

@@ -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 = []

View File

@@ -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",
]
}

View File

@@ -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",

View File

@@ -24,6 +24,7 @@ source_set("mac_desktop_platform") {
]
deps = [
"//dart/runtime:libdart_jit",
"//flutter/common",
"//flutter/fml",
"//flutter/shell/common",

View File

@@ -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" ]

View File

@@ -10,6 +10,7 @@ executable("linux") {
]
deps = [
"//dart/runtime:libdart_jit",
"//dart/runtime/bin:embedded_dart_io",
"//flutter/common",
"//flutter/fml",

View File

@@ -27,5 +27,6 @@ executable("synchronization_unittests") {
deps = [
":synchronization",
"//flutter/testing",
"//dart/runtime:libdart_jit",
]
}

View File

@@ -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