blob: 30ec16f9154571a39e7cfd9ea913dab6988240e5 [file] [log] [blame]
# Copyright 2016 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/components.gni")
import("//build/test.gni")
group("tests") {
testonly = true
deps = [ ":trace_converter_tests" ]
}
group("trace_converters") {
deps = [ ":chromium" ]
}
source_set("chromium") {
sources = [
"chromium_exporter.cc",
"chromium_exporter.h",
]
deps = [ "//src/lib/fxl" ]
public_deps = [
"//sdk/lib/stdcompat",
"//sdk/lib/syslog/cpp",
"//src/performance/lib/perfmon",
"//third_party/modp_b64",
"//third_party/rapidjson",
"//zircon/system/ulib/trace-reader",
]
configs += [
# TODO(https://fxbug.dev/42136089): delete the below and fix compiler warnings
"//build/config:Wno-conversion",
]
# TODO(https://fxbug.dev/42085293): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-vla-cxx-extension" ]
}
test("chromium_unittests") {
output_name = "chromium_exporter_unittests"
sources = [ "chromium_exporter_unittest.cc" ]
deps = [
":chromium",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gtest",
]
# TODO(https://fxbug.dev/42085293): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-vla-cxx-extension" ]
}
fuchsia_unittest_package("trace_converter_tests") {
deps = [ ":chromium_unittests" ]
}