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.
86 lines
1.5 KiB
86 lines
1.5 KiB
4 months ago
|
import("//build/ohos.gni")
|
||
|
import("//vendor/${product_company}/${product_name}/product.gni")
|
||
|
|
||
|
ohos_executable("sample_gpio_dir") {
|
||
|
configs = [ "$public_sdk_config" ]
|
||
|
install_enable = true
|
||
|
subsystem_name = "huanglong_sdk"
|
||
|
install_images = [
|
||
|
"vendor",
|
||
|
]
|
||
|
|
||
|
include_dirs = [
|
||
|
"$drv_generic_headers",
|
||
|
"$drv_gpio_headers",
|
||
|
"$drv_common_headers",
|
||
|
"$libuapi_common_headers",
|
||
|
"$libuapi_gpio_headers",
|
||
|
"$libdftevent_headers",
|
||
|
]
|
||
|
|
||
|
deps = [
|
||
|
"$libuapi_common",
|
||
|
"$libdftevent",
|
||
|
"$libuapi_gpio",
|
||
|
]
|
||
|
|
||
|
sources = [
|
||
|
"sample_gpio_dir.c",
|
||
|
]
|
||
|
}
|
||
|
|
||
|
ohos_executable("sample_gpio_read") {
|
||
|
configs = [ "$public_sdk_config" ]
|
||
|
install_enable = true
|
||
|
subsystem_name = "huanglong_sdk"
|
||
|
install_images = [
|
||
|
"vendor",
|
||
|
]
|
||
|
|
||
|
include_dirs = [
|
||
|
"$drv_generic_headers",
|
||
|
"$drv_gpio_headers",
|
||
|
"$drv_common_headers",
|
||
|
"$libuapi_common_headers",
|
||
|
"$libuapi_gpio_headers",
|
||
|
"$libdftevent_headers",
|
||
|
]
|
||
|
|
||
|
deps = [
|
||
|
"$libuapi_common",
|
||
|
"$libdftevent",
|
||
|
"$libuapi_gpio",
|
||
|
]
|
||
|
|
||
|
sources = [
|
||
|
"sample_gpio_read.c",
|
||
|
]
|
||
|
}
|
||
|
|
||
|
ohos_executable("sample_gpio_write") {
|
||
|
configs = [ "$public_sdk_config" ]
|
||
|
install_enable = true
|
||
|
subsystem_name = "huanglong_sdk"
|
||
|
install_images = [
|
||
|
"vendor",
|
||
|
]
|
||
|
|
||
|
include_dirs = [
|
||
|
"$drv_generic_headers",
|
||
|
"$drv_gpio_headers",
|
||
|
"$drv_common_headers",
|
||
|
"$libuapi_common_headers",
|
||
|
"$libuapi_gpio_headers",
|
||
|
"$libdftevent_headers",
|
||
|
]
|
||
|
|
||
|
deps = [
|
||
|
"$libuapi_common",
|
||
|
"$libdftevent",
|
||
|
"$libuapi_gpio",
|
||
|
]
|
||
|
|
||
|
sources = [
|
||
|
"sample_gpio_write.c",
|
||
|
]
|
||
|
}
|