blob: 903987e7b846182e4207edeea615d4743e5f05f6 [file] [log] [blame]
# Copyright 2018 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.gni")
source_set("yuv") {
sources = [
"yuv.cc",
"yuv.h",
]
cflags = [
# Always optimize regardless of --release or debug.
"-O3",
]
}
test("yuv_unittests") {
sources = [ "test/yuv_unittests.cc" ]
deps = [
":yuv",
"//src/lib/fxl",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gtest",
]
# TODO(https://fxbug.dev/42136089): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
group("test") {
deps = [ ":yuv_unittests($host_toolchain)" ]
testonly = true
}