blob: 6092c39b8290676a1ebec57474e93698c84d8fc8 [file] [log] [blame]
# Copyright 2020 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/testing/host_test_data.gni")
import("//src/ui/examples/escher/common/assets/assets.gni")
assert(
is_host,
"assets need only be copied to the build directory for linux tests/examples")
# Copies shaders needed for escher linux tests to a specific test data
# directory near the test binary.
group_deps = []
foreach(asset, escher_examples_assets) {
asset_target_name = "asset_" + get_path_info(asset.path, "file")
host_test_data(asset_target_name) {
sources = [ asset.path ]
outputs = [ "$root_out_dir/test_data/escher/" + asset.dest ]
}
group_deps += [ ":$asset_target_name" ]
}
group("host_assets") {
testonly = true
deps = group_deps
}