| # Copyright 2018 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("//src/sys/build/components.gni") |
| |
| group("bin") { |
| testonly = true |
| deps = [ |
| ":identity_bin_unittests", |
| "account_handler", |
| "account_manager", |
| "dev_auth_provider", |
| "dev_authenticator", |
| "google_auth_provider", |
| "token_manager_factory", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":identity_bin_unittests" ] |
| } |
| |
| fuchsia_unittest_component("account_handler_test") { |
| deps = [ "account_handler:bin_test" ] |
| manifest = "meta/account_handler_bin_test.cmx" |
| } |
| |
| fuchsia_unittest_component("account_manager_test") { |
| deps = [ "account_manager:bin_test" ] |
| manifest = "meta/account_manager_bin_test.cmx" |
| } |
| |
| fuchsia_unittest_component("dev_auth_provider_test") { |
| deps = [ "dev_auth_provider:bin_test" ] |
| manifest = "meta/dev_auth_provider_bin_test.cmx" |
| } |
| |
| fuchsia_unittest_component("dev_authenticator_test") { |
| deps = [ "dev_authenticator:bin_test" ] |
| manifest = "meta/dev_authenticator_bin_test.cmx" |
| } |
| |
| fuchsia_unittest_component("google_auth_provider_test") { |
| deps = [ "google_auth_provider:bin_test" ] |
| manifest = "meta/google_auth_provider_bin_test.cmx" |
| } |
| |
| fuchsia_test_package("identity_bin_unittests") { |
| test_components = [ |
| ":account_handler_test", |
| ":account_manager_test", |
| ":dev_auth_provider_test", |
| ":dev_authenticator_test", |
| ":google_auth_provider_test", |
| ] |
| } |
| |
| # Tier 1 should be included in products that only require token management |
| # without support for platform-level accounts or authentication. |
| group("tier_1") { |
| public_deps = [ |
| "google_auth_provider", |
| "token_manager_factory", |
| ] |
| } |
| |
| # Tier 2 should be included in products that require platform-level accounts |
| # (i.e. representations of the people using the Fuchsia device). It provides |
| # authentication, data isolation, and token management for these accounts. |
| group("tier_2") { |
| public_deps = [ |
| "account_handler", |
| "account_manager", |
| "account_manager:account_manager_auth_providers", |
| ] |
| } |