blob: 5eb300e4039da1a3c03592f49f5bcfc9032dc8fa [file] [log] [blame]
# 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")
executable("bin") {
output_name = "embedder"
sources = [
"app.cc",
"app.h",
"example_view_provider_service.cc",
"example_view_provider_service.h",
"main.cc",
]
deps = [
"//sdk/fidl/fuchsia.sys",
"//sdk/fidl/fuchsia.ui.app",
"//sdk/fidl/fuchsia.ui.gfx",
"//sdk/fidl/fuchsia.ui.scenic",
"//sdk/fidl/fuchsia.ui.views",
"//sdk/lib/fidl/cpp",
"//sdk/lib/sys/cpp",
"//sdk/lib/ui/scenic/cpp",
"//src/lib/fxl",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
]
# TODO(fxbug.dev/58162): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
executable("subview_bin") {
output_name = "subview"
sources = [
"app.cc",
"app.h",
"example_view_provider_service.cc",
"example_view_provider_service.h",
"subview.cc",
]
deps = [
"//sdk/fidl/fuchsia.sys",
"//sdk/fidl/fuchsia.ui.app",
"//sdk/fidl/fuchsia.ui.gfx",
"//sdk/fidl/fuchsia.ui.scenic",
"//sdk/fidl/fuchsia.ui.views",
"//sdk/lib/fidl/cpp",
"//sdk/lib/sys/cpp",
"//sdk/lib/ui/scenic/cpp",
"//src/lib/fxl",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
]
# TODO(fxbug.dev/58162): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
fuchsia_component("embedder-component") {
component_name = "embedder"
manifest = "meta/embedder.cmx"
deps = [ ":bin" ]
}
fuchsia_component("subview-component") {
component_name = "subview"
manifest = "meta/subview.cmx"
deps = [ ":subview_bin" ]
}
fuchsia_package("embedder") {
deps = [
":embedder-component",
":subview-component",
]
}