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.

61 lines
1.2 KiB

import("//build/ohos.gni")
import("//vendor/${product_company}/${product_name}/product.gni")
ohos_shared_library("libdrvdevdrv") {
configs = [ "$public_sdk_config" ]
subsystem_name = "huanglong_sdk"
install_images = [
"vendor",
]
output_extension = "so"
sources = [
"devdrv_fd.c",
"devdrv_id.c",
"devdrv_mm.c",
"devdrv_mpi.c",
"devdrv_stub.c",
"devdrv_command.c",
"devdrv_manager.c",
"devdrv_aicpufw.c",
"devmm/devmm_api_impl.c",
"devmm/devmm_virt_interface.c",
"devmm/devmm_virt_page.c",
"devmm/devmm_dfx.c",
"devmm/devmm_mpi.c",
"devmm/product/stb/devmm_hal_ion.c",
]
include_dirs = [
"$libuapi_npu_headers",
"$libuapi_npu_source_headers",
"$drv_generic_headers",
"$libuapi_npu_acl_headers",
"$libuapi_slog_headers",
"$libuapi_npu_devmm_headers",
"$libuapi_memory_headers",
"product/stb/arch",
"devmm/dev_inc/",
"./",
"../include/drv/",
]
deps = [
"$libuapi_securec",
"$libuapi_common",
"$libslog"
]
cflags = [
"-DLOG_TAG=\"aicpu\"",
"-Werror",
"-Wextra",
"-Wshadow",
"-Wformat=2",
"-Wdate-time",
"-Wfloat-equal",
"-fno-common",
"-DTVOS_STUB",
]
}