1# Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//drivers/hdf_core/adapter/uhdf2/hdi.gni")             # 编译idl必须要导入的模板
15hdi("hello") {                                         # 目标名称,会生成两个so,分别对应 libhello_client_v1.0.z.solibhello_stub_v1.0.z.so
16    module_name = "hello_service"                      # module_name控制dirver文件中驱动描 述符(struct HdfDriverEntry)的moduleName
17    sources = [                                                # 参与编译的idl文件
18        "IHelloInterface.idl",                               # 接口idl
19    ]
20    language = "cpp"                                           # 控制idl生成c或c++代码 可选择`c`或`cpp`
21    subsystem_name = "hdf"                                     # 子系统名
22    part_name = "drivers_interface_hello"              # 组件名
23}
24