blob: 6d9fea4b63ae5aa635d3097982344af33410c707 [file] [log] [blame]
# Copyright 2022 The ChromiumOS Authors
# 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 = [
"gbm",
"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",
"gpu.cc",
"input_device.cc",
"memory.cc",
"mmc_storage.cc",
"nvme_storage.cc",
"sequence.cc",
"sysfs.cc",
"tcpc.cc",
"ufs_storage.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",
"generic_battery_test.cc",
"gpu_test.cc",
"sequence_test.cc",
"sysfs_test.cc",
"tcpc_test.cc",
]
configs += [
":target_defaults",
"//common-mk:test",
]
deps = [
":functions",
"//runtime_probe/utils:test_utils",
]
}
}