blob: c0d7fe25236bfb18a19dc492060957afc8336128 [file]
# Copyright 2022 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.
resource_group("server_data") {
files = [
{
source = "data/test_video.webm"
dest = "data/sample_video.webm"
},
{
source = "data/fuchsia_logo.png"
dest = "data/fuchsia_logo.png"
},
{
source = "data/100Hz_tone.mp3"
dest = "data/100Hz_tone.mp3"
},
]
}
## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ##
#
# ________ _________ ________ ________
# |\ ____\|\___ ___\\ __ \|\ __ \
# \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \
# \ \_____ \ \ \ \ \ \ \\\ \ \ ____\
# \|____|\ \ \ \ \ \ \ \\\ \ \ \___|
# ____\_\ \ \ \__\ \ \_______\ \__\
# |\_________\ \|__| \|_______|\|__|
# \|_________|
#
#
# AUTO-GENERATED - DO NOT EDIT
#
# The targets below are auto-generated based on the targets defined in the
# BUILD.bazel file from the same directory. If you made changes to targets in
# Bazel, instead of editing this file manually, run:
#
# > fx bazel2gn
#
# Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and
# rerun bazel2gn.
import("//build/tools/bazel2gn/bazel_migration.gni")
rustc_library("server") {
sources = [ "src/server.rs" ]
source_root = "src/server.rs"
edition = "2024"
proc_macro_deps = [ "//third_party/rust_crates:async-trait" ]
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-fs",
"//src/lib/fuchsia-hyper",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:hyper",
"//third_party/rust_crates:log",
]
}
rustc_binary("bin") {
sources = [ "src/main.rs" ]
output_name = "file_server"
edition = "2024"
deps = [
":server",
"//src/lib/fuchsia",
"//third_party/rust_crates:anyhow",
]
data_deps = [ ":server_data" ]
}
fuchsia_component_manifest("file_server_manifest") {
component_name = "file_server"
manifest = "meta/file_server.cml"
}
fuchsia_component("file_server_component") {
cm_label = ":file_server_manifest"
visibility = [
":*",
"//src/testing/system-validation/web:*",
]
deps = [ ":bin" ]
}