blob: 70dae63117e1a7b496abb045d6208c5edf63b528 [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")
zx_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" ]
}