flutter_flutter/BUILD.gn
Adam Barth 4abf2c5817
[fuchsia] Update package() BUILD.gn syntax (#4313)
Update the package() template to match the new syntax. This change keeps this
package working the same way it does currently (i.e., being included in the
system image). In the future, we'll want to remove this annotation and separate
this package from the system image.
2017-11-02 09:15:25 -07:00

94 lines
2.1 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.
group("flutter") {
testonly = true
public_deps = [
"$flutter_root/lib/snapshot:compile_platform",
"$flutter_root/lib/snapshot:generate_snapshot_bin",
"$flutter_root/sky",
"$flutter_root/third_party/txt",
]
if (!is_fuchsia) {
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",
"$flutter_root/content_handler:aot_content_handler",
"$flutter_root/examples",
"$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_benchmarks",
"$flutter_root/third_party/txt:txt_unittests",
"//garnet/public/lib/fxl:fxl_unittests",
]
}
}
config("config") {
include_dirs = [ ".." ]
}
if (is_fuchsia) {
import("//packages/package.gni")
package("package") {
system_image = true
testonly = true
package_name = "flutter"
deps = [
":flutter",
]
binaries = [
{
name = "flutter_jit_runner"
},
{
name = "flutter_aot_runner"
},
]
}
} else {
group("dist") {
testonly = true
deps = [
"$flutter_root/sky/dist",
]
}
}