blob: 7be07d50b449be044885140ee560125f4b463ebb [file] [log] [blame]
# Copyright 2022 The Chromium OS 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("//common-mk/pkg_config.gni")
pkg_config("target_defaults") {
pkg_deps = [
"libbrillo",
"libchrome",
"libdebugd-client",
"libec",
"libpcrecpp",
"libshill-client",
]
}
source_set("functions") {
sources = [
"all_functions.cc",
"ata_storage.cc",
"cellular_network.cc",
"ectool_i2cread.cc",
"edid.cc",
"ethernet_network.cc",
"generic_battery.cc",
"generic_network.cc",
"generic_storage.cc",
"input_device.cc",
"memory.cc",
"mmc_storage.cc",
"nvme_storage.cc",
"sequence.cc",
"sysfs.cc",
"tcpc.cc",
"usb_camera.cc",
"vpd_cached.cc",
"wireless_network.cc",
]
configs += [ ":target_defaults" ]
deps = [ "//runtime_probe/function_templates" ]
}
if (use.test) {
source_set("test") {
sources = [
"edid_test.cc",
"sequence_test.cc",
"sysfs_test.cc",
"tcpc_test.cc",
]
configs += [
":target_defaults",
"//common-mk:test",
]
deps = [
":functions",
"//runtime_probe/utils:test_utils",
]
}
}