mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
The Fuchsia Package targets depend on the observatory FAR archive, which is generated by a rule with a deceptively similar name.
140 lines
3.2 KiB
Plaintext
140 lines
3.2 KiB
Plaintext
# Copyright 2014 The Chromium 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("$flutter_root/common/config.gni")
|
|
|
|
group("flutter") {
|
|
testonly = true
|
|
|
|
public_deps = [
|
|
"$flutter_root/lib/snapshot:generate_snapshot_bin",
|
|
"$flutter_root/lib/snapshot:kernel_platform_files",
|
|
"$flutter_root/sky",
|
|
"$flutter_root/third_party/txt",
|
|
]
|
|
|
|
if (flutter_runtime_mode != "debug") {
|
|
public_deps += [
|
|
"$flutter_root/lib/snapshot:entry_points_json_files",
|
|
]
|
|
}
|
|
|
|
if (!is_fuchsia && !is_fuchsia_host) {
|
|
if (current_toolchain == host_toolchain) {
|
|
public_deps += [
|
|
"$flutter_root/frontend_server",
|
|
"//third_party/dart:create_sdk",
|
|
]
|
|
}
|
|
}
|
|
|
|
if (is_fuchsia) {
|
|
public_deps += [
|
|
"$flutter_root/content_handler:aot",
|
|
"$flutter_root/content_handler:jit",
|
|
"$flutter_root/flow",
|
|
]
|
|
}
|
|
|
|
# If on the host, compile all unittests targets.
|
|
if (current_toolchain == host_toolchain) {
|
|
if (is_mac) {
|
|
public_deps += [
|
|
"$flutter_root/shell/platform/darwin:flutter_channels_unittests",
|
|
"$flutter_root/shell/platform/embedder:flutter_embedder_framework",
|
|
]
|
|
}
|
|
if (!is_win) {
|
|
public_deps += [
|
|
"$flutter_root/shell/platform/embedder:embedder_unittests",
|
|
"$flutter_root/shell/platform/embedder:flutter_engine",
|
|
]
|
|
}
|
|
public_deps += [
|
|
"$flutter_root/flow:flow_unittests",
|
|
"$flutter_root/fml:fml_unittests",
|
|
"$flutter_root/sky/engine/wtf:wtf_unittests",
|
|
"$flutter_root/synchronization:synchronization_unittests",
|
|
"$flutter_root/third_party/txt:txt_unittests",
|
|
"//garnet/public/lib/fxl:fxl_unittests",
|
|
]
|
|
}
|
|
}
|
|
|
|
config("config") {
|
|
include_dirs = [ ".." ]
|
|
}
|
|
|
|
if (is_fuchsia) {
|
|
import("//build/package.gni")
|
|
|
|
package("flutter_aot_runner") {
|
|
deps = [
|
|
"$flutter_root/content_handler:aot",
|
|
]
|
|
if (flutter_runtime_mode != "release") {
|
|
deps += [
|
|
"//third_party/dart/runtime/observatory:embedded_archive_observatory",
|
|
]
|
|
}
|
|
|
|
binary = "flutter_aot_runner"
|
|
|
|
if (flutter_runtime_mode != "release") {
|
|
resources = [
|
|
{
|
|
path = rebase_path(
|
|
"$root_gen_dir/observatory/embedded_archive_observatory.tar")
|
|
dest = "observatory.tar"
|
|
},
|
|
]
|
|
}
|
|
|
|
meta = [
|
|
{
|
|
path = rebase_path("content_handler/meta/sandbox")
|
|
dest = "sandbox"
|
|
},
|
|
]
|
|
}
|
|
|
|
package("flutter_jit_runner") {
|
|
deps = [
|
|
"$flutter_root/content_handler:jit",
|
|
]
|
|
if (flutter_runtime_mode != "release") {
|
|
deps += [
|
|
"//third_party/dart/runtime/observatory:embedded_archive_observatory",
|
|
]
|
|
}
|
|
|
|
binary = "flutter_jit_runner"
|
|
|
|
if (flutter_runtime_mode != "release") {
|
|
resources = [
|
|
{
|
|
path = rebase_path(
|
|
"$root_gen_dir/observatory/embedded_archive_observatory.tar")
|
|
dest = "observatory.tar"
|
|
},
|
|
]
|
|
}
|
|
|
|
meta = [
|
|
{
|
|
path = rebase_path("content_handler/meta/sandbox")
|
|
dest = "sandbox"
|
|
},
|
|
]
|
|
}
|
|
} else {
|
|
group("dist") {
|
|
testonly = true
|
|
|
|
deps = [
|
|
"$flutter_root/sky/dist",
|
|
]
|
|
}
|
|
}
|