| # 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("//build/components.gni") |
| |
| group("puppet_master") { |
| testonly = true |
| deps = [ |
| ":dispatch-story-command-executor-unittest", |
| ":dispatch_story_command_executor", |
| ":make_production_impl", |
| ":puppet-master-impl-unittest", |
| ":puppet_master_impl", |
| ":puppet_master_unittests", |
| ":story-command-executor-unittest", |
| ":story_command_executor", |
| "command_runners", |
| ] |
| } |
| |
| source_set("puppet_master_impl") { |
| sources = [ |
| "puppet_master_impl.cc", |
| "puppet_master_impl.h", |
| "story_puppet_master_impl.cc", |
| "story_puppet_master_impl.h", |
| ] |
| |
| deps = [ ":story_command_executor" ] |
| |
| public_deps = [ |
| "//sdk/fidl/fuchsia.modular", |
| "//src/lib/fsl", |
| "//src/modular/bin/sessionmgr:annotations", |
| "//src/modular/bin/sessionmgr/storage", |
| "//src/modular/lib/async/cpp:operation", |
| ] |
| } |
| |
| executable("puppet_master_impl_unittest") { |
| testonly = true |
| |
| sources = [ "puppet_master_impl_unittest.cc" ] |
| |
| deps = [ |
| ":puppet_master_impl", |
| ":story_command_executor", |
| "//sdk/fidl/fuchsia.modular", |
| "//src/lib/fsl", |
| "//src/lib/fxl/test:gtest_main", |
| "//src/modular/bin/sessionmgr/testing:annotations_matchers", |
| "//src/modular/lib/testing:test_story_command_executor", |
| "//src/modular/lib/testing:test_with_session_storage", |
| "//third_party/googletest:gmock", |
| ] |
| } |
| |
| fuchsia_unittest_component("puppet-master-impl-unittest") { |
| manifest = "meta/puppet_master_impl_unittest.cmx" |
| deps = [ ":puppet_master_impl_unittest" ] |
| } |
| |
| source_set("story_command_executor") { |
| sources = [ |
| "story_command_executor.cc", |
| "story_command_executor.h", |
| ] |
| |
| public_deps = [ |
| "//sdk/fidl/fuchsia.modular", |
| "//src/lib/fxl", |
| ] |
| } |
| |
| executable("story_command_executor_unittest") { |
| testonly = true |
| |
| sources = [ "story_command_executor_unittest.cc" ] |
| |
| deps = [ |
| ":story_command_executor", |
| "//sdk/fidl/fuchsia.modular", |
| "//src/lib/fxl/test:gtest_main", |
| ] |
| } |
| |
| fuchsia_unittest_component("story-command-executor-unittest") { |
| deps = [ ":story_command_executor_unittest" ] |
| } |
| |
| source_set("dispatch_story_command_executor") { |
| sources = [ |
| "dispatch_story_command_executor.cc", |
| "dispatch_story_command_executor.h", |
| ] |
| |
| public_deps = [ |
| ":story_command_executor", |
| "//sdk/fidl/fuchsia.modular", |
| "//sdk/lib/syslog/cpp", |
| "//src/modular/bin/sessionmgr/puppet_master/command_runners:command_runner", |
| "//src/modular/lib/async/cpp:future", |
| "//src/modular/lib/async/cpp:operation", |
| ] |
| } |
| |
| executable("dispatch_story_command_executor_unittest") { |
| testonly = true |
| |
| sources = [ "dispatch_story_command_executor_unittest.cc" ] |
| |
| deps = [ |
| ":dispatch_story_command_executor", |
| "//sdk/fidl/fuchsia.modular", |
| "//src/lib/fxl/test:gtest_main", |
| "//src/lib/testing/loop_fixture", |
| "//zircon/system/public", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| ] |
| } |
| |
| fuchsia_unittest_component("dispatch-story-command-executor-unittest") { |
| manifest = "meta/dispatch_story_command_executor_unittest.cmx" |
| deps = [ ":dispatch_story_command_executor_unittest" ] |
| } |
| |
| source_set("make_production_impl") { |
| sources = [ |
| "make_production_impl.cc", |
| "make_production_impl.h", |
| ] |
| |
| deps = [ |
| ":dispatch_story_command_executor", |
| ":puppet_master_impl", |
| "//src/modular/bin/sessionmgr/puppet_master/command_runners:add_mod_command_runner", |
| "//src/modular/bin/sessionmgr/puppet_master/command_runners:remove_mod_command_runner", |
| ] |
| } |
| |
| fuchsia_test_package("puppet_master_unittests") { |
| test_components = [ |
| ":dispatch-story-command-executor-unittest", |
| ":puppet-master-impl-unittest", |
| ":story-command-executor-unittest", |
| ] |
| } |