blob: ba325726b0dfb79f8abf1ceb6916307b8688a9a3 [file] [log] [blame]
# Copyright 2019 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("$zx/system/ulib/hermetic-compute/hermetic_module.gni")
library("hermetic-decompressor") {
sources = [
"get-engine.cc",
]
public_deps = [
"$zx/system/fidl/fuchsia-ldsvc:c",
"$zx/system/ulib/hermetic-compute",
]
data_deps = [
":decompress-lz4f",
":decompress-zstd",
]
}
template("engine_module") {
hermetic_module(target_name) {
ldflags = [ "-Wl,-z,stack-size=4096" ]
forward_variables_from(invoker, "*")
deps += [
":engine-libc",
"$zx/system/ulib/hermetic-compute:hermetic-engine",
]
}
}
static_library("engine-libc") {
visibility = [ ":*" ]
sources = [
"abort.cc",
"allocator.cc",
]
deps = [
"$zx/third_party/ulib/musl/src/string:stdmem",
]
}
engine_module("decompress-lz4f") {
sources = [
"lz4f.cc",
]
deps = [
"$zx/third_party/ulib/lz4",
]
}
engine_module("decompress-zstd") {
sources = [
"zstd.cc",
]
deps = [
"$zx/third_party/ulib/zstd",
]
}