You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.0 KiB
59 lines
1.0 KiB
import("//build/ohos.gni")
|
|
import("//vendor/${product_company}/${product_name}/product.gni")
|
|
|
|
ohos_executable("sample_i2c_read") {
|
|
configs = [ "$public_sdk_config" ]
|
|
install_enable = true
|
|
subsystem_name = "huanglong_sdk"
|
|
install_images = [
|
|
"vendor",
|
|
]
|
|
|
|
include_dirs = [
|
|
"$drv_generic_headers",
|
|
"$drv_i2c_headers",
|
|
"$drv_common_headers",
|
|
"$libuapi_common_headers",
|
|
"$libuapi_i2c_headers",
|
|
"$libdftevent_headers",
|
|
]
|
|
|
|
deps = [
|
|
"$libuapi_common",
|
|
"$libdftevent",
|
|
"$libuapi_i2c",
|
|
]
|
|
|
|
sources = [
|
|
"sample_i2c_read.c",
|
|
]
|
|
}
|
|
|
|
ohos_executable("sample_i2c_write") {
|
|
configs = [ "$public_sdk_config" ]
|
|
install_enable = true
|
|
subsystem_name = "huanglong_sdk"
|
|
install_images = [
|
|
"vendor",
|
|
]
|
|
|
|
include_dirs = [
|
|
"$drv_generic_headers",
|
|
"$drv_i2c_headers",
|
|
"$drv_common_headers",
|
|
"$libuapi_common_headers",
|
|
"$libuapi_i2c_headers",
|
|
"$libdftevent_headers",
|
|
]
|
|
|
|
deps = [
|
|
"$libuapi_common",
|
|
"$libdftevent",
|
|
"$libuapi_i2c",
|
|
]
|
|
|
|
sources = [
|
|
"sample_i2c_write.c",
|
|
]
|
|
}
|