blob: d28a7a139159371f764a2d2a6bf4fe7304b6fd99 [file] [log] [blame]
# Copyright 2019 The Fuchsia 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("//build/components.gni")
group("pkg") {
testonly = true
deps = [
"bin",
"lib",
]
}
group("tests") {
testonly = true
public_deps = [
":non_hermetic_tests($target_toolchain)",
"lib:tests",
"//src/sys/lib/fidl-fuchsia-pkg-ext:tests",
"//src/sys/lib/fidl-fuchsia-pkg-rewrite-ext:tests",
]
}
if (is_fuchsia) {
group("hermetic_tests") {
testonly = true
public_deps = [
"bin:hermetic_tests",
"lib:hermetic_tests",
"testing:hermetic_tests",
"tests:hermetic_tests",
]
}
group("non_hermetic_tests") {
testonly = true
public_deps = [
"bin:non_hermetic_tests",
"lib:non_hermetic_tests",
"tests:non_hermetic_tests",
]
}
}
if (is_host) {
group("host_tests") {
testonly = true
public_deps = [
"bin:host_tests",
"lib:host_tests",
"scripts:host_tests",
]
}
}
group("all_tests") {
testonly = true
public_deps = [
":hermetic_tests($target_toolchain)",
":host_tests($host_toolchain)",
":non_hermetic_tests($target_toolchain)",
":tests",
]
}
group("e2e_tests") {
testonly = true
public_deps = [ "tests:e2e_tests" ]
}
# Targets to include in the base package set for the core recovery image.
group("recovery-core") {
public_deps = [
"bin/pkg-cache",
"bin/pkg-resolver",
# system-update-committer is a dependency of pkg-cache, but we don't want to do any verification
# in recovery mode, so we completely disable it.
"bin/system-update-committer",
"bin/system-update-committer:disable",
]
}
# Targets to include in the base package set for the recovery image.
group("recovery") {
public_deps = [
":recovery-core",
"bin/omaha-client",
"bin/system-updater",
]
}
group("pkgfs-disable-executability-restrictions") {
public_deps = [ "bin/pkg-cache:disable-executability-restrictions" ]
deps = [ "//build/validate:non_production_tag" ]
}
fuchsia_component("system-update-realm-component") {
manifest = "meta/system-update-realm.cml"
component_name = "system-update-realm"
}
fuchsia_package("system-update-realm") {
deps = [ ":system-update-realm-component" ]
}