Skip to content

Commit

Permalink
Configure the embedder in AOT in "profile" and "release" runtime mode…
Browse files Browse the repository at this point in the history
…s. (flutter#7533)
  • Loading branch information
chinmaygarde authored Jan 18, 2019
1 parent 11aa5e6 commit a0b4d6b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions shell/platform/embedder/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("$flutter_root/testing/testing.gni")
import("$flutter_root/common/config.gni")
import("$flutter_root/shell/gpu/gpu.gni")
import("$flutter_root/shell/platform/embedder/embedder.gni")
import("$flutter_root/testing/testing.gni")

shell_gpu_configuration("embedder_gpu_configuration") {
enable_software = true
Expand Down Expand Up @@ -39,12 +40,17 @@ source_set("embedder") {
"$flutter_root/fml",
"$flutter_root/lib/snapshot",
"$flutter_root/shell/common",
"//third_party/dart/runtime:libdart_jit",
"//third_party/dart/runtime/bin:dart_io_api",
"//third_party/skia",
"//third_party/tonic",
]

if (flutter_runtime_mode == "profile" || flutter_runtime_mode == "release") {
deps += [ "//third_party/dart/runtime:libdart_precompiled_runtime" ]
} else {
deps += [ "//third_party/dart/runtime:libdart_jit" ]
}

public_configs = [ "$flutter_root:config" ]
}

Expand Down

0 comments on commit a0b4d6b

Please sign in to comment.