blob: 6133b30f83ccc95d085a20b47708dc9e49ed3fb3 [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/test/test_package.gni")
import("//build/testing/environments.gni")
source_set("compression-interfaces") {
public = [ "compressor.h" ]
public_deps = [
"//zircon/public/lib/fbl",
"//zircon/public/lib/fit",
]
}
source_set("lz4-compression") {
sources = [ "lz4_compressor.cc" ]
public = [ "lz4_compressor.h" ]
public_deps = [
":compression-interfaces",
"//src/storage/volume_image:options",
"//zircon/public/lib/fbl",
"//zircon/public/lib/fit",
"//zircon/public/lib/lz4",
]
}
source_set("lz4-compression-test") {
testonly = true
sources = [ "lz4_compressor_test.cc" ]
deps = [
":lz4-compression",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
]
}
source_set("guid") {
sources = [ "guid.cc" ]
public = [ "guid.h" ]
public_deps = [
"//zircon/public/lib/fbl",
"//zircon/public/lib/fit",
]
}
source_set("guid-test") {
testonly = true
sources = [ "guid_test.cc" ]
deps = [
":guid",
"//third_party/googletest:gtest",
"//zircon/public/lib/fbl",
"//zircon/public/lib/fit",
]
# This double checks that the resulting guids are compatible with our existing guids.
# Because gpt is fuchsia only, this is required.
if (is_fuchsia) {
sources += [ "guid_test_fuchsia.cc" ]
deps += [ "//zircon/system/ulib/gpt" ]
}
}
source_set("path") {
sources = [ "path.cc" ]
public = [ "path.h" ]
}
source_set("io-interfaces") {
public = [
"reader.h",
"writer.h",
]
public_deps = [ "//zircon/public/lib/fbl" ]
}
source_set("extent") {
sources = [ "extent.cc" ]
public = [ "extent.h" ]
public_deps = [
"//zircon/public/lib/fbl",
"//zircon/public/lib/fit",
]
}
source_set("extent-test") {
testonly = true
sources = [ "extent_test.cc" ]
deps = [
":extent",
"//third_party/googletest:gtest",
"//zircon/public/lib/fbl",
"//zircon/public/lib/fit",
]
}
group("tests") {
testonly = true
deps = [
":extent-test",
":guid-test",
":lz4-compression-test",
]
}